Moving paritions around

John Levine johnl at
Fri Mar 30 03:17:13 UTC 2007

I set up my laptop to dual boot between W1nd at ws and FreeBSD.  When I
first set it up I made the partitions the same size, but since then I
found I do a lot more with FreeBSD so I'd rather give it more space.

So the last time I had to reinstall Windows from scratch, I made its
partition smaller.  Now there's a big chunk of free space between
the two partitions.  Should I expect the following to work?

(back everything up, duh)

Boot from a CD, change the partition table to make the FreeBSD partition
start right after the Windows partition

Use dd to move down the existing FreeBSD partition data so it starts
at the beginning of the new partition

Use growfs to give the extra space to my /usr filesystem, which is at
the end of the existing partition

Or should I just back it all up to a USB disk, reformat, and restore it,
which will take considerably longer?


More information about the freebsd-questions mailing list