LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-02-2003, 11:22 AM   #1
chichibabin
Member
 
Registered: Sep 2003
Posts: 63

Rep: Reputation: 15
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
 
Old 10-02-2003, 11:34 AM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
#cp fstab.old fstab

?
 
Old 10-02-2003, 11:38 AM   #3
chichibabin
Member
 
Registered: Sep 2003
Posts: 63

Original Poster
Rep: Reputation: 15
Yes, but how do I get a prompt where I can type the command. Linux does not boot as normal.
 
Old 10-02-2003, 11:48 AM   #4
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
try a rescue disk. There's hundred's of them out there.

I like tomsrtbt
(actually a single floppy distro)
 
Old 10-02-2003, 11:53 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
insert ur cd, power up, select rescue mode.?
 
Old 10-02-2003, 07:01 PM   #6
chichibabin
Member
 
Registered: Sep 2003
Posts: 63

Original Poster
Rep: Reputation: 15
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.
 
Old 10-02-2003, 07:59 PM   #7
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
Kmail crashes when deleted mail is deleted dufferin Slackware 0 03-21-2005 03:23 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration