LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 07-11-2008, 11:58 PM   #1
altarazul
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, 12:55 AM   #2
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: North Carolina
Distribution: Gentoo, Debian 7 RC 1, Mageia 3 RC 1, Kubuntu 13.04, 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 12:57 AM.
 
Old 07-12-2008, 12:56 AM   #3
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

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 12:58 AM.
 
Old 07-14-2008, 07:44 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

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 03:36 AM.
 
Old 07-14-2008, 11:53 PM   #5
altarazul
LQ Newbie
 
Registered: Jul 2008
Location: Tabasco
Distribution: SLES 10
Posts: 7

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


Reply

Tags
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 11:30 AM
LXer: Tutorial: Corraling Linux Hard Disk Names LXer Syndicated Linux News 0 04-03-2008 06:41 PM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12: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 08:40 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM


All times are GMT -5. The time now is 03:57 PM.

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