CentOS 5 安装 - GRUB 安装在 USB 驱动器上

CentOS 5 安装 - GRUB 安装在 USB 驱动器上

我通过 unetbootin 和 USB 棒安装了 CentOS。不幸的是,现在没有 USB 驱动器我就无法启动系统。

有人可以提供一些关于如何解决这个问题的信息吗?

谢谢。

答案1

拔出 U 盘并运行

# grub-install --recheck '(hd0)'
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/sda

选择你的设备并重新运行(仅当它未被识别为 hd0 时)

# grub-install '(hd0)'
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(hd0)     /dev/sda

相关内容