fdiskで下記が表示された場合の対処
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'!
The util fdisk doesn't support GPT. Use GNU Parted.
Hybrid MBR を GPT / MBR ディスクに変換する。
http://mimumimu.net/blog/2012/02/01/hybrid-mbr-%E3%82%92-gpt-mbr-%E3%83%87%E3%82%A3%E3%82%B9%E3%82%AF%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B%E3%80%82/
特に、 MBR から GPT への変換は危険なにおいがするのですが、うーむ。
というのも、
GPT 形式のディスクは MBR 領域(ディスク先頭)と GPT 領域(ディスク末端)の両方を持っていますが、
MBR 形式のディスクは MBR 領域しか持っていないため、どうするのだろう。と。
末端のデータが壊れないのかなぁ、と心配だったりします。
めも、未検証
パーティション情報もクリアされる
# parted /dev/XXX -s mklabel msdos
めも
http://l-w-i.net/t/fedora/disk_001.txt
# fdisk /dev/sdb WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.このような場合はGNU Partedを使用してディスクラベルを「msdos」に変更するとよい。
ただしこの操作によりパーティションテーブルを含めたディスク内の『全てのデータが削除される』ので、重要なデータはあらかじめバックアップを取っておくこと。
http://masezou.blogspot.com/2009/09/maclinuxhdd.html
# parted /dev/sda
# mklabel
でmsdos あるいは gpt と指定する。
# parted /dev/sdd
GNU Parted 2.3
Using /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
Warning: Partition(s) on /dev/sdd are being used.
Ignore/Cancel? I
Warning: The existing disk label on /dev/sdd will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? y
Warning: /dev/sdd 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 an
msdos partition table. Is this a GPT partition table?
Yes/No? y
Error: Partition(s) 1 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a
result, the old partition(s) will remain in use. You should reboot now before making further changes.
Ignore/Cancel? I
(parted)
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt) alignment
check NUMBER do a simple check on the file system
cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER copy file system to another partition
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkfs NUMBER FS-TYPE make a FS-TYPE file system on partition NUMBER
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a file system
move NUMBER START END move partition NUMBER
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resize NUMBER START END resize partition NUMBER and its file system
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
(parted) quit
Information: You may need to update /etc/fstab.
めも
参考
http://nigou25.blog.so-net.ne.jp/parted_on_redhat
http://www.miraclelinux.com/technet/faq/data/00152.html