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 10-12-2009, 01:24 AM   #1
csegau
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
file system


since i have locked all the password in my distro fedora 8 even root password, so i tried to login using init=/bin/sh using edit option in grub
but file system is in read mode so i cannot modify the passwd file and shadow file ...?
so how to mount file system in read-write mode
 
Old 10-12-2009, 02:11 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Use (boot from) the install DVD, at the initial prompt, type

linux rescue
 
Old 10-12-2009, 02:18 AM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by csegau View Post
since i have locked all the password in my distro fedora 8 even root password, so i tried to login using init=/bin/sh using edit option in grub
but file system is in read mode so i cannot modify the passwd file and shadow file ...?
so how to mount file system in read-write mode
You're going about this the wrong way.

1. During boot, press keyboard "escape" to enter the grub boot menu.

2. Choose the desired boot choice, then press 'e' for edit.

3. Scroll down to the kernel boot line and press 'e' again. This allows you to edit that line.

4. Add a space and a 1 at the end of the line.

5. Press Enter to quit the edit mode, then press 'b' for boot.

6. This will get you into single-user mode and your drive is mounted r/w.

7. You are automatically root in runlevel 1. Type "passwd" and enter the new password.
 
Old 10-12-2009, 02:23 AM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
you have to unmount it "umount /<mount path>" and then mount it again with rw switch. View the Man for mount for correct syntax.
 
  


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
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
when does linux switch from realmode file system to protectedmode file system sitthar Linux - General 3 04-08-2006 08:05 AM
figuring out 'file system' and 'swap file system' types TrulyTessa Linux - Newbie 3 09-26-2005 06:46 PM


All times are GMT -5. The time now is 01:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration