drive order switch has caused external HD Linux not to boot
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
drive order switch has caused external HD Linux not to boot
My external SATA drive order got switched with the internal IDE hard drive so that now the 3 Linux on that external drive do not boot. They were as; sda was the 250 GB external SATA, and sdb was the 200 GB internal standard IDE drive. This was caused by connecting that external by eSATA connection to a new computer with Vista 64, and I backed up some files from Vista to a NTFS storage partition on it. My main boot grub is installed on the internal hard drive with XP, SUSE, and Ubuntu, which all do boot fine, All the partitions do look just as they should, except when viewed from the bootable System Rescue CD with the; fdisk -l, then they are just switched, here is the current fdisk-l from booted into SUSE here;
fdisk -l run from SUSE on 3-24-09
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x826d56f6
Device Boot Start End Blocks Id System
/dev/sda1 1 26 208813+ 83 Linux
/dev/sda2 * 27 1958 15518790 83 Linux
/dev/sda3 1959 3916 15727635 83 Linux
/dev/sda4 3917 30401 212740762+ f W95 Ext'd (LBA)
/dev/sda5 5875 7832 15727572 83 Linux
/dev/sda6 8094 10965 23069308+ 7 HPFS/NTFS
/dev/sda7 7833 8093 2096451 82 Linux swap /
/dev/sda8 3917 5874 15727572 83 Linux
/dev/sda9 10966 12988 16249716 83 Linux
Partition table entries are not in disk order
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x89518951
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7833 62918541 7 HPFS/NTFS
/dev/sdb2 7834 10444 20972857+ 83 Linux
/dev/sdb3 10445 12402 15727635 83 Linux
/dev/sdb4 12403 24321 95739367+ 5 Extended
/dev/sdb5 12403 12663 2096451 82 Linux swap /
/dev/sdb6 12664 14621 15727603+ 83 Linux
/dev/sdb7 14622 17885 26218048+ 83 Linux
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
If you're drive order changed than you have to change you're menu.lst
Remember that it starts counting at Zero so (Hd0,0)=sda1
Ask for a terminal as root or su use nano,pico , vi kwrite to edit the menu.lst and cahnge it
AS a example vi /boot/grub/menu.lst and change into the new order
Yes I did that, and the /etc/fstab files also need to be edited to match any partition changes, which I did do also. I booted to that Test Disk tool and did some minor partition corrections, (last one was deleted sda9, and the sda6 and sda7 were switched). And now I can boot 2 of the 3 Linux on that external drive.
After edit of all Linux /etc/fstab files for some partition changes, and then made sure my grub boot menu file matches the actual correct layout of the partitions, all Linux do boot up good now, thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.