Hi,
I comment out some vol group in fstab accidentally.
I also comment the swap space in /etc/fstab
But I cannot edit /remove it back by using vi /etc/fstab again in init 1 and init 6 .
The file system /etc/fstab is read -only . I cannot chmod .....
What can I do in order to recover it
Please advice ....
I paste the console screen in here .
Manually remount the appropriate filesystem as read-write. An example from man man mount ("mount"):
mount -o remount,rw /dev/foo /dir
Reboot the system, and pass this as an additional kernel parameter (attention: at this point an english keyboard layout is in effect)
init=/bin/sh
When you've booted to an console, enter this:
mount / -oremount,rw
vi /etc/fstab
# after editing, just to be sure
sync
revert your changes, and reboot the system using either 'reboot' or by doing a cold reboot. 'shutdown' won't work at this point.