LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 09-30-2010, 03:17 AM   #1
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 18

Rep: Reputation: 0
Why is a SATA HDD listed as sda?


The harddrive in this PC is a WD400BD, with a SATA connection to
the mainboard.
So why does
fdisk -l

list the partitions as /dev/sda1, /dev/sda2, etc?
Is it really a SCSI drive?
Thanks.
 
Old 09-30-2010, 03:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
sata = serial ATA, and serial is what the s in sda represents to the best of my knowledge. Sata drives will be sdX devices on all standard operating systems unless some weird stuff is being done under the covers.
 
Old 09-30-2010, 03:21 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
From what I know, both SCSI and SATA have similar naming, /dev/sd*
 
Old 09-30-2010, 04:54 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
CentOS still uses hd? and sd? -- messes me up at times
I think everyone else uses only sd? for both ( except in the grub.conf )
 
Old 09-30-2010, 06:28 AM   #5
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Originally IDE disks (parallel ATA) were identified with /dev/hdx and scsi disks with /dev/sdx, because of the complete different interfaces.

After some time work started on a unified interface for disks. Result of this work is that most P-ATA and S-ATA disks got a scsi compatibility layer. (They act as a scsi drive towards the OS).

Result of this is that on the newest distributions there are only /dev/sdx devices.

For example my server which has an IDE and a SATA drive shows them as /dev/sda (IDE) and /dev/sdb (SATA) under OpenSuse 11.3.
As for that the IDE cd-rom player will show up as /dev/sr0 (sr=scsi rom)

note1) and no, the s in sda stands for scsi which predates sata for a very long time

note2) Yeah, but grub will use hd(x,x) no matter if it's scsi, pata or sata.

_______________
Gerrard
 
Old 09-30-2010, 07:19 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by gdejonge View Post
note1) and no, the s in sda stands for scsi which predates sata for a very long time
Doh! I thought it meant "serial", not "sata" though. I'd actually have no idea how to clarify what I said either way. Some c header somehwere with an ancient comment in it I guess

Last edited by acid_kewpie; 09-30-2010 at 07:20 AM.
 
Old 09-30-2010, 09:53 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,409

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I think it has more how the disto was setup. At some point most distro's changed how the drives are "seen". They are seen as scsi would be my opinion if it is sda. Even usb devices are considered scsi only in they way the software interacts with them. That is on most newer distros.
 
Old 10-01-2010, 01:53 AM   #8
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for all of your answers, and I did have the clue that Debian fdisk -l lists my SDCardReader as /dev/sdb so, yes, the card reader is listed similarly as the SATA drive.
I added an old Quantum Fireball 1.3 gigabyte drive as an IDE slave, with a CD-RW as the IDE master, and GRUB, was installed on that old 1.3 gibabyte drive.
Another question I have about this drive is that it has a 4 pin MOLEX power connector AND a 15 pin power connector attached, yet the drive seems to run OK with either the 4 pin connector or the 15 pin SATA connector.
Should the drive have BOTH power connectors?
The very short wire lengths between the 4 pin and 15 connectors, for each pair of them in the wiring harness, seems to preclude the possibility of connecting all FOUR power connectors to a pair of SATA drives, if I add a second SATA drive...)
So I'm guessing that only 1 power connector per drive is OK.
 
  


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
Sata controller seen as hda and not sda B-Boy Linux - Hardware 1 02-28-2009 06:13 AM
hdd/sda: How to find which one is hd0 and hd1 ? frenchn00b Linux - Newbie 11 05-14-2008 03:26 PM
SDA listed as HDA conflict during SuSE 10.2 Update charleswallace Linux - General 2 08-03-2007 06:55 PM
usb hdd error after dd of=/dev/sda stairwayoflight Linux - Hardware 2 01-06-2007 04:10 PM
sda-hdd-boot-problem morfeo99 Linux - General 1 03-30-2006 09:36 AM


All times are GMT -5. The time now is 06:27 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