在Windows8旁边安装Ubuntu 13的问题 – 看不到分区系统

一段时间我遇到了一个问题,导致我无法安装Ubuntu(最后)。 我在2012年底购买了一台华硕笔记本电脑,预装了Windows 7。 我将它升级到Windows 8(由于它的低成本),现在,在从usb启动Ubuntu(13.04 64bit)后,安装程序无法看到我的Windows安装 – 它只显示它,因为它是免费/未分配的空间(并且它是不是)。 我尝试使用gParted来确定什么是错的,但我在GPT分区系统中出错了。 然后我运行了fdisk和后来的gdisk,看它看起来如何,但却害怕前进(现在没有机会备份我的数据)。 用fdisk我得到了

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0xbfb81289 Device Boot Start End Blocks Id System /dev/sda1 * 2048 718847 358400 7 HPFS/NTFS/exFAT /dev/sda2 718848 251660287 125470720 7 HPFS/NTFS/exFAT /dev/sda3 251660288 1255428095 501883904 7 HPFS/NTFS/exFAT Disk /dev/sdb: 1029 MB, 1029701632 bytes 19 heads, 50 sectors/track, 2116 cylinders, total 2011136 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: 0xc1550fc5 Device Boot Start End Blocks Id System /dev/sdb1 * 1520 2011135 1004808 c W95 FAT32 (LBA) 

然后从gdisk我得到:

 ubuntu@ubuntu:~$ sudo gdisk -l /dev/sda GPT fdisk (gdisk) version 0.8.5 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Your answer: 

我得到1:

 Your answer: 1 Disk /dev/sda: 1465149168 sectors, 698.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): 278A81DE-39C9-489D-BA00-947F39BE2D0E Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1465149134 Partitions will be aligned on 2048-sector boundaries Total free space is 209723053 sectors (100.0 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 718847 350.0 MiB 0700 Microsoft basic data 2 718848 251660287 119.7 GiB 0700 Microsoft basic data 3 251660288 1255428095 478.6 GiB 0700 Microsoft basic data 

并用2:

 Your answer: 2 Using GPT and creating fresh protective MBR. Disk /dev/sda: 1465149168 sectors, 698.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): 91B5A850-8718-4D8C-AA48-4DA569E5BEAE Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1465149134 Partitions will be aligned on 2048-sector boundaries Total free space is 1465149101 sectors (698.6 GiB) Number Start (sector) End (sector) Size Code Name 

任何线索或想法如何处理这个? 先感谢您

PS很抱歉很长的post…

你有一个MBR分区表,但你似乎也有一些剩余的GPT数据。 我的猜测是你有一个基于EFI的Windows 7安装,但是当你安装了Windows 8时,你将其擦除并安装在BIOS模式下。 已知Windows的分区工具在将磁盘转换为MBR模式时会对GPT数据进行不完整的擦除,因此这似乎是合理的。

幸运的是,解决方案很简单:在磁盘上使用FixParts 。 IIRC,这个程序是Ubuntu中gdisk包的一部分; 或者您可以单独下载它,如FixParts页面上所述。 当你启动它时,FixParts会抱怨杂散的GPT数据并提供删除它。 告诉它这样做,然后通过在主菜单中键入q退出FixParts。 当您启动Ubuntu安装程序时,问题应该消失。

关于以下内容的一个警告:确保Ubuntu安装程序在BIOS模式下启动。 如果以EFI模式启动它,它可能会尝试以这种方式安装,结果将无法启动。 通过下载到shell并查找名为/sys/firmware/efi的目录来检查模式。 如果该目录存在,则您已在EFI模式下启动,并应调整您的启动设置以强制进行BIOS模式启动。 如果没有/sys/firmware/efi目录,你可能已经在BIOS模式下启动它应该可以正常工作。