Linux hard drive sequence ( Drive letter assignments )

Linux hard drive sequence ( Drive letter assignments )

Post by David D » Tue, 05 Jul 2005 23:20:07


Does Linux enumerate the hard drives in a different sequence than Windows?

If I place a hard drive on my mobo's main primary IDE channel, it shows up
as "C:" in Windows 2000 (the first hard drive), but as "/hde" in Linux.

To get it to show up as "/hda", I need to place it on my mobo's primary IDE
RAID channel (which is an on-board HighPoint).

- David D

P.S., I initially posted this is a different ng, but then decided that this
ng would be more appropriate. My apologies for the cross-post.
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by floy » Wed, 06 Jul 2005 00:02:33


Please do *not* post the same article to multiple newsgroups in the
way you have done with this one.

If an article is on topic in more than one group, *cross-post* it.
To do that, put more than one group into the Newsgroup: header,
and separate them with commas. For example:

Newsgroups: comp.os.linux.hardware,comp.os.linux.misc

The difference is that only one copy of the message is passed
around the world, and *all* replies will be seen in *all* listed
newsgroups. That is as opposed to what you've done, where
anyone reading this group first might answer, and then see that
someone else has already given exactly the same answer in
another group. A total waste of time, effort, and bandwidth.

--
Floyd L. Davidson < http://www.yqcomputer.com/ ;
Ukpeagvik (Barrow, Alaska) XXXX@XXXXX.COM

 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by John-Paul » Wed, 06 Jul 2005 00:15:53


Devices attached to the first channel of the first IDE controller found
by Linux are hda and hdb. The seceond IDE channel (almost always on the
same controller as the first) then has hdc and hdd. Then hde and hdf
are on the third IDE channel found---which is usually the first channel
of an add-in card or additional IDE controller, and so on. So Linux
letters things according to where they are connected.

Windows simply calls the first hard drive C: (actually, the first
partition of the first hard drive), regardless of where it is connected.

There really isn't anything magical about the name hda. There's nothing
wrong with your hard drive being hde.

You can change the order in which IDE controllers are found by, for
example, building the driver for the add-in card into the kernel (to
ensure the add-in card is found first), and leaving the driver for the
on-board IDE controller as a module (so it will be found later). That
would make your hard drive hda even though it's still connected to the
same controller. But that's generally not necessary and requires
building a custom kernel.
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by C Fletche » Wed, 06 Jul 2005 01:01:36


IDE
this

/dev/hda Master drive on primary controller
/dev/hdb Slave drive on primary controller
/dev/hdc Master drive on secondary controller
/dev/hdd Slave drive on secondary controller

For different partitions, you tack a number on the end, e.g. /dev/hda1,
/dev/hda2

I'm pretty sure that this is a standard thing for Linux. I do know that for
Windows, being the master drive on the primary controller does NOT
necessarily make it drive C.

Chris
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by Rich Walke » Wed, 06 Jul 2005 01:11:35

"David D." < XXXX@XXXXX.COM > writes:


You might try booting with the option "ide=reverse" - this might well do
what you want.

cheers, Rich.


--
rich walker | Shadow Robot Company | XXXX@XXXXX.COM
technical director 251 Liverpool Road |
need a Hand? London N1 1LX | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by Bill Marcu » Wed, 06 Jul 2005 01:14:44

On Mon, 4 Jul 2005 10:20:07 -0400, David D.

Yes, as you have seen.

Windows assigns letters to partitions, and only partitions where it
finds a FAT or NTFS filesystem.

Is that a problem? If your BIOS can boot the drive, does it matter what
it is called?


--
Tonight you will pay the wages of sin; Don't forget to leave a tip.
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by David D » Wed, 06 Jul 2005 10:38:54


My problem is that I am trying to use InstantCake, which is a boot-CD used
for upgrading my TiVo (TiVo is Linux-based).

The software on the boot-CD assumes that a computer has only one primary and
one secondary IDE channel, and that the only IDE drives are /hda, /hdb, /hdc
and /hdd. The CDROM mount, and the hard drive mounts that are hard-coded
in the scripts require you to put the CDROM and the hard drives in specific
hardware positions to match the software's hard-coded assumptions. However,
I have constraints. My IDE RAID controller cannot accept a CDROM drive.
Neither the IDE RAID controller's nor the main IDE controller's BIOSs
support LBA48 (for that, I must use my IDE controller PCI adaptor card).

So, because I need to use software that has hard-coded assumptions, I do
care what drives are called.

- David
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by David D » Wed, 06 Jul 2005 10:43:34


<snip>

Floyd,

Normally, that's would I would have done. In this case, I did not
discover the ".hardware" ng until I had already posted on the ".misc" ng.

- David
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by Ms Rullg » Wed, 06 Jul 2005 17:53:42

"David D." < XXXX@XXXXX.COM > writes:




Then cross-post a followup to both. There is never an excuse for
multi-posting.

--
Ms Rullgd
XXXX@XXXXX.COM
 
 
 

Linux hard drive sequence ( Drive letter assignments )

Post by chec » Mon, 11 Jul 2005 09:57:23

"David D." < XXXX@XXXXX.COM > writes:

If the designations of the drives are scripts rather than 'binary', then
can't you change the scripts on the boot disk to suit?


Jack