Advertisement
DoctorD90

parted

Aug 27th, 2021 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. root@debian:/home/user# parted /dev/nvme0n1
  2. Model: SAMSUNG MZVLB512HBJQ-000H1 (nvme)
  3. Disk /dev/nvme0n1: 512GB
  4. Sector size (logical/physical): 512B/512B
  5. Partition Table: msdos
  6. Disk Flags:
  7.  
  8. Number Start End Size Type File system Flags
  9. 2 756kB 3431kB 2676kB primary esp
  10.  
  11.  
  12.  
  13.  
  14. root@debian:/home/user# gdisk /dev/nvme0n1
  15. GPT fdisk (gdisk) version 1.0.6
  16.  
  17. Partition table scan:
  18. MBR: MBR only
  19. BSD: not present
  20. APM: not present
  21. GPT: present
  22.  
  23. Found valid MBR and GPT. Which do you want to use?
  24. 1 - MBR
  25. 2 - GPT
  26. 3 - Create blank GPT
  27.  
  28. Your answer: 2
  29. Using GPT and creating fresh protective MBR.
  30. Warning! Main partition table overlaps the first partition by 64 blocks!
  31. You will need to delete this partition or resize it in another utility.
  32.  
  33. Command (? for help): p
  34. Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
  35. Model: SAMSUNG MZVLB512HBJQ-000H1
  36. Sector size (logical/physical): 512/512 bytes
  37. Disk identifier (GUID): F892941C-D5A7-4343-BCAE-28E0A52F74FF
  38. Partition table holds up to 248 entries
  39. Main partition table begins at sector 2 and ends at sector 63
  40. First usable sector is 64, last usable sector is 6187040
  41. Partitions will be aligned on 8-sector boundaries
  42. Total free space is 1 sectors (512 bytes)
  43.  
  44. Number Start (sector) End (sector) Size Code Name
  45. 2 1476 6699 2.6 MiB 0700 ISOHybrid1
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. user@debian:~$ sudo gdisk /dev/nvme0n1
  55. GPT fdisk (gdisk) version 1.0.6
  56.  
  57. Partition table scan:
  58. MBR: MBR only
  59. BSD: not present
  60. APM: not present
  61. GPT: present
  62.  
  63. Found valid MBR and GPT. Which do you want to use?
  64. 1 - MBR
  65. 2 - GPT
  66. 3 - Create blank GPT
  67.  
  68. Your answer: 1
  69.  
  70. Command (? for help): p
  71. Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
  72. Model: SAMSUNG MZVLB512HBJQ-000H1
  73. Sector size (logical/physical): 512/512 bytes
  74. Disk identifier (GUID): 201E722A-6C00-4879-81B6-A468A663FD26
  75. Partition table holds up to 128 entries
  76. Main partition table begins at sector 2 and ends at sector 33
  77. First usable sector is 34, last usable sector is 1000215182
  78. Partitions will be aligned on 8-sector boundaries
  79. Total free space is 1000209923 sectors (476.9 GiB)
  80.  
  81. Number Start (sector) End (sector) Size Code Name
  82. 2 1476 6701 2.6 MiB EF00 EFI system partition
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. user@debian:~$ lsblk
  91. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  92. loop0 7:0 0 2.6G 1 loop /usr/lib/live/mount/rootfs/filesystem.squashfs
  93. sda 8:0 1 3.7G 0 disk
  94. ├─sda1 8:1 1 3G 0 part /usr/lib/live/mount/medium
  95. └─sda2 8:2 1 2.6M 0 part
  96. nvme0n1 259:0 0 476.9G 0 disk
  97. ├─nvme0n1p1 259:3 0 3G 0 part
  98. └─nvme0n1p2 259:4 0 2.6M 0 part
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. user@debian:~$ sudo nvme list
  106. Node SN Model Namespace Usage Format FW Rev
  107. ---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
  108. /dev/nvme0n1 S4GLNF1MB58380 SAMSUNG MZVLB512HBJQ-000H1 1 38.57 GB / 512.11 GB 512 B + 0 B HPS0NEXF
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. root@debian:/home/user# fdisk /dev/nvme0n1
  117.  
  118. Welcome to fdisk (util-linux 2.36.1).
  119. Changes will remain in memory only, until you decide to write them.
  120. Be careful before using the write command.
  121.  
  122. The device contains 'iso9660' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
  123.  
  124. Command (m for help): p
  125.  
  126. Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
  127. Disk model: SAMSUNG MZVLB512HBJQ-000H1
  128. Units: sectors of 1 * 512 = 512 bytes
  129. Sector size (logical/physical): 512 bytes / 512 bytes
  130. I/O size (minimum/optimal): 512 bytes / 512 bytes
  131. Disklabel type: dos
  132. Disk identifier: 0x792fab23
  133.  
  134. Device Boot Start End Sectors Size Id Type
  135. /dev/nvme0n1p1 * 0 6187103 6187104 3G 0 Empty
  136. /dev/nvme0n1p2 1476 6701 5226 2.6M ef EFI (FAT-12/16/32)
  137.  
  138. Command (m for help):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement