Solved Corrupt ada0 error on install

Good morning,

I am currently attempting to do a fresh install of FreeBSD 10. Just using the defaults, using the Guided method for the partitioning of the hard drive. When I press enter to accept the default partitioning scheme, the system generates an error of:

Code:
Operation Not Permitted. Table 'ada0' is corrupt

Any ideas on how to remedy this error so I can continue with the install?

Thank you
Kell
 
Everything on the drive will be erased, so make backups if necessary.

After booting with the FreeBSD install, choose Shell.

Enter gpart destroy -F ada0. A "GEOM does not exist" error might be shown. It can be ignored.

If it complains about ada0 being corrupt again, enter
Code:
sysctl kern.geom.part.check_integrity=0
gpart destroy -F ada0
Finally, enter
Code:
gpart create -s gpt ada0
gpart destroy -F ada0
Enter exit to return to the installer.

Explanation: drives that have been used before still have partition information on them. The MBR partition table is at the beginning of the disk. GPT partition tables are at both the end and the beginning of the disk. If an MBR is written to a disk that still had GPT partition tables on it, the backup GPT table at the end of the disk is still present and can cause an error. This procedure first destroys any partition table on the disk, then creates GPT tables and removes them. At the end, the disk is unpartitioned regardless of which format was used.
 
Back
Top