Advertisement
grahamperrin

VirtualBox unable to write to a virtual hard disk

Jan 16th, 2021
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.82 KB | None
  1. Contexts:
  2.  
  3. <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252734>
  4. <https://old.reddit.com/r/freebsd/comments/kwn5tv/i_need_help_installing_freebsd_with_the_kde/gjfm5wi/?context=4>
  5.  
  6. ----
  7.  
  8. root@mowa219-gjp4-vm-freebsd-current:~ # lsblk
  9. DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
  10. ada0 0:89 2.0T GPT - -
  11. ada0p1 0:91 200M efi gpt/efiboot0 -
  12. <FREE> -:- 1.0M - - -
  13. ada0p2 0:92 16G freebsd-swap gpt/swap0 SWAP
  14. ada0p3 0:93 2.0T freebsd-zfs gpt/zfs0 <ZFS>
  15. <FREE> -:- 1.0M - - -
  16. ada1 0:90 2.0T GPT - -
  17. ada1p1 0:110 56K freebsd-boot gpt/bootfs -
  18. ada1p2 0:94 800K efi - -
  19. ada1p3 0:95 1.0G freebsd-swap gpt/swapfs -
  20. ada1p4 0:96 4.0G freebsd-ufs ufs/rootfs -
  21. <FREE> -:- 2.0T - - -
  22. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show
  23. => 40 4294965168 ada0 GPT (2.0T)
  24. 40 409600 1 efi (200M)
  25. 409640 2008 - free - (1.0M)
  26. 411648 33554432 2 freebsd-swap (16G)
  27. 33966080 4260997120 3 freebsd-zfs (2.0T)
  28. 4294963200 2008 - free - (1.0M)
  29.  
  30. => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
  31. 3 111 1 freebsd-boot (56K)
  32. 114 1600 2 efi (800K)
  33. 1714 2097152 3 freebsd-swap (1.0G)
  34. 2098866 8389372 4 freebsd-ufs (4.0G)
  35. 10488238 4284477002 - free - (2.0T)
  36.  
  37. root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
  38. gpart: Input/output error
  39. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
  40. => 3 4294965237 ada1 GPT (2.0T)
  41. 3 111 1 freebsd-boot (56K)
  42. 114 1600 2 efi (800K)
  43. 1714 2097152 3 freebsd-swap (1.0G)
  44. 2098866 8389372 4 freebsd-ufs (4.0G)
  45. 10488238 4284477002 - free - (2.0T)
  46.  
  47. root@mowa219-gjp4-vm-freebsd-current:~ # gdisk /dev/ada1
  48. GPT fdisk (gdisk) version 1.0.5
  49.  
  50. Caution: invalid backup GPT header, but valid main header; regenerating
  51. backup header from main header.
  52.  
  53. Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
  54. on the recovery & transformation menu to examine the two tables.
  55.  
  56. Warning! One or more CRCs don't match. You should repair the disk!
  57. Main header: OK
  58. Backup header: ERROR
  59. Main partition table: OK
  60. Backup partition table: ERROR
  61.  
  62. Partition table scan:
  63. MBR: protective
  64. BSD: not present
  65. APM: not present
  66. GPT: damaged
  67.  
  68. ****************************************************************************
  69. Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
  70. verification and recovery are STRONGLY recommended.
  71. ****************************************************************************
  72.  
  73. Command (? for help): x
  74.  
  75. Expert command (? for help): r
  76.  
  77. Recovery/transformation command (? for help): ?
  78. b use backup GPT header (rebuilding main)
  79. c load backup partition table from disk (rebuilding main)
  80. d use main GPT header (rebuilding backup)
  81. e load main partition table from disk (rebuilding backup)
  82. f load MBR and build fresh GPT from it
  83. g convert GPT into MBR and exit
  84. h make hybrid MBR
  85. i show detailed information on a partition
  86. l load partition data from a backup file
  87. m return to main menu
  88. o print protective MBR data
  89. p print the partition table
  90. q quit without saving changes
  91. t transform BSD disklabel partition
  92. v verify disk
  93. w write table to disk and exit
  94. x extra functionality (experts only)
  95. ? print this menu
  96.  
  97. Recovery/transformation command (? for help): e
  98. Warning! This will probably do weird things if you've converted an MBR to
  99. GPT form and haven't yet saved the GPT! Proceed? (Y/N): n
  100.  
  101. Recovery/transformation command (? for help): d
  102.  
  103. Recovery/transformation command (? for help): e
  104. Warning! This will probably do weird things if you've converted an MBR to
  105. GPT form and haven't yet saved the GPT! Proceed? (Y/N): y
  106.  
  107. Recovery/transformation command (? for help): w
  108.  
  109. Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
  110. PARTITIONS!!
  111.  
  112. Do you want to proceed? (Y/N): y
  113. OK; writing new GUID partition table (GPT) to /dev/ada1.
  114. Unable to save backup partition table! Perhaps the 'e' option on the experts'
  115. menu will resolve this problem.
  116. Warning! An error was reported when writing the partition table! This error
  117. MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
  118.  
  119. Recovery/transformation command (? for help): p
  120. Disk /dev/ada1: 4294965248 sectors, 2.0 TiB
  121. Sector size (logical): 512 bytes
  122. Disk identifier (GUID): FBB147F9-14F6-11EB-9C6B-0CC47AD8B808
  123. Partition table holds up to 4 entries
  124. Main partition table begins at sector 2 and ends at sector 2
  125. First usable sector is 3, last usable sector is 4294965239
  126. Partitions will be aligned on 8-sector boundaries
  127. Total free space is 4284477002 sectors (2.0 TiB)
  128.  
  129. Number Start (sector) End (sector) Size Code Name
  130. 1 3 113 55.5 KiB A501 bootfs
  131. 2 114 1713 800.0 KiB EF00
  132. 3 1714 2098865 1024.0 MiB A502 swapfs
  133. 4 2098866 10488237 4.0 GiB A503 rootfs
  134.  
  135. Recovery/transformation command (? for help): q
  136. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
  137. => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
  138. 3 111 1 freebsd-boot (56K)
  139. 114 1600 2 efi (800K)
  140. 1714 2097152 3 freebsd-swap (1.0G)
  141. 2098866 8389372 4 freebsd-ufs (4.0G)
  142. 10488238 4284477002 - free - (2.0T)
  143.  
  144. root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
  145. gpart: Input/output error
  146. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
  147. => 3 4294965237 ada1 GPT (2.0T)
  148. 3 111 1 freebsd-boot (56K)
  149. 114 1600 2 efi (800K)
  150. 1714 2097152 3 freebsd-swap (1.0G)
  151. 2098866 8389372 4 freebsd-ufs (4.0G)
  152. 10488238 4284477002 - free - (2.0T)
  153.  
  154. root@mowa219-gjp4-vm-freebsd-current:~ # gdisk /dev/ada1
  155. GPT fdisk (gdisk) version 1.0.5
  156.  
  157. Caution: invalid backup GPT header, but valid main header; regenerating
  158. backup header from main header.
  159.  
  160. Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
  161. on the recovery & transformation menu to examine the two tables.
  162.  
  163. Warning! One or more CRCs don't match. You should repair the disk!
  164. Main header: OK
  165. Backup header: ERROR
  166. Main partition table: OK
  167. Backup partition table: ERROR
  168.  
  169. Partition table scan:
  170. MBR: protective
  171. BSD: not present
  172. APM: not present
  173. GPT: damaged
  174.  
  175. ****************************************************************************
  176. Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
  177. verification and recovery are STRONGLY recommended.
  178. ****************************************************************************
  179.  
  180. Command (? for help): x
  181.  
  182. Expert command (? for help): r
  183.  
  184. Recovery/transformation command (? for help): d
  185.  
  186. Recovery/transformation command (? for help): e
  187. Warning! This will probably do weird things if you've converted an MBR to
  188. GPT form and haven't yet saved the GPT! Proceed? (Y/N): y
  189.  
  190. Recovery/transformation command (? for help): w
  191.  
  192. Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
  193. PARTITIONS!!
  194.  
  195. Do you want to proceed? (Y/N): y
  196. OK; writing new GUID partition table (GPT) to /dev/ada1.
  197. Unable to save backup partition table! Perhaps the 'e' option on the experts'
  198. menu will resolve this problem.
  199. Warning! An error was reported when writing the partition table! This error
  200. MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
  201.  
  202. Recovery/transformation command (? for help): p
  203. Disk /dev/ada1: 4294965248 sectors, 2.0 TiB
  204. Sector size (logical): 512 bytes
  205. Disk identifier (GUID): FBB147F9-14F6-11EB-9C6B-0CC47AD8B808
  206. Partition table holds up to 4 entries
  207. Main partition table begins at sector 2 and ends at sector 2
  208. First usable sector is 3, last usable sector is 4294965239
  209. Partitions will be aligned on 8-sector boundaries
  210. Total free space is 4284477002 sectors (2.0 TiB)
  211.  
  212. Number Start (sector) End (sector) Size Code Name
  213. 1 3 113 55.5 KiB A501 bootfs
  214. 2 114 1713 800.0 KiB EF00
  215. 3 1714 2098865 1024.0 MiB A502 swapfs
  216. 4 2098866 10488237 4.0 GiB A503 rootfs
  217.  
  218. Recovery/transformation command (? for help): q
  219. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
  220. => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
  221. 3 111 1 freebsd-boot (56K)
  222. 114 1600 2 efi (800K)
  223. 1714 2097152 3 freebsd-swap (1.0G)
  224. 2098866 8389372 4 freebsd-ufs (4.0G)
  225. 10488238 4284477002 - free - (2.0T)
  226.  
  227. root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
  228. gpart: Input/output error
  229. root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
  230. => 3 4294965237 ada1 GPT (2.0T)
  231. 3 111 1 freebsd-boot (56K)
  232. 114 1600 2 efi (800K)
  233. 1714 2097152 3 freebsd-swap (1.0G)
  234. 2098866 8389372 4 freebsd-ufs (4.0G)
  235. 10488238 4284477002 - free - (2.0T)
  236.  
  237. root@mowa219-gjp4-vm-freebsd-current:~ #
  238.  
Advertisement
RAW Paste Data Copied
Advertisement