1. 問題描述
已經(jīng)安裝了windows系統(tǒng),但是在安裝Ubuntu14.04的時候,在掛載分區(qū)時,檢測不到已經(jīng)安裝的windows系統(tǒng)和windows分區(qū),這樣掛載ubuntu分區(qū)的時候,顯示的一整塊空磁盤,安裝的話就會覆蓋掉windows系統(tǒng),造成災(zāi)難性的后果。
2. 問題原因
雖然安裝windows使用了MBR分區(qū),但是仍然有GPT 分區(qū)表信息存在,在終端中輸入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引導(dǎo)進(jìn)入Ubuntu,利用如下的命令清除 GPT signature:
sudo dd if=/dev/zero of=/dev/sda bs=1 count=8 seek=512
之后安裝ubuntu時候就可以檢測到windows分區(qū),并正確的掛載ubuntu分區(qū)了。
希望這篇博客可以解決你的問題。