don't know root password / need to fix disk errors

General support questions
Post Reply
padair
Posts: 1
Joined: 2018/05/08 02:02:33

don't know root password / need to fix disk errors

Post by padair » 2018/05/08 02:13:21

All,

I have recently taken over managing a CentOS 6.3 serverfor a client. The client does not know the root password. The server is a VM that is on VMware 5.0. Normally management is to log in with a user account that is in the sudo-ers file.

The system will not boot now and has disk errors, I think someone tried to reboot it without properly shutting it down and the console now says this during boot...

Checking filesystems
/devmapper/vg_cerberus-lv_root contains a file system with errors, check forced.
/devmapper/vg_cerberus-lv_root:
Inodes that were part of a corrupted orphan linked list found.
/dev/mapper/vg_cerberus-lv_root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options) [FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):


Any thought son how to fix this one up?

pjwelsh
Posts: 2632
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: don't know root password / need to fix disk errors

Post by pjwelsh » 2018/05/08 14:15:27


User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: don't know root password / need to fix disk errors

Post by TrevorH » 2018/05/08 15:25:40

And CentOS 6.3!!! That's from 2012 and is missing 6 years of security updates. Once you are into it, back up anything essential and look at updating it to something less crusty. 6.9 is current and the only supported CentOS 6. 6.10 is in beta upstream and will be CentOS 6.10 once RHEL 6.10 is released.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply