LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-07-2004, 11:36 AM   #1
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Give root password for maintenance


I messed up my fstab file by mistake. I have a copy of it on another computer but I can't write to my /etc/fstab file because it's a read-only. Is there a way to make the file system writable? Thanks again!
 
Old 12-07-2004, 11:46 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
the permissions for /etc/fstab should be --AND should always remain 644

you may need to use a live CD like knoppix........OR if you have the Slackware CD set, CD #2 is a Live rescue CD.......
 
Old 12-07-2004, 04:32 PM   #3
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Thanks 320mb. I don't have a CD to boot too because this is a blade system. I wish that I could just edit the FSTAB file somehow and that would fix the system. I wish there was an easier way.
 
Old 12-07-2004, 08:56 PM   #4
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
use a rescue disk and mount the / file system. Edit ur file and then unmount it and reboot
mkdir ramdisk1
mount /dev/hda2 ramdisk1

of course use the hda partition that is your root file system.
 
Old 12-08-2004, 12:53 PM   #5
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Is there any way that I can just make one file writable in the maintenance mode? Seems silly that I can look at every file and see the problem, but I have to go through all this work just to modify it. I say alot of work because there is no floppy drive or CD attached.

Thank you for your responses...
 
Old 12-29-2010, 10:07 AM   #6
ap1803
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
don't need a live/rescue cd...

Stummbled accross this when I had the same issue, stumped me for a bit but all you need to do when you've got the recovery prompt is remount the root filesystem as read write:


Code:
mount -o remount,rw /
Then you can edit the fstab as normal

Last edited by ap1803; 12-29-2010 at 10:07 AM. Reason: spag
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
give account root privileges mgichoga Debian 3 08-08-2005 07:50 AM
How can I give myself root priv's as a user? Mr. Hill Linux - Newbie 9 06-12-2005 02:19 PM
give root privilleges to a user atlonyx Linux - General 9 08-02-2004 01:10 AM
Changing password in maintenance mode andy18 Linux - Newbie 4 08-21-2003 09:38 AM

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

All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration