LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 4.3 - Cannot run fsck manually because root password is unknown (https://www.linuxquestions.org/questions/linux-newbie-8/centos-4-3-cannot-run-fsck-manually-because-root-password-is-unknown-4175470085/)

BobbyMac 07-18-2013 12:19 PM

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!

joe_2000 07-18-2013 12:30 PM

Hi. It should still be possible from a live CD...

BobbyMac 07-18-2013 12:36 PM

Could you kindly provide additional information regarding your suggestion?

joe_2000 07-18-2013 12:59 PM

Quote:

Originally Posted by BobbyMac (Post 4992672)
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... :-)

John VV 07-18-2013 03:18 PM

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

BobbyMac 07-19-2013 10:07 AM

Quote:

Originally Posted by joe_2000 (Post 4992688)
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?

John VV 07-19-2013 12:33 PM

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

BobbyMac 07-19-2013 01:57 PM

At the Terminal window, I appear to be in a 'BASH' shell. "FSCK of not a recognized command"

John VV 07-19-2013 04:34 PM

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

BobbyMac 07-21-2013 09:35 PM

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!

astrogeek 07-21-2013 10:02 PM

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.

BobbyMac 07-21-2013 10:20 PM

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!


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