Re: /dev/sda and /dev/hda

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

 



On Tue, 2007-10-23 at 17:13 -0600, Karl Larsen wrote:
>     As I have been working with 2 hard drives I have discovered for 
> certain that both hard drives change to /dev/sda when a partition on 
> them is booted. It happens that one is found at /dev/sdf and the other 
> is found at /dev/sdb. This leads to confusion and in my case I am not 
> sure what to think.
> 
>     Is this changing the disk drives a feature or is it a bug? If not a 
> feature I will write a bug soon.
> 
>     I understand the /dev/hda stays the first hard drive.

Well, sorta.  Depends on the kernel you're booting.  On earlier kernels
(pre-F7), IDE drives remained /dev/hdX.  Under F7 and later kernels,
ALL block storage is treated as SCSI (/dev/sdX) regardless of how it's
physically connected.  There's no differentiation at that level (there
is in sysfs, but let's not go there right now).

If you have other devices that were treated as SCSI before (USB, SATA,
whatever), your IDE stuff now gets added to the mix and the names can
change.  You also have to remember that grub uses a TOTALLY DIFFERENT
drive naming convention than a Linux kernel does.

Also note that in the Linux kernels, /dev/sdX refers to the ENTIRE
drive--not a partition on the drive.  /dev/sda is the first SCSI
disk (the ENTIRE disk), /dev/sda2 is the second partition on the first
SCSI disk.

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer             rstevens@xxxxxxxxxxxx -
- CDN Systems, Internap, Inc.                http://www.internap.com -
-                                                                    -
-     If one is what one eats, then I am fast, cheap and greasy!     -
----------------------------------------------------------------------

-- 
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