Advertisement
kendallroth

Ubuntu Disk Checks

Mar 24th, 2018
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.66 KB | None | 0 0
  1. ubuntu@ubuntu:~$ parted --help
  2. Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...]
  3. Apply COMMANDs with PARAMETERS to DEVICE.  If no COMMAND(s) are given, run in
  4. interactive mode.
  5.  
  6. OPTIONs:
  7.   -h, --help                      displays this help message
  8.   -l, --list                      lists partition layout on all block devices
  9.   -m, --machine                   displays machine parseable output
  10.   -s, --script                    never prompts for user intervention
  11.   -v, --version                   displays the version
  12.   -a, --align=[none|cyl|min|opt]  alignment for new partitions
  13.  
  14. COMMANDs:
  15.   align-check TYPE N                        check partition N for TYPE(min|opt)
  16.         alignment
  17.   help [COMMAND]                           print general help, or help on
  18.         COMMAND
  19.   mklabel,mktable LABEL-TYPE               create a new disklabel (partition
  20.         table)
  21.   mkpart PART-TYPE [FS-TYPE] START END     make a partition
  22.   name NUMBER NAME                         name partition NUMBER as NAME
  23.   print [devices|free|list,all|NUMBER]     display the partition table,
  24.         available devices, free space, all found partitions, or a particular
  25.         partition
  26.   quit                                     exit program
  27.   rescue START END                         rescue a lost partition near START
  28.         and END
  29.   resizepart NUMBER END                    resize partition NUMBER
  30.   rm NUMBER                                delete partition NUMBER
  31.   select DEVICE                            choose the device to edit
  32.   disk_set FLAG STATE                      change the FLAG on selected device
  33.   disk_toggle [FLAG]                       toggle the state of FLAG on selected
  34.         device
  35.   set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  36.   toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
  37.         NUMBER
  38.   unit UNIT                                set the default unit to UNIT
  39.   version                                  display the version number and
  40.         copyright information of GNU Parted
  41.  
  42. Report bugs to bug-parted@gnu.org
  43. ubuntu@ubuntu:~$
  44. ubuntu@ubuntu:~$ sudo parted -ls
  45. Model: ATA Samsung SSD 850 (scsi)
  46. Disk /dev/sda: 256GB
  47. Sector size (logical/physical): 512B/512B
  48. Partition Table: gpt
  49. Disk Flags:
  50.  
  51. Number  Start   End    Size    File system  Name                          Flags
  52.  1      1049kB  473MB  472MB   ntfs         Basic data partition          hidden, diag
  53.  2      473MB   578MB  105MB   fat32        EFI system partition          boot, esp
  54.  3      578MB   595MB  16.8MB               Microsoft reserved partition  msftres
  55.  4      595MB   256GB  255GB   ntfs         Basic data partition          msftdata
  56.  
  57.  
  58. Model: ATA CT250BX100SSD1 (scsi)
  59. Disk /dev/sdb: 250GB
  60. Sector size (logical/physical): 512B/512B
  61. Partition Table: msdos
  62. Disk Flags:
  63.  
  64. Number  Start   End     Size    Type      File system     Flags
  65.  1      1049kB  600MB   599MB   primary   fat32           boot
  66.  2      600MB   16.6GB  16.0GB  primary   linux-swap(v1)
  67.  3      16.6GB  250GB   233GB   extended
  68.  5      16.6GB  250GB   233GB   logical   ext4
  69.  
  70.  
  71. Model: ATA WDC WD10EZEX-00B (scsi)
  72. Disk /dev/sdc: 1000GB
  73. Sector size (logical/physical): 512B/4096B
  74. Partition Table: gpt
  75. Disk Flags:
  76.  
  77. Number  Start   End     Size   File system  Name                  Flags
  78.  1      1049kB  524GB   524GB  ntfs         Basic data partition  msftdata
  79.  2      524GB   1000GB  476GB  ext4
  80.  
  81.  
  82. Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
  83. Model: ASUS DRW-24F1ST c (scsi)
  84. Disk /dev/sr0: 1513MB
  85. Sector size (logical/physical): 2048B/2048B
  86. Partition Table: mac
  87. Disk Flags:
  88.  
  89. Number  Start   End     Size    File system  Name   Flags
  90.  1      2048B   6143B   4096B                Apple
  91.  2      1499MB  1501MB  2425kB               EFI
  92.  
  93.  
  94. ubuntu@ubuntu:~$
  95. ubuntu@ubuntu:~$
  96. ubuntu@ubuntu:~$
  97. ubuntu@ubuntu:~$ sudo lsblk -f
  98. NAME   FSTYPE   LABEL                    UUID                                 MOUNTPOINT
  99. sda                                                                          
  100. ├─sda1 ntfs     Recovery                 BAB4D580B4D54015                    
  101. ├─sda2 vfat                              C0D6-29DC                            
  102. ├─sda3                                                                        
  103. └─sda4 ntfs     Windows                  C804D78D04D77D3E                    
  104. sdb                                                                          
  105. ├─sdb1 vfat                              29B5-C284                            
  106. ├─sdb2 swap                              8c8ffb3f-e979-4d0b-806f-b24ad949946b [SWAP]
  107. ├─sdb3                                                                        
  108. └─sdb5 ext4                              8ea34311-c1e3-4e80-9f4c-368abc9e9ed3
  109. sdc                                                                          
  110. ├─sdc1 ntfs     Windows Hard Drive       A2B49BFFB49BD45F                    
  111. └─sdc2 ext4                              18e983be-738c-43d1-a944-f2165fa2d00e
  112. sr0    iso9660  Ubuntu 16.04.1 LTS amd64 2016-07-19-21-27-51-00               /cdrom
  113. loop0  squashfs                                                               /rofs
  114. ubuntu@ubuntu:~$
  115. ubuntu@ubuntu:~$
  116. ubuntu@ubuntu:~$
  117. ubuntu@ubuntu:~$ sudo lsblk -m
  118. NAME     SIZE OWNER GROUP MODE
  119. sda    238.5G root  disk  brw-rw----
  120. ├─sda1   450M root  disk  brw-rw----
  121. ├─sda2   100M root  disk  brw-rw----
  122. ├─sda3    16M root  disk  brw-rw----
  123. └─sda4 237.9G root  disk  brw-rw----
  124. sdb    232.9G root  disk  brw-rw----
  125. ├─sdb1   571M root  disk  brw-rw----
  126. ├─sdb2  14.9G root  disk  brw-rw----
  127. ├─sdb3     1K root  disk  brw-rw----
  128. └─sdb5 217.4G root  disk  brw-rw----
  129. sdc    931.5G root  disk  brw-rw----
  130. ├─sdc1 488.3G root  disk  brw-rw----
  131. └─sdc2 443.2G root  disk  brw-rw----
  132. sr0      1.4G root  cdrom brw-rw----
  133. loop0    1.4G root  disk  brw-rw----
  134. ubuntu@ubuntu:~$
  135. ubuntu@ubuntu:~$
  136. ubuntu@ubuntu:~$
  137. ubuntu@ubuntu:~$ df
  138. Filesystem     1K-blocks    Used Available Use% Mounted on
  139. udev             8132648       0   8132648   0% /dev
  140. tmpfs            1629456    9800   1619656   1% /run
  141. /dev/sr0         1477840 1477840         0 100% /cdrom
  142. /dev/loop0       1425792 1425792         0 100% /rofs
  143. /cow             8147276   47896   8099380   1% /
  144. tmpfs            8147276     340   8146936   1% /dev/shm
  145. tmpfs               5120       8      5112   1% /run/lock
  146. tmpfs            8147276       0   8147276   0% /sys/fs/cgroup
  147. tmpfs            8147276     132   8147144   1% /tmp
  148. tmpfs            1629456      56   1629400   1% /run/user/999
  149. ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement