Project

General

Profile

Actions

Bug #1808

closed

tmpfs doesn't mount automatically after reboot

Added by charles.rapenne over 13 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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 !

Actions #1

Updated by ahuete.devel over 13 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

Actions #2

Updated by swildner over 13 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

Actions #3

Updated by charles.rapenne over 13 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

Actions #4

Updated by tuxillo almost 2 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Assignee changed from 0 to tuxillo

Cannot reproduce:

root@dev03:~ # cat /boot/loader.conf  
vfs.root.mountfrom="ufs:vbd0s1d" 
tmpfs_load="YES" 
root@dev03:~ # mount /tmp 
root@dev03:~ #

root@dev03:~ # umount /tmp 
root@dev03:~ # mount /tmp 
tmpfs       2674M     0B  2674M     0q    /tmp
root@dev03:~ # df -hT /tmp
Filesystem  Type    Size   Used  Avail Capacity  Mounted on
tmpfs       tmpfs  2674M     0B  2674M     0q    /tmp
root@dev03:~ #  

Actions

Also available in: Atom PDF