LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2009, 05:00 AM   #1
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Rep: Reputation: 34
Exclamation 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
 
Old 03-24-2009, 05:34 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
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
 
Old 03-24-2009, 10:13 PM   #3
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Original Poster
Rep: Reputation: 34
Smile

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.
 
Old 03-25-2009, 03:31 PM   #4
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Original Poster
Rep: Reputation: 34
Thumbs up

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I install linux on an external hard drive and boot from there? unktimn Linux - Newbie 3 10-25-2008 06:02 PM
Boot Linux from external hard drive?? wootletootle Slackware 9 01-19-2007 06:46 AM
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 06:18 PM
I installed linux on an external drive, and now I can't boot WizzKid Linux - Newbie 4 11-09-2004 09:37 PM
External 2.5" hard drive for linux boot? roboticservo Linux - Hardware 1 10-19-2004 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration