Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi everyone,
I have several computers with the same hardware and removable hard drives. I want to be able to create several back up hard drives that I can simply swap out if one goes bad in the computers. I am runnign CentOS 5.4.
I have set up the partitioning scheme with /boot, /, swap, and /home and have tried to swap out the drives but get a kernel panic every time.
Is there a specific partitioning scheme, fstab setup or grub.conf arguments that I need to have set up in order for this to work?
The system is off when I swap drives. I do a full shut down, swap the drives then turn the computer back on. I have one computer that I have been doing some development on and trying to get this swappable hard drive issue resolved. I have a second computer where I am testing swapping the hard drives. Both systems are identical hardware. The system loads up just fine on the original computer that I loaded CentOS onto but when I try to move that hard drive to another computer that's when I have problems. I will post fstab for both systems when I get a chance.
The error message is as follows:
Code:
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not synching: Attempted to kill init!
I suspect some issue with how each system is using the disk. Disk id may need to have entries set by uuid. To fix it by labels like sdx then you have to have bios and maybe some other things set to match all systems.
In the misbehaving machine, it looks like you are putting that drive in the wrong place. The grub entry you use is incorrect - that's why it can't find /dev/root.
What you are doing is crazy, btw. Leave the OS - store & move data, and only if you have regular backups. Is there a network drive they can both access?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.