glennzo
3rd March 2012, 09:07 PM
How can I stop /dev/sda from randomly becoming /dev/sdb upon reboot? This is keeping me from booting some of the 9-10 installed OS's on my desktop computer. Is there some BIOS setting I can change? Here's fdisk right now:
[root@phenom16 glenn>$ fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 104859647 52428800 7 HPFS/NTFS/exFAT
/dev/sda2 104859648 209717247 52428800 83 Linux
/dev/sda3 209717248 314574847 52428800 83 Linux
/dev/sda4 314576894 1953523711 819473409 5 Extended
/dev/sda5 314576896 1363152895 524288000 83 Linux
/dev/sda6 1363154944 1468012543 52428800 83 Linux
/dev/sda7 1468014592 1572872191 52428800 83 Linux
/dev/sda8 1572874240 1677731839 52428800 83 Linux
/dev/sda9 1677733888 1782591487 52428800 83 Linux
/dev/sda10 1782593536 1887451135 52428800 83 Linux
/dev/sda11 1887453184 1949329407 30938112 83 Linux
/dev/sda12 1949331456 1953523711 2096128 82 Linux swap / Solaris
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2feb88e8
Device Boot Start End Blocks Id System
/dev/sdb1 2048 488396799 244197376 7 HPFS/NTFS/exFAT
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x06afd788
Device Boot Start End Blocks Id System
/dev/sdc1 2048 976773119 488385536 83 Linux
/dev/sda is SATA
/dev/sdb is USB
/dev/sdc is SATA
If I reboot this computer there's a good chance that the drives will flipflop and suddenly what is now /dev/sda will become /dev/sdb, or it might decide to become /dev/sdc. Who knows?
The system I'm posting from is on what is now /dev/sda2, Fedora 16. That boots no matter what the drive becomes. Everything in the boot menu works too unless the drives flipflop. Seems that then I have trouble with /dev/sda11, another Fedora 16. I think /dev/sda10 is OK too. If I remember correctly that is Mint 12. I never have a problem booting that one either. It's /dev/sda11 that is troublesome.
Maybe it's not a case of drive "flipflop" that is causing my hair loss but something about booting from /dev/sda11 or booting from higher numbered partitions that grub2 doesn't like?
This is becoming annoying. I even removed the 4th drive, an EIDE disk, to see if that was causing problems but it didn't make any difference.
[root@phenom16 glenn>$ fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 104859647 52428800 7 HPFS/NTFS/exFAT
/dev/sda2 104859648 209717247 52428800 83 Linux
/dev/sda3 209717248 314574847 52428800 83 Linux
/dev/sda4 314576894 1953523711 819473409 5 Extended
/dev/sda5 314576896 1363152895 524288000 83 Linux
/dev/sda6 1363154944 1468012543 52428800 83 Linux
/dev/sda7 1468014592 1572872191 52428800 83 Linux
/dev/sda8 1572874240 1677731839 52428800 83 Linux
/dev/sda9 1677733888 1782591487 52428800 83 Linux
/dev/sda10 1782593536 1887451135 52428800 83 Linux
/dev/sda11 1887453184 1949329407 30938112 83 Linux
/dev/sda12 1949331456 1953523711 2096128 82 Linux swap / Solaris
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2feb88e8
Device Boot Start End Blocks Id System
/dev/sdb1 2048 488396799 244197376 7 HPFS/NTFS/exFAT
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x06afd788
Device Boot Start End Blocks Id System
/dev/sdc1 2048 976773119 488385536 83 Linux
/dev/sda is SATA
/dev/sdb is USB
/dev/sdc is SATA
If I reboot this computer there's a good chance that the drives will flipflop and suddenly what is now /dev/sda will become /dev/sdb, or it might decide to become /dev/sdc. Who knows?
The system I'm posting from is on what is now /dev/sda2, Fedora 16. That boots no matter what the drive becomes. Everything in the boot menu works too unless the drives flipflop. Seems that then I have trouble with /dev/sda11, another Fedora 16. I think /dev/sda10 is OK too. If I remember correctly that is Mint 12. I never have a problem booting that one either. It's /dev/sda11 that is troublesome.
Maybe it's not a case of drive "flipflop" that is causing my hair loss but something about booting from /dev/sda11 or booting from higher numbered partitions that grub2 doesn't like?
This is becoming annoying. I even removed the 4th drive, an EIDE disk, to see if that was causing problems but it didn't make any difference.