从闪存 USB 安装时,系统提示无法安装引导加载程序。我选择了在没有引导加载程序的情况下继续选项。当我重新启动没有 USB 时,我面对的是空白屏幕和闪烁的光标。我重新启动了闪存 USB,并安装并运行了引导修复。然后我重新启动没有 USB,但这次我得到了“grub 救援”屏幕。我感觉我的分区乱七八糟,因为我似乎无法遵循我在谷歌上搜索的任何建议,因为什么都不存在,或者命名非常奇怪,例如/dev/mapper/isw_ciehbafdfa_Volume0p5
而不是/dev/sda
。这可能是使用 USB 而不是 DVD 进行安装。以下是 sudo fdisk -l 返回的内容
mint@mint ~ $ sudo fdisk -l
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x91e6 of partition table 5 will be corrected by w(rite)
Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b8aa8
Device Boot Start End Blocks Id System
/dev/sda1 512 500223 249856 83 Linux
/dev/sda2 500734 250081791 124790529 5 Extended
/dev/sda5 ? 1454279609 3201150582 873435487 b7 BSDI fs
Disk /dev/sdb: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/mapper/isw_ciehbafdfa_Volume0: 128.0 GB, 128041877504 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250081792 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x000b8aa8
Device Boot Start End Blocks Id System
/dev/mapper/isw_ciehbafdfa_Volume0p1 512 500223 249856 83 Linux
/dev/mapper/isw_ciehbafdfa_Volume0p2 500734 250081791 124790529 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/mapper/isw_ciehbafdfa_Volume0p5 500736 250081791 124790528 8e Linux LVM
Disk /dev/mapper/isw_ciehbafdfa_Volume0p1: 255 MB, 255852544 bytes
255 heads, 63 sectors/track, 31 cylinders, total 499712 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/isw_ciehbafdfa_Volume0p1 doesn't contain a valid partition table
fdisk: unable to read /dev/mapper/isw_ciehbafdfa_Volume0p2: Inappropriate ioctl for device
[/code]
这里是启动修复报告
我的问题是如何从 live usb 手动安装 Grub?我试过这样做,但似乎总是失败,例如我按照说明操作(http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd)但首先 /dev/sd 似乎对我而言不存在。因此,从 gparted 来看,我使用
sudo mount /dev/mapper/isw_ciehbafdfa_Volume0p1 /mnt
或者/mnt/boot
然后出现以下问题
mint@mint ~ $ sudo grub-install --root-directory=/mnt/ /dev/mapper/isw_ciehbafdfa_Volume0p1
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: warning: File system `ext2' doesn't support embedding.
grub-install.real: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install.real: error: will not proceed with blocklists.
答案1
我不确定这是否能解决您的问题,但两个月前我用 Ubuntu 替换 Arch 时也遇到过类似的问题。出于某种原因,安装程序尝试将引导加载程序安装在我的 USB 上而不是我的硬盘上 :P 尝试在安装后手动安装 grub 引导加载程序 :p