checkfs fails at startup while trying to check /dev/.tmp-XXX
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: initscripts
When starting, checkfs checks the filesystem and fails while trying to check something in /dev/.tmp-XXX . The strange thing is that sometimes, it starts correctly, sometimes not. When it fails, I have a shell access which $PATH is not correct (/bin:/sbin), so it complains about not finding less, apt-get & stuff. If I run /etc/init.d/checkfs start again, it does not complain. I simply hit ^D and the system starts correctly.
Here's the log:
Log of fsck -C -a -t ext3 /dev/hda1
Sat Jun 2 15:46:02 2007
fsck 1.40-WIP (14-Nov-2006)
/: clean, 171660/1221600 files, 870791/2441872 blocks
Sat Jun 2 15:46:02 2007
----------------
nicole@mamuntu:~$ sudo cat /root/checkfs
Log of fsck -C -R -A -a
Sat Jun 2 15:46:04 2007
fsck 1.40-WIP (14-Nov-2006)
fsck.ext3: No such file or directory while trying to open /dev/.tmp-254-2
/dev/.tmp-254-2:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
fsck died with exit status 8
Sat Jun 2 15:46:04 2007
Same here (and on my gf laptop), it looks like some kind of race condition (maybe udev related ?)