You are not logged in.
I set up my fstab to mount /tmp /var/run and /var/lock to tmpfs. When I boot my computer /var/lock does not mount correctly. If I use mount -a after boot it mounts. How can I fix this?
Last edited by namelessone (2010-12-05 01:49:30)
Offline
What's in your fstab exactly? Dmesg output? Always try to give as much info as possible.
Offline
dmesg doesn't show anything out of the ordinary. During boot I get the message along the lines of "failed to mount /var/lock" (it goes by really fast so I don't remember the exact wording)
fstab says:
tmpfs /var/lock tmpfs defaults,nodev,nosuid,noexec,mode=1777,size=10m 0 0
tmpfs /var/run tmpfs defaults,nodev,nosuid,noexec,mode=0755,size=10m 0 0
/dev/mapper/vol-var /var jfs defaults, noatime 0 1
Last edited by namelessone (2010-12-04 19:57:18)
Offline
have you tried putting '/dev/mapper/vol-var /var jfs defaults, noatime 0 1' first ?
man fstab:
The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing
Last edited by rwd (2010-12-04 20:18:07)
Offline
Ah. of course. I put the '/dev/mapper/vol/var /var jfs defaults, noatime 0 1' first and that fixed the problem.
Thank you, rwd, for being my extra pair of eyes to catch my mistake
Offline