grahamperrin

Related: FreeBSD bug 211715

Sep 4th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. # date ; uptime ; freebsd-version ; uname -a
  2. Sun Sep 4 11:01:04 UTC 2016
  3. 11:01AM up 27 mins, 0 users, load averages: 0.39, 0.76, 0.71
  4. 10.3-RELEASE
  5. FreeBSD ghostbsd 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
  6. # gpart show /dev/ada0
  7. => 34 976773101 ada0 GPT (466G)
  8. 34 6 - free - (3.0K)
  9. 40 204800 1 efi (100M)
  10. 204840 968544256 2 freebsd-zfs (462G)
  11. 968749096 8019968 3 freebsd-swap (3.8G)
  12. 976769064 4071 - free - (2.0M)
  13.  
  14. # gdisk /dev/ada0
  15. GPT fdisk (gdisk) version 0.8.10
  16.  
  17. Partition table scan:
  18. MBR: protective
  19. BSD: not present
  20. APM: not present
  21. GPT: present
  22.  
  23. Found valid GPT with protective MBR; using GPT.
  24.  
  25. Command (? for help): p
  26. Disk /dev/ada0: 976773168 sectors, 465.8 GiB
  27. Logical sector size: 512 bytes
  28. Disk identifier (GUID): FFC904D6-728C-11E6-882A-68B599FCDB6A
  29. Partition table holds up to 128 entries
  30. First usable sector is 34, last usable sector is 976773134
  31. Partitions will be aligned on 8-sector boundaries
  32. Total free space is 4077 sectors (2.0 MiB)
  33.  
  34. Number Start (sector) End (sector) Size Code Name
  35. 1 40 204839 100.0 MiB EF00
  36. 2 204840 968749095 461.8 GiB A504
  37. 3 968749096 976769063 3.8 GiB A502
  38.  
  39. Command (? for help): v
  40.  
  41. No problems found. 4077 free sectors (2.0 MiB) available in 2
  42. segments, the largest of which is 4071 (2.0 MiB) in size.
  43.  
  44. Command (? for help): q
  45. # whoami ; pwd
  46. root
  47. /home/ghostbsd
  48. # cd Desktop/
  49. # gpart backup /dev/ada0 > ada0.backup
  50. # gpart destroy -F /dev/ada0
  51. gpart: Device busy
  52. # zpool status
  53. pool: tank
  54. state: ONLINE
  55. scan: none requested
  56. config:
  57.  
  58. NAME STATE READ WRITE CKSUM
  59. tank ONLINE 0 0 0
  60. ada0p2 ONLINE 0 0 0
  61.  
  62. errors: No known data errors
  63. # zpool export tank
  64. ge# geli status
  65. # gpart destroy -F /dev/ada0
  66. ada0 destroyed
  67. # gpart restore /dev/ada0 < ada0.backup
  68. # gpart show
  69. => 64 3788059 da0 GPT (14G) [CORRUPT]
  70. 64 1476 1 ms-basic-data (738K)
  71. 1540 5760 2 efi (2.8M)
  72. 7300 3780220 3 apple-hfs (1.8G)
  73. 3787520 600 4 ms-basic-data (300K)
  74. 3788120 3 - free - (1.5K)
  75.  
  76. => 63 5697 da0p2 MBR (2.8M)
  77. 63 5697 - free - (2.8M)
  78.  
  79. => 64 3788059 iso9660/GhostBSD GPT (14G) [CORRUPT]
  80. 64 1476 1 ms-basic-data (738K)
  81. 1540 5760 2 efi (2.8M)
  82. 7300 3780220 3 apple-hfs (1.8G)
  83. 3787520 600 4 ms-basic-data (300K)
  84. 3788120 3 - free - (1.5K)
  85.  
  86. => 63 5697 gpt/EFI%20boot%20partition MBR (2.8M)
  87. 63 5697 - free - (2.8M)
  88.  
  89. => 63 5697 iso9660/GhostBSDp2 MBR (2.8M)
  90. 63 5697 - free - (2.8M)
  91.  
  92. => 34 976773101 ada0 GPT (466G)
  93. 34 6 - free - (3.0K)
  94. 40 204800 1 efi (100M)
  95. 204840 968544256 2 freebsd-zfs (462G)
  96. 968749096 8019968 3 freebsd-swap (3.8G)
  97. 976769064 4071 - free - (2.0M)
  98.  
  99. # shutdown -h now
Add Comment
Please, Sign In to add comment