What is hd0 and sda/sdb in Linux?

本文介绍了一位Linux新手在使用Ubuntu 10.04过程中遇到的问题:如何正确识别多个硬盘并设置GRUB启动加载器。文章详细解释了如何通过设备映射文件(device.map)来确定硬盘标识符,并提供了修改建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.youkuaiyun.com/yuan_ming/article/details/5034672


转载于:https://my.oschina.net/uniquejava/blog/224334

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值