LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-06-2008, 02:12 AM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 280

Rep: Reputation: 30
Confused about HDD designations in Linux


When I bring up Gparted in Linux Mint it shows my hda1, hda2. If I had a second HDD would it be hdb or sda. I'm confused, what are all these designations? Thanks.
 
Old 06-06-2008, 02:17 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Classically, hdX referred to a PATA drive while sdX referred to a SCSI drive. Sata drives will show up as sdX.

Newer kernels now use one of the scsi kernel modules for PATA drives as well, so on a newer Linux installation, you may not see any hdX references at all. They weren't happy with some of the pata code and how well it was maintained.

USB drives use scsi code and show up as sdX devices. SCSI drivers are used to handle USB drives in MS Windows as well, since USB is a bus that is how USB drives are implemented, and coded internally, pretending that they are scsi drives.

Last edited by jschiwal; 06-06-2008 at 02:20 AM.
 
Old 06-06-2008, 03:03 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
On systems with PATA the standard is two IDE PRI-0 and SEC-1
(different manufacturers may call them a little different). Each IDE has two channels Master and Slave so in total you have 4 channels. Linux sees them like so.

hda = PRI - Master
hdb = PRI - Slave
hdc = SEC - Master
hdd = SEC - Slave

SATA = sdx
SCSI also is seen as sdx

And as jschiwal has stated with the newer kernel's hda is seen different, although you can still use the old standard when editing your fstab.
 
Old 06-06-2008, 03:42 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 165Reputation: 165
USB drives are also seen as sdx.
 
  


Reply


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
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 04:47 AM
XP on 1 HDD,Linux on 2nd HDD,remove ,other won't launch Dark Templar Linux - Newbie 3 05-07-2006 12:03 PM
how to do a dual boot (Windows on portable HDD) linux on computer HDD izquierdista Linux - General 5 01-28-2006 10:50 AM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 07:56 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 02:45 AM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration