LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Deleted /etc/fstab !! (https://www.linuxquestions.org/questions/linux-general-1/deleted-etc-fstab-99442/)

chichibabin 10-02-2003 11:22 AM

Deleted /etc/fstab !!
 
Hi all,
being a complete idiot I hastily moved my fsab file to fstab.old and modified it. However, I accidently saved the modified file as fstab.old so fstab no longer exists. Linux now fails to bootup as the file is missing. How can I change the name of that fstab.old file to fstab. Please don't say I have to reinstall.
Thanks in advance
Sat

doublefailure 10-02-2003 11:34 AM

#cp fstab.old fstab

?

chichibabin 10-02-2003 11:38 AM

Yes, but how do I get a prompt where I can type the command. Linux does not boot as normal.

superbondbond 10-02-2003 11:48 AM

try a rescue disk. There's hundred's of them out there.

I like tomsrtbt
(actually a single floppy distro)

doublefailure 10-02-2003 11:53 AM

insert ur cd, power up, select rescue mode.?

chichibabin 10-02-2003 07:01 PM

When the system fails to boot but up I can type in the root password and try to repair. However when I try to:
cp /etc/ftab.old /etc/fstab
I'm told its a read only file system.

m0rl0ck 10-02-2003 07:59 PM

remount / read,write with this command:
/sbin/mount -n -o remount,rw /


All times are GMT -5. The time now is 01:23 PM.