Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What does :

/dev/sda

stand for? What does it mean?

I have both Fedora and Ubuntu installed and if I explore them using Ext2explore from windows, I see these names :

/dev/sda6
/dev/sda9

Please explain me what does that mean? I mean the numbers there and also the /dev/sda/.

share|improve this question
add comment

2 Answers

TL;DR: It has to do with the way linux (and all unixes) name their drives, much in the way that windows uses C:, D:, etc. (NOTE: This is what we call a metaphor. In other words, a blatant lie that helps people understand without being even remotely accurate. Read on for a more detailed explanation...)

  • /dev/ is the part in the unix directory tree that contains all "device" files -- unix traditionally treats just about everything you can access as a file to read from or write to.

  • sd originally identified a SCSI device, but since the wildgrowth of USB (and other removable) data carriers it became a catch-all for any block device (another unix term; in this context, anything capable of carrying data) that wasn't already accessible via IDE. When SATA came around, the developers figured it'd be much easier and much more convenient for everyone to add it into the existing framework rather than write a whole new framework.

  • The letter immediately after sd signifies the order in which it was first found -- a,b,c...z, Aa...Az... etc. (Not that there are many situations in the real world where more than 26 discrete block devices are on the same bus...)

  • Finally, the number after that signifies the partition on the device. Note that because of the rather haphazard way PCs handle partitioning there are only four "primary" partitions, so the numbering will be slightly off from the actual count. This isn't a terrible problem as the main purpose for the naming scheme is to have a unique and recognizable identifier for each partition found in this manner...

So /dev/sda9 means the ninth partition on the first drive.

share|improve this answer
    
I didn't understand the third point. Can you please help me in that –  saplingPro Feb 27 '13 at 11:24
3  
Meaning that the first device found would be sda, the second would be sdb, and so on until the 26th device would be called sdz and the system would start with sdAa if you wind up having more devices than that... –  Shadur Feb 27 '13 at 13:58
    
okay ! thank you :) –  saplingPro Mar 1 '13 at 7:48
add comment

/dev is your filesystem representation of devices your system understands

sd is for (originally) removable scsi devices, however it seems to now refer to removable devices in general and SATA devices

and the letter is just the number of the device, starting at a, with the number indicating the partition.

share|improve this answer
1  
Wrong. 1) SATA devices also get the sd marker. 2) The letter marks the number of the device, the number following the letter marks the partition. –  Shadur Feb 27 '13 at 10:40
    
corrected - thanks - dunno what I was thinking there :-) –  Rory Alsop Feb 27 '13 at 10:43
    
can you clarify this : "/dev is your filesystem representation of devices your system understands" . I didn't quite understand what does that mean –  saplingPro Feb 27 '13 at 10:49
    
It means that unix has a much different way of looking at hardware and filesystems than windows, and /dev/ is a part of that. I'm elaborating on that a bit in my answer. –  Shadur Feb 27 '13 at 10:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.