LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux boot from 2nd HDD in T21 (https://www.linuxquestions.org/questions/linux-software-2/linux-boot-from-2nd-hdd-in-t21-10070/)

pholm01 12-14-2001 03:54 AM

Linux boot from 2nd HDD in T21
 
I have successfully installed RH 7.2 on my T21. After the installation I moved the disk to the ultrabay and booted. I'm using GRUB and it find the correct disk and starts booting. After the message 'Mounting root filesystem' I get 'attempting to access beyond end of device' which soon results in 'Kernel Panic: No init found'.
My first disk is 30GB and the Linux one in the ultrabay is 6.4GB. The latter is defined as /dev/hdc during the boot.
Has anyone succeeded in booting from the ultrabay?
As I have no external cdrom my only solution is to install Linux while the target disk is in the primary position and then move it to the ultrabay afterwards.
My optimal solution would be to have 2 entries in the GRUB menu.lst, one
for each disk position.

DavidPhillips 12-14-2001 03:57 AM

sounds like grub is on the 30 G drive and it does not know where the linux disk is because you moved it.

pholm01 12-14-2001 04:15 AM

Nope, GRUB is on the 6.4GB disk.

DavidPhillips 12-14-2001 05:00 AM

if grub is coming up on boot then it is just a matter of telling grub where the hard drive with linux on it is.


one thing you could do is put it back like it was when you installed it, put another drive in the bay and see what the drive is located as. Then setup grub to load linux on that drive.

pholm01 12-14-2001 08:41 AM

Problem solved!
First I updated the GRUB config file with a new entry:
title Red Hat from Ultrabay
kernel /vmlinuz-2-4.7-10 ro root=/dev/hdc2
initrd /initrd-2.4.7-10.img
Secondly I duplicated the swap path in the /etc/fstab and changed hda3 to hdc3.
Having two entries for swap makes it possible to run the system from either disk
positions.
I now have a very flexible solution just as I wanted.
Thanks David you pointed me in the right direction!
/Peter


All times are GMT -5. The time now is 10:56 PM.