Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. echo 1 > /sys/block/sda/device/rescan
  2. fdisk /dev/sda
  3. Command (m for help): d
  4. Partition number (1,2, default 2): 2
  5. Command (m for help): n
  6. Select (default p): p
  7.  
  8. root@proj:~# parted
  9. GNU Parted 3.2
  10. Using /dev/sda
  11. Welcome to GNU Parted! Type 'help' to view a list of commands.
  12. (parted) p
  13. Model: Msft Virtual Disk (scsi)
  14. Disk /dev/sda: 85,9GB
  15. Sector size (logical/physical): 512B/4096B
  16. Partition Table: gpt
  17. Disk Flags:
  18.  
  19. Number Start End Size File system Name Flags
  20. 1 1049kB 2097kB 1049kB bios_grub
  21. 2 2097kB 85,9GB 85,9GB ext4
  22.  
  23. (parted)
  24.  
  25. root@proj:~# fdisk /dev/sda
  26.  
  27. Welcome to fdisk (util-linux 2.31.1).
  28. Changes will remain in memory only, until you decide to write them.
  29. Be careful before using the write command.
  30.  
  31.  
  32. Command (m for help): p
  33. Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors
  34. Units: sectors of 1 * 512 = 512 bytes
  35. Sector size (logical/physical): 512 bytes / 4096 bytes
  36. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  37. Disklabel type: gpt
  38. Disk identifier: 615AE39E-D8BF-41FC-823C-99CDF4CBAEDF
  39.  
  40. Device Start End Sectors Size Type
  41. /dev/sda1 2048 4095 2048 1M BIOS boot
  42. /dev/sda2 4096 167772126 167768031 80G Linux filesystem
  43.  
  44. Command (m for help):
  45.  
  46. Mounted As Type Free Total Device ID
  47. / ext4 41% (15.70 GB) 38.37 GB UUID=1f76306d-c5e9-45d8-ae14-923bb1114c16
  48.  
  49.  
  50. Local disk space 22.67 GB used / 15.70 GB free / 38.37 GB total
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement