Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contexts:
- <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252734>
- <https://old.reddit.com/r/freebsd/comments/kwn5tv/i_need_help_installing_freebsd_with_the_kde/gjfm5wi/?context=4>
- ----
- root@mowa219-gjp4-vm-freebsd-current:~ # lsblk
- DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
- ada0 0:89 2.0T GPT - -
- ada0p1 0:91 200M efi gpt/efiboot0 -
- <FREE> -:- 1.0M - - -
- ada0p2 0:92 16G freebsd-swap gpt/swap0 SWAP
- ada0p3 0:93 2.0T freebsd-zfs gpt/zfs0 <ZFS>
- <FREE> -:- 1.0M - - -
- ada1 0:90 2.0T GPT - -
- ada1p1 0:110 56K freebsd-boot gpt/bootfs -
- ada1p2 0:94 800K efi - -
- ada1p3 0:95 1.0G freebsd-swap gpt/swapfs -
- ada1p4 0:96 4.0G freebsd-ufs ufs/rootfs -
- <FREE> -:- 2.0T - - -
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show
- => 40 4294965168 ada0 GPT (2.0T)
- 40 409600 1 efi (200M)
- 409640 2008 - free - (1.0M)
- 411648 33554432 2 freebsd-swap (16G)
- 33966080 4260997120 3 freebsd-zfs (2.0T)
- 4294963200 2008 - free - (1.0M)
- => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
- gpart: Input/output error
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
- => 3 4294965237 ada1 GPT (2.0T)
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ # gdisk /dev/ada1
- GPT fdisk (gdisk) version 1.0.5
- Caution: invalid backup GPT header, but valid main header; regenerating
- backup header from main header.
- Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
- on the recovery & transformation menu to examine the two tables.
- Warning! One or more CRCs don't match. You should repair the disk!
- Main header: OK
- Backup header: ERROR
- Main partition table: OK
- Backup partition table: ERROR
- Partition table scan:
- MBR: protective
- BSD: not present
- APM: not present
- GPT: damaged
- ****************************************************************************
- Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
- verification and recovery are STRONGLY recommended.
- ****************************************************************************
- Command (? for help): x
- Expert command (? for help): r
- Recovery/transformation command (? for help): ?
- b use backup GPT header (rebuilding main)
- c load backup partition table from disk (rebuilding main)
- d use main GPT header (rebuilding backup)
- e load main partition table from disk (rebuilding backup)
- f load MBR and build fresh GPT from it
- g convert GPT into MBR and exit
- h make hybrid MBR
- i show detailed information on a partition
- l load partition data from a backup file
- m return to main menu
- o print protective MBR data
- p print the partition table
- q quit without saving changes
- t transform BSD disklabel partition
- v verify disk
- w write table to disk and exit
- x extra functionality (experts only)
- ? print this menu
- Recovery/transformation command (? for help): e
- Warning! This will probably do weird things if you've converted an MBR to
- GPT form and haven't yet saved the GPT! Proceed? (Y/N): n
- Recovery/transformation command (? for help): d
- Recovery/transformation command (? for help): e
- Warning! This will probably do weird things if you've converted an MBR to
- GPT form and haven't yet saved the GPT! Proceed? (Y/N): y
- Recovery/transformation command (? for help): w
- Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
- PARTITIONS!!
- Do you want to proceed? (Y/N): y
- OK; writing new GUID partition table (GPT) to /dev/ada1.
- Unable to save backup partition table! Perhaps the 'e' option on the experts'
- menu will resolve this problem.
- Warning! An error was reported when writing the partition table! This error
- MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
- Recovery/transformation command (? for help): p
- Disk /dev/ada1: 4294965248 sectors, 2.0 TiB
- Sector size (logical): 512 bytes
- Disk identifier (GUID): FBB147F9-14F6-11EB-9C6B-0CC47AD8B808
- Partition table holds up to 4 entries
- Main partition table begins at sector 2 and ends at sector 2
- First usable sector is 3, last usable sector is 4294965239
- Partitions will be aligned on 8-sector boundaries
- Total free space is 4284477002 sectors (2.0 TiB)
- Number Start (sector) End (sector) Size Code Name
- 1 3 113 55.5 KiB A501 bootfs
- 2 114 1713 800.0 KiB EF00
- 3 1714 2098865 1024.0 MiB A502 swapfs
- 4 2098866 10488237 4.0 GiB A503 rootfs
- Recovery/transformation command (? for help): q
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
- => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
- gpart: Input/output error
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
- => 3 4294965237 ada1 GPT (2.0T)
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ # gdisk /dev/ada1
- GPT fdisk (gdisk) version 1.0.5
- Caution: invalid backup GPT header, but valid main header; regenerating
- backup header from main header.
- Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
- on the recovery & transformation menu to examine the two tables.
- Warning! One or more CRCs don't match. You should repair the disk!
- Main header: OK
- Backup header: ERROR
- Main partition table: OK
- Backup partition table: ERROR
- Partition table scan:
- MBR: protective
- BSD: not present
- APM: not present
- GPT: damaged
- ****************************************************************************
- Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
- verification and recovery are STRONGLY recommended.
- ****************************************************************************
- Command (? for help): x
- Expert command (? for help): r
- Recovery/transformation command (? for help): d
- Recovery/transformation command (? for help): e
- Warning! This will probably do weird things if you've converted an MBR to
- GPT form and haven't yet saved the GPT! Proceed? (Y/N): y
- Recovery/transformation command (? for help): w
- Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
- PARTITIONS!!
- Do you want to proceed? (Y/N): y
- OK; writing new GUID partition table (GPT) to /dev/ada1.
- Unable to save backup partition table! Perhaps the 'e' option on the experts'
- menu will resolve this problem.
- Warning! An error was reported when writing the partition table! This error
- MIGHT be harmless, or the disk might be damaged! Checking it is advisable.
- Recovery/transformation command (? for help): p
- Disk /dev/ada1: 4294965248 sectors, 2.0 TiB
- Sector size (logical): 512 bytes
- Disk identifier (GUID): FBB147F9-14F6-11EB-9C6B-0CC47AD8B808
- Partition table holds up to 4 entries
- Main partition table begins at sector 2 and ends at sector 2
- First usable sector is 3, last usable sector is 4294965239
- Partitions will be aligned on 8-sector boundaries
- Total free space is 4284477002 sectors (2.0 TiB)
- Number Start (sector) End (sector) Size Code Name
- 1 3 113 55.5 KiB A501 bootfs
- 2 114 1713 800.0 KiB EF00
- 3 1714 2098865 1024.0 MiB A502 swapfs
- 4 2098866 10488237 4.0 GiB A503 rootfs
- Recovery/transformation command (? for help): q
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
- => 3 4294965237 ada1 GPT (2.0T) [CORRUPT]
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart recover /dev/ada1
- gpart: Input/output error
- root@mowa219-gjp4-vm-freebsd-current:~ # gpart show /dev/ada1
- => 3 4294965237 ada1 GPT (2.0T)
- 3 111 1 freebsd-boot (56K)
- 114 1600 2 efi (800K)
- 1714 2097152 3 freebsd-swap (1.0G)
- 2098866 8389372 4 freebsd-ufs (4.0G)
- 10488238 4284477002 - free - (2.0T)
- root@mowa219-gjp4-vm-freebsd-current:~ #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement