Bug #1808

tmpfs doesn't mount automatically after reboot

Added by charles.rapenne over 3 years ago. Updated over 3 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hello

I'm using tmpfs for the /tmp directory on my laptop,
but everytime it boots, it does not mount /tmp.

I added the following line in /etc/fstab

tmpfs   /tmp      tmpfs rw,mode=777,size=1G 0 0

and

tmpfs_load="YES" in /boot/loader.conf

When I want to mount it manually, I get this message:

#mount /tmp
tmpfs: vfsload(tmpfs): File exists

If I kldunload tmpfs && kldload tmpfs, I can mount it correctly !

If I unload the kernel module then I reboot, it'll mount /tmp.

I'm using a custom kernel with SMP support (I only uncommented the
line about SMP) with DragonFly 2.7.3

I'm not familiar with mailing-lists, I hope I'm using it correctly and
I gave you enought informations too.

I'm also about to start a project of auto-benchmarking to find
regressions every day (like phoronix do with Linux),
but I'll tell you more about this if it works !

History

#1 Updated by ahuete.devel over 3 years ago

Hi Charles,

In your custom kernel config file, do you have a line that says?

options TMPFS

If so, you don't need to load the module to have tmpfs working. Make
sure you haven't specified two lines in fstab to mount /tmp.

I've just tested it in my box and it worked fine, it got mounted at boot time.

tmpfs 1.0G 0B 1.0G 0% /tmp2

Also, which DFBSD version are you using?

Cheers,
Antonio Huete

#2 Updated by swildner over 3 years ago

On 8/20/2010 18:42, Antonio Huete Jimenez wrote:
> In your custom kernel config file, do you have a line that says?
>
> options TMPFS
>
> If so, you don't need to load the module to have tmpfs working. Make
> sure you haven't specified two lines in fstab to mount /tmp.

Even if neither module is loaded nor the option is in the config, mount
should load the module automatically.

Regards,
Sascha

#3 Updated by charles.rapenne over 3 years ago

Thanks you for your replies.

I removed the line "tmpfs_load="YES"" in /boot/loader.conf and it
fixed the problem.
In my kernel config file, the line options TMPFS was there, so I guess
the kernel
has some problem when you try to load a "built-in" module ?

I had only one line for /tmp in my fstab.

The DragonFly version I used was 2.7.3 but now I'm running the
developement version,
I had the bug since the 2.7.3.

2010/8/20 Antonio Huete Jimenez <>:
> Hi Charles,
>
> In your custom kernel config file, do you have a line that says?
>
> options         TMPFS
>
> If so, you don't need to load the module to have tmpfs working. Make
> sure you haven't specified two lines in fstab to mount /tmp.
>
> I've just tested it in my box and it worked fine, it got mounted at boot time.
>
> tmpfs             1.0G     0B   1.0G     0%    /tmp2
>
> Also, which DFBSD version are you using?
>
> Cheers,
> Antonio Huete
>

Also available in: Atom PDF