1. 问题描述
已经安装了windows系统,但是在安装Ubuntu14.04的时候,在挂载分区时,检测不到已经安装的windows系统和windows分区,这样挂载ubuntu分区的时候,显示的一整块空磁盘,安装的话就会覆盖掉windows系统,造成灾难性的后果。
2. 问题原因
虽然安装windows使用了MBR分区,但是仍然有GPT 分区表信息存在,在终端中输入sudo parted /dev/sda
后print
中会显示:
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分区了。
希望这篇博客可以解决你的问题。
网友评论