Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. - lsblk
  2. ```
  3. koketani:2$ lsblk
  4. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  5. loop0 7:0 0 198.1M 1 loop /snap/atom/226
  6. ...
  7. loop24 7:24 0 17.5M 1 loop /snap/bw/11
  8. nvme0n1 259:0 0 477G 0 disk
  9. |-nvme0n1p1 259:1 0 512M 0 part /boot/efi
  10. |-nvme0n1p2 259:2 0 460.6G 0 part /
  11. `-nvme0n1p3 259:3 0 15.9G 0 part [SWAP]
  12. ```
  13. - mount
  14. - gdisk -l /dev/nvme0n1
  15. ```
  16. $ sudo gdisk -l /dev/nvme0n1
  17. GPT fdisk (gdisk) version 1.0.3
  18.  
  19. Partition table scan:
  20. MBR: protective
  21. BSD: not present
  22. APM: not present
  23. GPT: present
  24.  
  25. Found valid GPT with protective MBR; using GPT.
  26. Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
  27. Model: PC300 NVMe SK hynix 512GB
  28. Sector size (logical/physical): 512/512 bytes
  29. Disk identifier (GUID): xxx
  30. Partition table holds up to 128 entries
  31. Main partition table begins at sector 2 and ends at sector 33
  32. First usable sector is 34, last usable sector is 1000215182
  33. Partitions will be aligned on 2048-sector boundaries
  34. Total free space is 2669 sectors (1.3 MiB)
  35.  
  36. Number Start (sector) End (sector) Size Code Name
  37. 1 2048 1050623 512.0 MiB EF00 EFI System Partition
  38. 2 1050624 966924287 460.6 GiB 8300
  39. 3 966924288 1000214527 15.9 GiB 8200
  40. ```
  41.  
  42. - fdisk -l
  43. - findmnt
  44. ```
  45. koketani:2$ findmnt
  46. TARGET SOURCE FSTYPE OPTIONS
  47. / /dev/nvme0n1p2 ext4 rw,relatime,errors=remount-ro,data=ordered
  48. |-/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
  49. | |-/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
  50. | |-/sys/fs/cgroup tmpfs tmpfs ro,nosuid,nodev,noexec,mode=755
  51. | | |-/sys/fs/cgroup/unified cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate
  52. ...
  53. ```
  54.  
  55. - parted
  56. ```
  57. (parted) print all
  58. Model: PC300 NVMe SK hynix 512GB (nvme)
  59. Disk /dev/nvme0n1: 512GB
  60. Sector size (logical/physical): 512B/512B
  61. Partition Table: gpt
  62. Disk Flags:
  63.  
  64. Number Start End Size File system Name Flags
  65. 1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
  66. 2 538MB 495GB 495GB ext4
  67. 3 495GB 512GB 17.0GB linux-swap(v1)
  68. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement