LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Drives reordered, now it won't boot? (https://www.linuxquestions.org/questions/slackware-14/drives-reordered-now-it-wont-boot-4175499845/)

JamesGT 03-28-2014 10:00 PM

Drives reordered, now it won't boot?
 
I had 3 drives in my Slackware 14.0 machine. I removed one to put into another machine and all the drives are now reordered and it won't boot.

My original boot drive was SDC1. When I removed one of my drives, it became SDB1.

I booted with parted magic and updated the lilo.conf and fstab, but obviously there is something else I am missing.

What do I need to do to get my system to boot normally again?

astrogeek 03-28-2014 10:21 PM

Quote:

Originally Posted by JamesGT (Post 5143120)
I had 3 drives in my Slackware 14.0 machine. I removed one to put into another machine and all the drives are now reordered and it won't boot.

My original boot drive was SDC1. When I removed one of my drives, it became SDB1.

I booted with parted magic and updated the lilo.conf and fstab, but obviously there is something else I am missing.

What do I need to do to get my system to boot normally again?

Did you run lilo after updating lilo.conf?

UPDATED: - For the best overview of how drives are ordered in BIOS and kernel, click here.

As you are using lilo as the boot loader, you will need to boot using the install media (probably DVD), mount the Slackware root partition and chroot into it.

Then edit your lilo.conf and change references to devices such as /dev/sdb1 to use the actual device ids or uuids.

You will find those in /dev/disk/by-{id,uuid}/...

MBR references (usually in boot and other stanzas) will need to use /dev/disk/by-id/... while root references will be /dev/disk/by-uuid/...

Image and initrd references will need to be mounted and the actual mount paths specified when you run lilo.

Then run lilo and reboot.

fstab should be updated to use uuid references as well.

This will make boot management independent of drive ordering, as it should be.


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