Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2011 04:55:59 +0100
From:      Damien Fleuriot <ml@my.gd>
To:        freebsd-questions@freebsd.org
Subject:   Re: problem formating disk with gpart
Message-ID:  <4ED6FACF.1070908@my.gd>
In-Reply-To: <20182.63924.526118.602623@jerusalem.litteratus.org>
References:  <20182.39340.354254.608836@jerusalem.litteratus.org> <alpine.BSF.2.00.1111301706310.3692@wonkity.com> <20182.63924.526118.602623@jerusalem.litteratus.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help


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.




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4ED6FACF.1070908>