2013年3月29日 星期五

How to remove GPT partition

How to remove GPT partition


Removing GPT information from a drive
=====================================

Linux/Unix:
Method #1:
1. Press CTRL-ALT-F2 or F3.
2. Type "parted /dev/<devicename>", usually "parted /dev/sda".
3. Once inside parted type "mktable":
  -> Table type: msdos
  -> Destroy data: yes
  -> quit
4. GPT should now be removed.
5. Continue with install.

Method #2:
1. fdisk -s /dev/<devicename> --- This gets the blocksize of the device.
  Make the last five digits of this number zeros. Example: fdisk -s /dev/sda
  Will show an error about GPT, and then the block size: 39078144
  Change to 39000000 which equals our blockcount
2. dd if=/dev/zero of=/dev/devicename bs=1k seek=blockcount
3. dd if=/dev/zero of=/dev/devicename bs=1k count=20

Method #3:
1. Press CTRL-ALT-F2 or F3.
2. Type: "dd if=/dev/<devicename" of=/dev/zero bs=4k"
3. When done, continue with install.
------------------------------------------------------------------------------------------------------------------------
Windows Vista/7/2008/BartPE/WinPE/WinXP Live:
Method #1:
1. Boot up to installation DVD/CD.
2. Click install but don't follow through.
3. Press SHIFT-F10 to bring up console.
4. Type "diskpart"
5. Once inside diskpart type:
  -> list disk (find the one you want to convert)
  -> select disk 0 (select the one you want from the list)
  -> convert mbr (should take a second or two)
  -> quit
6. Continue with install

Method #2:
1. Boot up to installation DVD/CD.
2. Click install but don't follow through.
3. Press SHIFT-F10 to bring up console.
4. Type "diskpart"
5. Once inside diskpart type:
  -> list disk (find the one you want to convert)
  -> select disk 0 (select the one you want from the list)
  -> clean (wait an hour or so until its done)
  -> quit
6. Continue with install

沒有留言:

張貼留言

(TOP)Temp for soulin only

123