Date: Sat, 20 Jun 2015 21:40:46 +0200 From: "Herbert J. Skuhra" <herbert@oslo.ath.cx> To: "William A. Mahaffey III" <wam@hiwaay.net> Cc: FreeBSD Questions !!!! <freebsd-questions@freebsd.org> Subject: Re: fdisk question Message-ID: <20150620194046.GB35588@oslo.ath.cx> In-Reply-To: <558581A9.7010309@hiwaay.net> References: <558581A9.7010309@hiwaay.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 20, 2015 at 10:13:36AM -0453, William A. Mahaffey III wrote:
>
>
> .... I just dd'ed the FreeBSD 9.3 RELEASE memstick image onto a 4 GB USB
> drive. When I mount it, it shows 101% full, w/ about 717 MB of stuff.
> The NetBSD folks often (for Raspberry Pi, for example) recommend &
> provide examples of how to mess with the partition table after dd'ing to
> restore 'full' USB drive capacity as noted by df w/o messing up any of
> the other data in the stick. Is this feasible under FreeBSD ? If so, has
> anyone tried/done it ? How did it go :-) ? Care to post your commands
> that worked :-) ? TIA & have a good one ....
You can use 'gpart resize' and growfs.
But why do you want to do this with the memstick image? It's for
installing FreeBSD, no?
# mdconfig -t vnode -a -f FreeBSD-11.0-CURRENT-amd64-20150618-r284544-memstick.img
md0
# gpart show md0
=> 3 1470064 md0 GPT (718M)
3 1600 1 efi (800K)
1603 32 2 freebsd-boot (16K)
1635 1466384 3 freebsd-ufs (716M)
1468019 2048 4 freebsd-swap (1.0M)
In this case you first have to remove the swap at the end.
--
Herbert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150620194046.GB35588>
