![CentOS 5 安装 - GRUB 安装在 USB 驱动器上](https://linux22.com/image/1239796/CentOS%205%20%E5%AE%89%E8%A3%85%20-%20GRUB%20%E5%AE%89%E8%A3%85%E5%9C%A8%20USB%20%E9%A9%B1%E5%8A%A8%E5%99%A8%E4%B8%8A.png)
我通过 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