problem formating disk with gpart
Damien Fleuriot
ml at my.gd
Thu Dec 1 03:56:03 UTC 2011
On 12/1/11 4:51 AM, Robert Huff wrote:
>
> I'm not sure how, but I have achieved this:
>
>>> gpart show ad1
> => 34 976773101 ad1 GPT (465G)
> 34 976773101 1 freebsd-ufs (465G)
>
> ... which is correct, except for the size.
> I have a new problem:
>
>>> newfs /dev/ad1p1
> newfs: wtfs: 512 bytes at sector 976773100: Input/output error
>
You're trying to create a 460gb file system on a 80gb drive.
When newfs reaches the drive's boundary and attempts to write to the
next sector, it tries to divide by 0 and gets slapped back 9000 years in
time by Chuck Norris.
Try this:
gpart delete -i 1
gpart create -s 78g -i 1 -t freebsd-ufs /dev/ad1
Then try to newfs -U it.
More information about the freebsd-questions
mailing list