fdisk question
Herbert J. Skuhra
herbert at oslo.ath.cx
Sat Jun 20 19:40:50 UTC 2015
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
More information about the freebsd-questions
mailing list