Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-12-2008, 12:58 AM   #1
LQ Newbie
Registered: Jul 2008
Location: Tabasco
Distribution: SLES 10
Posts: 7

Rep: Reputation: 0
about hard disk names

hello, thanks in advance, a few days ago i start a linux ibm training, and in the first test was this question:

What is the device file for the first logical drive in the extended partition of the secondary master IDE drive? include the full path and filename

most of my class mates answer /dev/hda5, others answer was /dev/hdb5, but... reading the manual we realize that the rigth answer must be /dev/hdc5

is it correct? is the name hdc for the secondary master even if there is not a slave hard disk at all?
Old 07-12-2008, 01:55 AM   #2
Registered: Jun 2008
Location: North Carolina
Distribution: Arch Linux
Posts: 138

Rep: Reputation: 16
Hello altarazul.

/dev/hdc is NORMALLY for CD-Roms...unless you have a SATA cd-rom like I do...if I remember correctly, in your case, it would be /dev/hdb5 (/dev is the location, hdb is the second hard drive, and 5 is the partition #)...hope that clears things up (also, for SATA hard drives, it would go like this: first partition of the master drive would be /dev/sda1, second partition on master would be /dev/sda2, and so on...for a second hard drive (slave), it would be /dev/sdb, second would be /dev/sdb2, and so on)

Last edited by fedoralinuxjunkie; 07-12-2008 at 01:57 AM.
Old 07-12-2008, 01:56 AM   #3
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
yes, /dev/hdc5, although I have noticed that ubuntu calls them sd* regardless of whether they are IDE, SATA, SCSI etc..

Last edited by Tuttle; 07-12-2008 at 01:58 AM.
Old 07-14-2008, 08:44 AM   #4
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,415

Rep: Reputation: Disabled
/dev/hdc5 with a "normal" (old) IDE configuration (two masters, two slaves). The newest distributions (kernel >= 2.6.26?) use /dev/sdc5, due to a new driver in the kernel. Look into the /dev directory, there is something like this directory /dev/devices (or some such) which in turn contains /by_label and /by-UUID ... they all contain differing valid descriptors for all partitions and devices.

Last edited by JZL240I-U; 07-15-2008 at 04:36 AM.
Old 07-15-2008, 12:53 AM   #5
LQ Newbie
Registered: Jul 2008
Location: Tabasco
Distribution: SLES 10
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the answers!!


disk, drive, hard, name

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
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 12:30 PM
LXer: Tutorial: Corraling Linux Hard Disk Names LXer Syndicated Linux News 0 04-03-2008 07:41 PM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 01:20 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 09:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 11:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 PM.

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