LinuxQuestions.org
Register a domain and help support LQ
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 09-27-2009, 05:55 PM   #1
adashe111
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Question how to change root password to effect a manual fsck


Hello everyone,

I have pc/os linux 2009 installed and I recently got the following message while trying to boot up my system:
*checking root file system...fsck 1.41.4 (27-Jan-2009) dev/sda1 contains a file system with errors, check forced. /dev/sda1:Inodes that were part of a corrupted orphan linked list found. /dev/sda1:Unexpected inconsistency;run fsck manually. (i.e., without -a or -p options) fsck died with exit status 4
*An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode.
*The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. after performing system maintenance press Control-D to terminate the maintenance shell and restart the system.
Give root password for maintenance:

The problem is, when I enter my password I get an incorrect password prompt. How can I change my password so that a manual fsck can start? Why did this message error message appear in the first place? Any help would be much appreciated.
 
Old 09-27-2009, 06:59 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Corrupted filesystem. Sometimes happens due to improper shutdown, such as a power trip.

If you are sure that you're typing the correct root password but it won't accept it, then it may not be able to read your password store properly, since it is stored in the root filesystem.

So they only way around this is to boot off a LiveCD or a rescue CD such as SystemRescueCD and perform fsck manuallly on the filesystem in question.
 
Old 09-27-2009, 08:20 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
For most distros you can also use the install media; just enter

linux rescue

at the initial text prompt (boot off the install media for this)
 
Old 09-28-2009, 08:05 AM   #4
AngTheo789
Member
 
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
Starting a system in rescue mode usually mounts the system disk in read-only mode. You will need to remount the disk in read-write mode to make any changes on the file system. You can remount the disk with 'mount'. There is a command option called 'remount', if I remember correctly, but please check the man page for details.
 
Old 09-28-2009, 09:32 AM   #5
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 297

Rep: Reputation: 62
Quote:
There is a command option called 'remount', if I remember correctly
You are correct. Syntax should be something like
Code:
mount -o rw,remount /dev/sda1
where /dev/sda1 is where the root filesystem lives.
 
Old 09-28-2009, 11:03 AM   #6
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
But do remember that you must run fsck while the partition is not mounted or mounted read-only. Running fsck on a mounted partition can cause irreparable damage.
 
  


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
how to change the timeout when fsck find errors and ask root password? Barx Slackware 5 08-18-2009 10:08 AM
FSCK failed error after resetting root password - help please, major problem ! mjwraw SUSE / openSUSE 6 06-19-2009 02:19 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Missing root password + need to run fsck himalaya81 Fedora 12 06-03-2008 02:53 PM


All times are GMT -5. The time now is 01:02 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