[oclug]Couldn't open /proc/mounts/ No such file or directory
masud at googgun.com
Thu Jan 9 18:42:29 EST 2003
olga streltchenko wrote:
> Hi everybody,
> I run into the following problem on boot.
> Once the time comes for the file system check I get the following:
> Couldn't open /proc/mounts/ No such file or directory
^ the trailing slash is not good
/proc/mounts is a file not a directory
> followed by a complaint that /proc/partitions doesn't exist.
Seems like /proc is not mounted at all during startup put an entry like:
none /proc proc defaults 0 0
in your /etc/fstab file
Boot by hand using lilo
lilo: linux init=/bin/bash
Booting by hand using grub, use the help available at the bottom of the
grub menu to find out how to edit the bootup lines.... typically 'e'
puts you in edit mode.
Just put init=/bin/bash at the end of the line.
... kernel boot messages ...
eventually you'll get:
on this prompt:
init-2.03# mount -t proc none /proc
init-2.03# mount -o remount,rw /
if your /usr is seperate partition then
init-2.03# mount /dev/hdXY /usr
where hdXY is the actual disk and partition
init-2.03# vi /etc/fstab
Here vi is whatever editor you are okay with..
make the above mentioned changes and save
Now the following are VERY IMPORTANT!!!!
init-2.03# umount /usr
init-2.03# mount -o remount,ro /
init-2.03# umount /proc
Okay things are safe now, you can now emulate a boot up
init-2.03# exec /sbin/init
More information about the OCLUG