Guest User

Untitled

a guest
May 29th, 2016
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ubuntu@ubuntu:~$ sudo parted /dev/sda
  2. GNU Parted 3.2
  3. Using /dev/sda
  4. Welcome to GNU Parted! Type 'help' to view a list of commands.
  5. (parted) print
  6. Model: ATA KINGSTON SNV425S (scsi)
  7. Disk /dev/sda: 64.0GB
  8. Sector size (logical/physical): 512B/512B
  9. Partition Table: msdos
  10. Disk Flags:
  11.  
  12. Number Start End Size Type File system Flags
  13. 1 1049kB 525MB 524MB primary ntfs boot
  14. 2 525MB 64.0GB 63.5GB primary ntfs
  15.  
  16. (parted) rm 1
  17. (parted) rm 2
  18. (parted) print
  19. Model: ATA KINGSTON SNV425S (scsi)
  20. Disk /dev/sda: 64.0GB
  21. Sector size (logical/physical): 512B/512B
  22. Partition Table: msdos
  23. Disk Flags:
  24.  
  25. Number Start End Size Type File system Flags
  26.  
  27. (parted) mktable msdos
  28. Warning: The existing disk label on /dev/sda will be destroyed and all data on
  29. this disk will be lost. Do you want to continue?
  30. Yes/No? y
  31. (parted) quit
  32. Information: You may need to update /etc/fstab.
  33.  
  34. ubuntu@ubuntu:~$ sudo cat /proc/partitions
  35. major minor #blocks name
  36.  
  37. 1 0 65536 ram0
  38. 1 1 65536 ram1
  39. 1 2 65536 ram2
  40. 1 3 65536 ram3
  41. 1 4 65536 ram4
  42. 1 5 65536 ram5
  43. 1 6 65536 ram6
  44. 1 7 65536 ram7
  45. 1 8 65536 ram8
  46. 1 9 65536 ram9
  47. 1 10 65536 ram10
  48. 1 11 65536 ram11
  49. 1 12 65536 ram12
  50. 1 13 65536 ram13
  51. 1 14 65536 ram14
  52. 1 15 65536 ram15
  53. 7 0 1399872 loop0
  54. 8 0 62522712 sda
  55. 8 1 512000 sda1
  56. 8 2 62008320 sda2
  57. 8 16 1956864 sdb
  58. 8 17 1955840 sdb1
  59. ubuntu@ubuntu:~$ sudo parted /dev/sda
  60. GNU Parted 3.2
  61. Using /dev/sda
  62. Welcome to GNU Parted! Type 'help' to view a list of commands.
  63. (parted) print
  64. Model: ATA KINGSTON SNV425S (scsi)
  65. Disk /dev/sda: 64.0GB
  66. Sector size (logical/physical): 512B/512B
  67. Partition Table: msdos
  68. Disk Flags:
  69.  
  70. Number Start End Size Type File system Flags
  71. 1 1049kB 525MB 524MB primary ntfs boot
  72. 2 525MB 64.0GB 63.5GB primary ntfs
  73.  
  74. (parted) quit
  75. ubuntu@ubuntu:~$ sudo gdisk /dev/sda
  76. GPT fdisk (gdisk) version 1.0.1
  77.  
  78. Partition table scan:
  79. MBR: MBR only
  80. BSD: not present
  81. APM: not present
  82. GPT: not present
  83.  
  84.  
  85. ***************************************************************
  86. Found invalid GPT and valid MBR; converting MBR to GPT format
  87. in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
  88. typing 'q' if you don't want to convert your MBR partitions
  89. to GPT format!
  90. ***************************************************************
  91.  
  92.  
  93. Command (? for help): o
  94. This option deletes all partitions and creates a new protective MBR.
  95. Proceed? (Y/N): y
  96.  
  97. Command (? for help): w
  98.  
  99. Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
  100. PARTITIONS!!
  101.  
  102. Do you want to proceed? (Y/N): y
  103. OK; writing new GUID partition table (GPT) to /dev/sda.
  104. The operation has completed successfully.
  105. ubuntu@ubuntu:~$ sudo sfdisk -d /dev/sda
  106. label: dos
  107. label-id: 0x56ed0d2d
  108. device: /dev/sda
  109. unit: sectors
  110.  
  111. /dev/sda1 : start= 2048, size= 1024000, type=7, bootable
  112. /dev/sda2 : start= 1026048, size= 124016640, type=7
  113. ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda
  114. Disk /dev/sda: 59.6 GiB, 64023257088 bytes, 125045424 sectors
  115. Units: sectors of 1 * 512 = 512 bytes
  116. Sector size (logical/physical): 512 bytes / 512 bytes
  117. I/O size (minimum/optimal): 512 bytes / 512 bytes
  118. Disklabel type: dos
  119. Disk identifier: 0x56ed0d2d
  120.  
  121. Device Boot Start End Sectors Size Id Type
  122. /dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
  123. /dev/sda2 1026048 125042687 124016640 59.1G 7 HPFS/NTFS/exFAT
  124. ubuntu@ubuntu:~$
RAW Paste Data