我的硬盘出了问题。以前,我有一个可以正常工作的 Linux Mint Debian Edition 分区和一个 Windows XP 分区,它们都可以正常工作,并且可以通过 GRUB 启动。
但是,我决定用 Debian 替换 LMDE,因此在 Windows 分区上我删除了 LMDE 分区。我将 Debian Live 下载到 USB 闪存驱动器上,启动它,但是在安装 Debian 期间它无法安装 GRUB(或它提供的任何其他引导加载程序)。我有些困惑,于是中止安装并重新启动进入 Windows。但是,在加载 GRUB 时出现错误“没有这样的分区”,并出现救援提示。
我不确定这是怎么发生的,但是我想尝试修复 GRUB,这样我就可以同时拥有旧的 Windows XP 分区(它仍然很好,我可以将其安装在 Debian 中)和新的 Debian 6 分区。这是我的 fdisk 输出:
user@debian:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 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: 0x04fa04fa
Device Boot Start End Blocks Id System
/dev/sda1 3297 4864 12580864 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 1 3297 26480641 5 Extended
/dev/sda5 * 1 3157 25355264 83 Linux
/dev/sda6 3157 3297 1124352 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 8006 MB, 8006926336 bytes
247 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20ac7dda
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdb1 ? 210559 238826 216435558+ 7 HPFS/NTFS
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(187, 180, 14) logical=(210558, 221, 10)
Partition 1 has different physical/logical endings:
phys=(784, 0, 13) logical=(238825, 64, 22)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 213663 341223 976730017 16 Hidden FAT16
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(906, 235, 61) logical=(213662, 17, 20)
Partition 2 has different physical/logical endings:
phys=(262, 116, 59) logical=(60762, 71, 9)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 1 1 0 6f Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(370, 101, 50) logical=(0, 0, 1)
Partition 3 has different physical/logical endings:
phys=(10, 114, 13) logical=(280460, 46, 4)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 3279 63637 462167897 0 Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 0) logical=(3278, 20, 45)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(63636, 236, 34)
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
Disk /dev/sdc: 987 MB, 987738624 bytes
31 heads, 61 sectors/track, 1020 cylinders
Units = cylinders of 1891 * 512 = 968192 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
user@debian:~$
/dev/sda1
是我的 Windows 分区,/dev/sda5
似乎是我的 Debian 安装已损坏。不确定另一个(/dev/sda6
是交换空间)。我也不确定下面的消息是什么/dev/sda1
意思。
由于缺乏互联网连接,我无法使用 apt-get 安装可以解决此问题的软件包(在 LMDE 中遇到此问题,我需要安装 MadWifi,我会在正确设置后再安装)但是如果需要,我可以从我的手机获取和传输 .deb 软件包。