Hi Mark ,
Thanks for the reply. I tried following
Boot in Linux rescue mode.
Skip when asked to mount filesystem.
This gives me /dev/sda1 as boot
and /dev/sda2 as linux LVM
Mount /dev/sda2 -o rw /mnt
Error:Mounting /dev/sda2 on /mnt failed, no such file or directory
Patil, Manjiri S wrote:
> I was playing around with my test machine to get details of linux boot
> process . I renamed my fstab file from /etc/fstab to /etc/fstab.old .
> Now if I boot machine to linux rescue mode to recover I get error
> there are no partition s to mount. If I try to mount it manually by
> mount /dev/sda2 /mnt
> I get error saying no such file and directory. I can't see root
> filesystem mounted.
> I also tried
> mount -o remount,rw /
> But didnn't help.
> I tried booting into single mode but I can not rename file as its
> mounted as read only.
When you boot off the rescue disk, it creates a virtual root filesystem,
it's running completely from memory. So what you need to do is this: if
no /mnt, make one. Then mount /dev/sda2 ->read/write - make *sure* it's
because I think the default is ro. Then you can rename fstab, and you
good to go.
redhat-list mailing list