Advertisement
Guest User

Untitled

a guest
May 29th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. root@partedmagic:~# sudo fdisk /dev/sda
  2. Welcome to fdisk (util-linux 2.23.2).
  3.  
  4. Changes will remain in memory only, until you decide to write them.
  5. Be careful before using the write command.
  6.  
  7.  
  8. Command (m for help): m
  9. Command action
  10. a toggle a bootable flag
  11. b edit bsd disklabel
  12. c toggle the dos compatibility flag
  13. d delete a partition
  14. g create a new empty GPT partition table
  15. G create an IRIX (SGI) partition table
  16. l list known partition types
  17. m print this menu
  18. n add a new partition
  19. o create a new empty DOS partition table
  20. p print the partition table
  21. q quit without saving changes
  22. s create a new empty Sun disklabel
  23. t change a partition's system id
  24. u change display/entry units
  25. v verify the partition table
  26. w write table to disk and exit
  27. x extra functionality (experts only)
  28.  
  29. Command (m for help): d
  30. Partition number (1,2, default 2): 1
  31. Partition 1 is deleted
  32.  
  33. Command (m for help): d
  34. Selected partition 2
  35. Partition 2 is deleted
  36.  
  37. Command (m for help): d
  38. No partition is defined yet!
  39.  
  40. Command (m for help): w
  41. The partition table has been altered!
  42.  
  43. Calling ioctl() to re-read partition table.
  44. Syncing disks.
  45. root@partedmagic:~# fdisk -l
  46.  
  47. Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
  48. Units = sectors of 1 * 512 = 512 bytes
  49. Sector size (logical/physical): 512 bytes / 512 bytes
  50. I/O size (minimum/optimal): 512 bytes / 512 bytes
  51. Disk label type: dos
  52. Disk identifier: 0x56ed0d2d
  53.  
  54. Device Boot Start End Blocks Id System
  55. /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
  56. /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
  57.  
  58. Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
  59. Units = sectors of 1 * 512 = 512 bytes
  60. Sector size (logical/physical): 512 bytes / 512 bytes
  61. I/O size (minimum/optimal): 512 bytes / 512 bytes
  62. Disk label type: dos
  63. Disk identifier: 0x000678ad
  64.  
  65. Device Boot Start End Blocks Id System
  66. /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
  67. root@partedmagic:~# fdisk -l
  68.  
  69. Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
  70. Units = sectors of 1 * 512 = 512 bytes
  71. Sector size (logical/physical): 512 bytes / 512 bytes
  72. I/O size (minimum/optimal): 512 bytes / 512 bytes
  73. Disk label type: dos
  74. Disk identifier: 0x56ed0d2d
  75.  
  76. Device Boot Start End Blocks Id System
  77. /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
  78. /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
  79.  
  80. Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
  81. Units = sectors of 1 * 512 = 512 bytes
  82. Sector size (logical/physical): 512 bytes / 512 bytes
  83. I/O size (minimum/optimal): 512 bytes / 512 bytes
  84. Disk label type: dos
  85. Disk identifier: 0x000678ad
  86.  
  87. Device Boot Start End Blocks Id System
  88. /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
  89. root@partedmagic:~# fdisk -l | grep '^Disk'
  90. Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
  91. Disk label type: dos
  92. Disk identifier: 0x56ed0d2d
  93. Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
  94. Disk label type: dos
  95. Disk identifier: 0x000678ad
  96. root@partedmagic:~# fdisk /dev/sda
  97. Welcome to fdisk (util-linux 2.23.2).
  98.  
  99. Changes will remain in memory only, until you decide to write them.
  100. Be careful before using the write command.
  101.  
  102.  
  103. Command (m for help): m
  104. Command action
  105. a toggle a bootable flag
  106. b edit bsd disklabel
  107. c toggle the dos compatibility flag
  108. d delete a partition
  109. g create a new empty GPT partition table
  110. G create an IRIX (SGI) partition table
  111. l list known partition types
  112. m print this menu
  113. n add a new partition
  114. o create a new empty DOS partition table
  115. p print the partition table
  116. q quit without saving changes
  117. s create a new empty Sun disklabel
  118. t change a partition's system id
  119. u change display/entry units
  120. v verify the partition table
  121. w write table to disk and exit
  122. x extra functionality (experts only)
  123.  
  124. Command (m for help): d
  125. Partition number (1,2, default 2): 1
  126. Partition 1 is deleted
  127.  
  128. Command (m for help): d
  129. Selected partition 2
  130. Partition 2 is deleted
  131.  
  132. Command (m for help): g
  133. Building a new GPT disklabel (GUID: 721DB2E9-AF1C-455D-BA6B-658464263959)
  134.  
  135.  
  136. Command (m for help): n
  137. Partition number (1-128, default 1): 1
  138. First sector (2048-125045390, default 2048): 2048
  139. Last sector, +sectors or +size{K,M,G,T,P} (2048-125045390, default 125045390): 200000
  140. Created partition 1
  141.  
  142.  
  143. Command (m for help): w
  144. The partition table has been altered!
  145.  
  146. Calling ioctl() to re-read partition table.
  147. Syncing disks.
  148. root@partedmagic:~# fdisk -l
  149.  
  150. Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
  151. Units = sectors of 1 * 512 = 512 bytes
  152. Sector size (logical/physical): 512 bytes / 512 bytes
  153. I/O size (minimum/optimal): 512 bytes / 512 bytes
  154. Disk label type: dos
  155. Disk identifier: 0x56ed0d2d
  156.  
  157. Device Boot Start End Blocks Id System
  158. /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
  159. /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
  160.  
  161. Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
  162. Units = sectors of 1 * 512 = 512 bytes
  163. Sector size (logical/physical): 512 bytes / 512 bytes
  164. I/O size (minimum/optimal): 512 bytes / 512 bytes
  165. Disk label type: dos
  166. Disk identifier: 0x000678ad
  167.  
  168. Device Boot Start End Blocks Id System
  169. /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement