LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   etc/fstab Device label changed cant restore the default device name (https://www.linuxquestions.org/questions/linux-software-2/etc-fstab-device-label-changed-cant-restore-the-default-device-name-597450/)

shady_Dev 11-06-2007 03:19 AM

etc/fstab Device label changed cant restore the default device name
 
hi,
I changed the label of the root partition in my etc/fstab....
Now when i rebooted the device is not identifiable and the kernel is providing a repair shell....to repair the system..
But when i tried to edit the "etc/fstab" file using vi editor the changes are not
saved because the shaell says the "fstab " is Read Only filesystem ...
even when i m in super user mode (i.e. root user mode)...
i tried changing the permissions by giving

root@localhost# chmod 777 etc/fstab

even then the permisiions are the same i.ei. readonly...
please tell me how can i restore my previous fstab file....

bathory 11-06-2007 04:23 AM

Try to remount your hard disk read-write:
Code:

mount -n -o remount,rw /
and then edit /etc/fstab

shady_Dev 11-07-2007 05:15 AM

Quote:

Originally Posted by bathory (Post 2949751)
Try to remount your hard disk read-write:
Code:

mount -n -o remount,rw /
and then edit /etc/fstab

thanks for the help sir.. .
i will try it..

shady_Dev 11-11-2007 09:42 AM

Quote:

Originally Posted by shady_Dev (Post 2950883)
thanks for the help sir.. .
i will try it..

it worked fine,.....
but i didnt get why the flesystem was in readable permission only...
please tell...
i ll be obliged......

Samotnik 11-11-2007 11:00 AM

Becourse at boot time root partition is mounted in read-only mode for fsck to be able to check it, and then remounted in rw mode. Your error occures before filesystem whas remounted.


All times are GMT -5. The time now is 03:26 AM.