LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2002, 11:45 AM   #1
unixpirate
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: RedHat 7.3
Posts: 44

Rep: Reputation: 15
Question /etc/fstab


I have done something I don't know why I did.
I have edited the /etc/fstab and made changes to / to where
it now won't boot.
I can't edit /etc/fstab since it's in single user mode and read only..
I tried mount -o rw /. It don't work
Anyone have any ideas how to save me. Besides shooting me? .. :-)

Thanks
 
Old 11-07-2002, 12:04 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Did you try to specify the device name (partition) where / resides in your mount commnad?
mount -o rw /dev/hd?? /
???
 
Old 11-07-2002, 12:06 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
You could try booting into rescue mode from your CD and edit the file from there... you'll need to mount the / partition, edit the file and save.
 
Old 11-07-2002, 12:07 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Almost forgot you might need to specify filesystem as well with
-t filesystem_type
 
Old 11-07-2002, 12:30 PM   #5
unixpirate
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: RedHat 7.3
Posts: 44

Original Poster
Rep: Reputation: 15
neo77777,
Thanks for responding. Yes I did do that. It didnt' work. How come I can't make my /etc/fstab or /etc/mtab rw? If I can do that, I'm golden..
Thanks,
 
Old 11-07-2002, 12:36 PM   #6
unixpirate
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: RedHat 7.3
Posts: 44

Original Poster
Rep: Reputation: 15
neo77777
When I do do that, it comes back and says, block device /dev/sda7 is write protected, moutning read only
mount: /dev/sda7 already mounted or / busy
mount: according to mtab, /dev/sda7 is laready mounted on /.
 
Old 11-09-2002, 01:20 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try:

mount -n -o remount,rw /

If that doesn't work try:

mount -n -o remount,rw /dev/sda7

That's if sda7 is the partition you need to mount writable.
 
Old 11-09-2002, 05:02 AM   #8
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
If you boot into your rescue disk, doesn't that give you read/write access to everything anyway?

#Garry
 
Old 11-10-2002, 03:36 PM   #9
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
mount -t ext2 /dev/hda1 -o remount -n -w /
is the command that worked on my box
so replace hda1 and maybe ext2 if u have a different fstype or device name. i had to try out for a while cause u have to type it exactly as it is
good luck, jens
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 08:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 03:12 PM


All times are GMT -5. The time now is 04:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration