What is hd0 and sda/sdb in Linux?

I'm completely new to Linux, and am using Ubuntu 10.04.

I'm confused when to use what(hdx,y)to represent which hard drive.

I have 2 hard drives, the first one is identified as /dev/sda (in Disk Utility) and that's where I installed my old Windows 7 RC (unused). the second one is /dev/sdb where I installed my Ubuntu (in /dev/sdb7 and /dev/sdb8 swap) and XP (in /dev/sdb1).

now if I want to play around with Ubuntu's GRUB, what(hdx,y)should I use? For now, I want to install BURG, and I read the installation step in a website that I have to typeburg-install "(hd0)"to install BURG to the hd's MBR, but I'm just unsure, I'm afraid it'll mess everything.

So, how can I know which harddisk is (hd0), (hd1), or (hd0,1), etc.?

***

When GRUB probes devices it makes a device.map file, you can find this in the same directory as your grub.conf. It will look similar to this:

(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb
(hd2)   /dev/sdc

You are free to modify this as you see fit any time. Read more here.

***其它:
http://ubuntuforums.org/showthread.php?t=1240343
http://blog.csdn.net/yuan_ming/article/details/5034672


你可能感兴趣的:(What is hd0 and sda/sdb in Linux?)