PDA

View Full Version : [ubuntu] Whats diff between sda and hd?



jonnyl888
May 15th, 2009, 11:29 AM
Everyone is going on about sda1 sda2 and like hd0,1 and hd0,2. Whats the difference and is there a way to list both sda number and hd number?

73ckn797
May 15th, 2009, 11:41 AM
Everyone is going on about sda1 sda2 and like hd0,1 and hd0,2. Whats the difference and is there a way to list both sda number and hd number?


sda = hd0 & hd0 = sda
sdb = hd1 & hd1 = sdb
and so forth. When you talk sda you are talking hd0.

No difference other than grub designates the hd and Ubuntu/Linux uses sd

jonnyl888
May 15th, 2009, 11:45 AM
No what i mean is each individual partition. My sda6 is actually hd0,5 why is this? And how can i chrck the other partitions?

73ckn797
May 15th, 2009, 12:48 PM
No what i mean is each individual partition. My sda6 is actually hd0,5 why is this? And how can i chrck the other partitions?

The hd designation begins at "0" and the sd begins at "a". So, 0 = a, 1 = b etc. In another way sda1 = hd0,0, sda2 = hd0,1. A second drive would list as sdb1 = hd1,0.

sda1 would be the first drive, partition 1. If there is more than 1 partition on that drive then the other would be sda2 or hd0,1.The swap partition jumps ahead so do not let that confuse you. It will all make sense and be second nature in your thinking.