Advertisement
Guest User

Ubuntu disk commands

a guest
Mar 4th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. root@ubuntu:/# sudo fdisk -l
  2. Disk /dev/loop0: 1.9 GiB, 2029981696 bytes, 3964808 sectors
  3. Units: sectors of 1 * 512 = 512 bytes
  4. Sector size (logical/physical): 512 bytes / 512 bytes
  5. I/O size (minimum/optimal): 512 bytes / 512 bytes
  6.  
  7.  
  8. Disk /dev/loop1: 89.1 MiB, 93417472 bytes, 182456 sectors
  9. Units: sectors of 1 * 512 = 512 bytes
  10. Sector size (logical/physical): 512 bytes / 512 bytes
  11. I/O size (minimum/optimal): 512 bytes / 512 bytes
  12.  
  13.  
  14. Disk /dev/loop2: 54.7 MiB, 57294848 bytes, 111904 sectors
  15. Units: sectors of 1 * 512 = 512 bytes
  16. Sector size (logical/physical): 512 bytes / 512 bytes
  17. I/O size (minimum/optimal): 512 bytes / 512 bytes
  18.  
  19.  
  20. Disk /dev/loop3: 44.9 MiB, 47063040 bytes, 91920 sectors
  21. Units: sectors of 1 * 512 = 512 bytes
  22. Sector size (logical/physical): 512 bytes / 512 bytes
  23. I/O size (minimum/optimal): 512 bytes / 512 bytes
  24.  
  25.  
  26. Disk /dev/loop4: 160.2 MiB, 167931904 bytes, 327992 sectors
  27. Units: sectors of 1 * 512 = 512 bytes
  28. Sector size (logical/physical): 512 bytes / 512 bytes
  29. I/O size (minimum/optimal): 512 bytes / 512 bytes
  30.  
  31.  
  32. Disk /dev/loop5: 4.2 MiB, 4403200 bytes, 8600 sectors
  33. Units: sectors of 1 * 512 = 512 bytes
  34. Sector size (logical/physical): 512 bytes / 512 bytes
  35. I/O size (minimum/optimal): 512 bytes / 512 bytes
  36.  
  37.  
  38. Disk /dev/loop6: 14.8 MiB, 15462400 bytes, 30200 sectors
  39. Units: sectors of 1 * 512 = 512 bytes
  40. Sector size (logical/physical): 512 bytes / 512 bytes
  41. I/O size (minimum/optimal): 512 bytes / 512 bytes
  42.  
  43.  
  44. Disk /dev/loop7: 956 KiB, 978944 bytes, 1912 sectors
  45. Units: sectors of 1 * 512 = 512 bytes
  46. Sector size (logical/physical): 512 bytes / 512 bytes
  47. I/O size (minimum/optimal): 512 bytes / 512 bytes
  48.  
  49.  
  50. Disk /dev/sda: 14.5 GiB, 15514730496 bytes, 30302208 sectors
  51. Units: sectors of 1 * 512 = 512 bytes
  52. Sector size (logical/physical): 512 bytes / 512 bytes
  53. I/O size (minimum/optimal): 512 bytes / 512 bytes
  54. Disklabel type: dos
  55. Disk identifier: 0x32c3ed74
  56.  
  57. Device Boot Start End Sectors Size Id Type
  58. /dev/sda1 * 2048 30302207 30300160 14.5G c W95 FAT32 (LBA)
  59.  
  60.  
  61. Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  62. Units: sectors of 1 * 512 = 512 bytes
  63. Sector size (logical/physical): 512 bytes / 4096 bytes
  64. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  65. Disklabel type: gpt
  66. Disk identifier: DAEB98B7-7A4A-4D60-9D9E-08C257218FA9
  67.  
  68. Device Start End Sectors Size Type
  69. /dev/sdb1 2048 616447 614400 300M Windows recovery environment
  70. /dev/sdb2 616448 821247 204800 100M EFI System
  71. /dev/sdb3 821248 1083391 262144 128M Microsoft reserved
  72. /dev/sdb4 1083392 976773119 975689728 465.3G Microsoft basic data
  73.  
  74.  
  75.  
  76.  
  77. Disk /dev/loop8: 3.7 MiB, 3825664 bytes, 7472 sectors
  78. Units: sectors of 1 * 512 = 512 bytes
  79. Sector size (logical/physical): 512 bytes / 512 bytes
  80. I/O size (minimum/optimal): 512 bytes / 512 bytes
  81.  
  82. root@ubuntu:/# sudo mount -t ntfs-3g -o rw /dev/sdb4 /media/win1
  83. The disk contains an unclean file system (0, 0).
  84. Metadata kept in Windows cache, refused to mount.
  85. Falling back to read-only mount because the NTFS partition is in an
  86. unsafe state. Please resume and shutdown Windows fully (no hibernation
  87. or fast restarting.)
  88. ntfs_attr_pread_i: ntfs_pread failed: Input/output error
  89. Failed to read NTFS $Bitmap: Input/output error
  90. NTFS is either inconsistent, or there is a hardware fault, or it's a
  91. SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
  92. then reboot into Windows twice. The usage of the /f parameter is very
  93. important! If the device is a SoftRAID/FakeRAID then first activate
  94. it and mount a different device under the /dev/mapper/ directory, (e.g.
  95. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
  96. for more details.
  97.  
  98. root@ubuntu:/# sudo ntfsfix /dev/sdb4
  99. Mounting volume... The disk contains an unclean file system (0, 0).
  100. Metadata kept in Windows cache, refused to mount.
  101. FAILED
  102. Attempting to correct errors...
  103. Processing $MFT and $MFTMirr...
  104. Reading $MFT... OK
  105. Reading $MFTMirr... OK
  106. Comparing $MFTMirr to $MFT... OK
  107. Processing of $MFT and $MFTMirr completed successfully.
  108. Setting required flags on partition... OK
  109. Going to empty the journal ($LogFile)... OK
  110. Checking the alternate boot sector... OK
  111. NTFS volume version is 3.1.
  112. NTFS partition /dev/sdb4 was processed successfully.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement