伊莉討論區
標題:
如何清除GPT標簽
[打印本頁]
作者:
overnet2768
時間:
2011-12-27 07:08 PM
標題:
如何清除GPT標簽
如何清除GPT標簽
1) 看到GPT很不爽
# fdisk -l /dev/sdc
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
2)先把前兩個sectors洗掉
# dd if=/dev/zero of=/dev/sdc bs=512 count=2; sync
2+0 records in
2+0 records out
1024 bytes (1.0 kB) copied, 0.00061 seconds, 1.7 MB/s
3)GPT標簽還在
# fdisk -l /dev/sdc
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
4)再把后兩個sectors也洗掉 (
500107862016 / 512 - 2 = 976773166)
# dd if=/dev/zero of=/dev/sdc bs=512 seek=976773166 count=2; sync
2+0 records in
2+0 records out
1024 bytes (1.0 kB) copied, 0.000616 seconds, 1.7 MB/s
5)完成。
# fdisk -l /dev/sdc
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
作者:
fffungi
時間:
2012-1-1 09:23 PM
another way
parted /dev/sd*
mklabel msdos
quit
歡迎光臨 伊莉討論區 (http://www033.eyny.com/)
Powered by Discuz!