You are not logged in.

#1 2010-12-04 19:14:27

namelessone
Member
Registered: 2009-12-17
Posts: 39

can't mount /var/lock at boot time [SOLVED]

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

#2 2010-12-04 19:18:15

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: can't mount /var/lock at boot time [SOLVED]

What's in your fstab exactly? Dmesg output? Always try to give as much info as possible.

Offline

#3 2010-12-04 19:56:03

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: can't mount /var/lock at boot time [SOLVED]

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

#4 2010-12-04 20:15:00

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: can't mount /var/lock at boot time [SOLVED]

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

#5 2010-12-05 01:49:14

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: can't mount /var/lock at boot time [SOLVED]

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 smile

Offline

Board footer

Powered by FluxBB