Re: Bug report added

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mcforum@xxxxxxxxxxxxx wrote:
> 
> You have it all worked out.  The system now makes whichever drive has the root 
> filesystem /dev/sda.  When you boot from the rescue disk the SATA bus on your system 
> takes precedence over the IDE bus on your motherboard since neither harddrive has 
> the root filesystem.  When you boot F7-64 its root defines which drive shows as /dev/sda.
> 
This is NOT correct. The first disk drive that is handled as a SCSI
drive becomes /dev/sda. There is nothing preventing you from having
the root file system on /dev/sdb, /dev/sdc, etc. Where you run into
problems is when you tell the BIOS to boot from the SATA drive, or
the PATA drive. Depending on the BIOS, it this can change witch
controller is found first by the kernel. If the PATA and SATA
interfaces are not using the same driver, or if you add a "real"
SCSI controller to the mix, then the driver loaded by the initrd
controls what the first SCSI controller is, and the first hard drive
on that controller becomes /dev/sda.

To make things more interesting, if the BIOS does not change the
order of the controllers, then the BIOS numbering that Grub changes
depending on what drive you boot from, but the kernel mapping of the
drives does not. This can lead to a case where the BIOS boots off
the SATA drive, but the PATA drive is /dev/sda. In this case, the
SATA drive is hd0 as far as Grub is concerned, but the PATA drive is
/dev/sda. But if you remove the PATA drive, then the SATA drive
becomes /dev/sda.

To have more fun, I have a USB drive with F7 on it. If I tell the
BIOS to boot from that drive, then that drive is hd0 as far as Grub
is concerned. If I boot Linux from that drive, then it becomes
/dev/sda because the usb_storage module is loaded by the initrd, but
the IDE drivers are not. On the other hand, if I build an initrd
that loads the IDE driver first, and then the usb_storage module,
then it will be /dev/sdb, or /dev/sdc, depending on what system I
have it plugged into. As long as I use labels, it will still work.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux