Chinaunix首页 | 论坛 | 博客
  • 博客访问: 179791
  • 博文数量: 42
  • 博客积分: 2185
  • 博客等级: 大尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-11 21:32
文章分类

全部博文(42)

文章存档

2012年(5)

2011年(13)

2010年(6)

2009年(18)

我的朋友

分类: LINUX

2011-07-15 23:11:14

grub-install error on GPT partition table

# grub-install /dev/sda
/usr/sbin/grub-setup: warn: This GPT partition label has no BIOS Boot Partition; embedding won't be possible!.
/usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.

The problem is because I set the wrong flags for bios_grub partition:


#  parted /dev/sda unit s print
Model: ATA QEMU HARDDISK (scsi)
Disk /dev/sda: 20971520s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End        Size       File system  Name       Flags
 1      34s     97656s     97623s     ext2         bios_grub  boot
 2      98304s  20969471s  20871168s  ext4         rootfs

Flags need set to bios_grub instead of boot:

# parted /dev/sda set 1 bios_grub on
Information: You may need to update /etc/fstab.                          

# partprobe

#  parted /dev/sda unit s print
Model: ATA QEMU HARDDISK (scsi)
Disk /dev/sda: 20971520s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End        Size       File system  Name       Flags
 1      34s     97656s     97623s     ext2         bios_grub  bios_grub
 2      98304s  20969471s  20871168s  ext4         rootfs

# grub-install /dev/sda
Installation finished. No error reported.


阅读(8568) | 评论(1) | 转发(1) |
给主人留下些什么吧!~~

txgc_wm2013-02-03 13:04:35

楼主安装过archlinux吗?