Name Convension -- Grub脚本中使用的命名规则

(fd0)
First of all, GRUB requires that the device name be enclosed with ‘(’ and ‘)’. The
fd’ part means that it is a floppy disk. The number ‘0’ is the drive number, which is
counted from zero. This expression means that GRUB will use the whole floppy disk.

(hd0,1)
Here, ‘hd’ means it is a hard disk drive. The first integer ‘0’ indicates the drive
number, that is, the first hard disk, while the second integer, ‘1’, indicates the partition
number (or the pc slice number in the BSD terminology). Once again, please note that the
partition numbers are counted from zero, not from one. This expression means the second
partition of the first hard disk drive. In this case, GRUB uses one partition of the disk,
instead of the whole disk.
(hd0,4)
This specifies the first extended partition of the first hard disk drive. Note that the
partition numbers for extended partitions are counted from ‘4’, regardless of the actual
number of primary partitions on your hard disk
.


(hd1,a)
This means the BSD ‘a’ partition of the second hard disk.

 

from grub manual...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值