CentOS51 - Kernel panic and switchroot mount failed

General support questions including new installations
Post Reply
tuchap
Posts: 1
Joined: 2016/10/28 09:04:24

CentOS51 - Kernel panic and switchroot mount failed

Post by tuchap » 2016/10/28 09:16:17

Hi,

I've reinstalled an image of CentOS 5.1 after replacing the HDD on a Dell server.

It's not a VM and it has a single HDD.

The imaging went well, but after the reboot I've the following messages:

Scannong and configuring dmraid supported devices
Cearing root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

and then nothing happens.

I'm not a specialist in Linux, then any help will be appreciated!

Thank you,

Patrick

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

Re: CentOS51 - Kernel panic and switchroot mount failed

Post by TrevorH » 2016/10/28 10:24:33

CentOS 5.1? Really? You know that came out in December 2007 and is nearly old enough to leave first school? If your hardware is newer than that then you probably cannot install 5.1 on it. The latest version of CentOS 5 is 5.11 which was released in Sept 2014. You should be using this. It contains many updated device drivers and has support for hardware that didn't even exist in 2007.

You should also know that CentOS 5 itself is very close to the end of its life. From March next year, there will be no more security updates at all for CentOS 5. You should migrate to a supported version prior to that and this sounds like an ideal opportunity to do so. CentOS 6 will go EOL in 2020 and CetnOS 7 in 2024. You should try to use one of those instead if at all possible.
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