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 - 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 07-18-2013, 12:19 PM   #1
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Rep: Reputation: Disabled
CentOS 4.3 - Cannot run fsck manually because root password is unknown


CentOS 4.3 - I cannot run fsck manually to correct a file system error because the root password is unknown. I have attempted to change the root password by booting in the single-user mode, however the file system error prevents me from accessing the root shell prompt where I would normally use the 'passwd' command. Any suggestions would be greatly appreciated!
 
Old 07-18-2013, 12:30 PM   #2
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Hi. It should still be possible from a live CD...
 
Old 07-18-2013, 12:36 PM   #3
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Could you kindly provide additional information regarding your suggestion?
 
Old 07-18-2013, 12:59 PM   #4
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by BobbyMac View Post
Could you kindly provide additional information regarding your suggestion?
Hmm, what additional information do you require? It would be easier to help if you were asking more precise questions, but in general the steps should be...
- Download an iso image of any distro that provides live images,
- use the dd command to create a bootable flash drive OR burn the iso to CD / DVD
- boot from the flash drive / CD / DVD into a live system
- make sure that the partition you want to run fsck on is not mounted
- read the fsck manual thoroughly (I did not have to use fsck so much myself, so I can't warn about particular pitfalls, but it certainly can create dataloss, your data is hopefully backed up?)
- run fsck

If you you need more detailed explanation on the above steps google is your friend. If you can't find useful answers feel free to ask... :-)
 
Old 07-18-2013, 03:18 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
BobbyMac
you are aware that CentOS 4.3 is VERY dead and has been unsupported for a very long time
since Aug. of 2006 , when CentOS 4.4 came out
the very last Centos 4 series was 4.9
and the whole 4 series went Unsupported on Feb. 29 of 2012

CentOS4 ( like RHEL4 ) stopped receiving updates in Mar. or 2009 , and has not received any security updates or fixes since Feb. 29 of 2012

you do have a full back up of this install ?

being such an old OS , is the hardware also from about 2005
if so it might be a bad disk . Have you looked at the system logs

it might be easier to try a new drive and dd the back up image on to it
but centos 4.3 is unsupported

you would be better off to install the current CentOS 6.4 and import data from a known good back up of the centOS 4.3 install
 
Old 07-19-2013, 10:07 AM   #6
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by joe_2000 View Post
Hmm, what additional information do you require? It would be easier to help if you were asking more precise questions, but in general the steps should be...
- Download an iso image of any distro that provides live images,
- use the dd command to create a bootable flash drive OR burn the iso to CD / DVD
- boot from the flash drive / CD / DVD into a live system
- make sure that the partition you want to run fsck on is not mounted
- read the fsck manual thoroughly (I did not have to use fsck so much myself, so I can't warn about particular pitfalls, but it certainly can create dataloss, your data is hopefully backed up?)
- run fsck

If you you need more detailed explanation on the above steps google is your friend. If you can't find useful answers feel free to ask... :-)
Thanks!
I have downloaded the CentOS 4.3 LiveCD & have booted the system. Can you provide detailed instruction to run fsck? I am assuming this is done through the Termiinal window?
 
Old 07-19-2013, 12:33 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a live cd is not the best version of centos
it is after all only 486 meg ( the May of 2006 CentOS-4.3-i386-LiveCD.iso )
but

have a look at the man page
-- the live cd you are root so ...
Code:
man fsck
but if this hardware is as old as the operating system
it might be a physical problem
 
Old 07-19-2013, 01:57 PM   #8
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
At the Terminal window, I appear to be in a 'BASH' shell. "FSCK of not a recognized command"
 
Old 07-19-2013, 04:34 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
using the install CentOS 4.3 dvd in "rescue" mode is the best option

but you should be able to mount the drive even on the live cd
remember the live cd dose not have many tools , it is very limited in what it can do .

can you run "fdisk -l " on the drive
 
Old 07-21-2013, 09:35 PM   #10
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
From the Terminal screen, no I cannot run "fdisk -l" or any of the other commands like "fscK" as these commands return a "Not a recognized command" statement? Thanks!
 
Old 07-21-2013, 10:02 PM   #11
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
As you do not seem to have many basic Linux skills (just an observation, nothing negative intended), I would suggest that you download a Gparted live CD and boot to that. From there you can do most hard drive tasks, including fsck, from the menu.

That would probably be easier.
 
Old 07-21-2013, 10:20 PM   #12
BobbyMac
LQ Newbie
 
Registered: Jul 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Your observation is very accurate! I certainly appreciate your information regarding Gparted Live CD. I will be back onsite at this system in a couple of days & will let you know if I have any success using the CD. Thank you again!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck failed run manually elchiky Linux - Newbie 3 09-24-2010 06:33 AM
Boot error fsck.reiserfs failed Run Manually anerusmc Linux - Newbie 5 11-03-2009 07:34 PM
Unexpected inconsistency, run fsck manually twangchuk Linux - Newbie 2 06-12-2009 09:51 AM
Missing root password + need to run fsck himalaya81 Fedora 12 06-03-2008 01:53 PM
computer asks me to run a FSCK Manually, but won't : says can't run on mounted lightwave Linux - Newbie 12 04-02-2008 12:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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