Ubuntu安装时找不到windows分区的解决办法

1. 问题描述

已经安装了windows系统,但是在安装Ubuntu14.04的时候,在挂载分区时,检测不到已经安装的windows系统和windows分区,这样挂载ubuntu分区的时候,显示的一整块空磁盘,安装的话就会覆盖掉windows系统,造成灾难性的后果。


2. 问题原因

虽然安装windows使用了MBR分区,但是仍然有GPT 分区表信息存在,在终端中输入sudo parted /dev/sdaprint 中会显示:

Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid 
fake msdos partition table, as it should.Perhaps it was corrupted -- possibly by a program that doesn't understand 
GPT partition tables. Or perhaps you deleted the GPT table, and are now using anmsdos partition table. 
Is this a GPT partition table?Yes/No? Yes 

3. 解决办法

live CD引导进入Ubuntu,利用如下的命令清除 GPT signature

sudo dd if=/dev/zero of=/dev/sda bs=1 count=8 seek=512

之后安装ubuntu时候就可以检测到windows分区,并正确的挂载ubuntu分区了。


希望这篇博客可以解决你的问题。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容