我使用 liveUSB 启动。但是我现在如何修复我的 MBR,以便我可以重新安装 Ubuntu?(安装 ubuntu 后,我主要看到闪烁的光标和黑屏)
root@ubuntu:~# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000638ad
Device Boot Start End Blocks Id System
/dev/sda1 1 59769 480092160 83 Linux
/dev/sda2 59769 60802 8291329 5 Extended
/dev/sda5 59769 60802 8291328 82 Linux swap / Solaris
Disk /dev/sdb: 2013 MB, 2013265920 bytes
58 heads, 58 sectors/track, 1168 cylinders
Units = cylinders of 3364 * 512 = 1722368 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1965c912
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1169 1965056 83 Linux
root@ubuntu:~# fdisk /dev/sda
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000638ad
Device Boot Start End Blocks Id System
/dev/sda1 1 59769 480092160 83 Linux
/dev/sda2 59769 60802 8291329 5 Extended
/dev/sda5 59769 60802 8291328 82 Linux swap / Solaris
Command (m for help):
答案1
看起来 /dev/sda 上的所有分区都没有设置可启动标志 - 将fdisk -l
输出与 /dev/sdb 进行比较 - 看到 /dev/sdb1 旁边的 Boot 列中的星号了吗?您需要在 /dev/sda1 上进行设置
要设置可启动标志,请使用以下命令启动 fdisk
fdisk /dev/sda
(从 LiveCD 以 root 身份进行)。然后按“a”,然后输入“1”。然后按“w”将更改写入磁盘。重启。尽情享受吧。
答案2
对于最简单的解决方案,尝试通过让安装程序配置分区来安装 Ubuntu。
设置 1 个分区为可启动分区并在其上安装“/”或“/boot”。