This tutorial by user ggadmin shows us how to resize/slice an existing root partition, without reinstalling FreeBSD, on Amazon EC2.
@A: Daniel Morante
There comes a time when your FreeBSD root partition is just too small to be of any use. You’ve already moved /var, /usr, and /tmp to separate disks and there just isn’t anything else you can delete. The problem being that you initially created the partition to be too small when FreeBSD was first setup.
There are some guides out there that suggest to backup and start over. Others will tell you to use a dump and restore method. All that is too complicated and too much work for us lazy system administrators. Fortunately with recent versions of FreeBSD (9.0 and above) there is a handy little tool called “gpart”.
- FreeBSD 9.0 or later (if you have a lesser version, you might be able to get away with using a 9.x live CD)
- FreeBSD 9.x or later boot-only media. (ISO or flash image)
- Extra or unused space on the drive where the root partition is stored.
- A backup of your most precious files stored on this system
- This guide assumes you are using a single non-RAID IDE/SATA or SCSI disk. Device names may be different and extra drivers may need to be loaded for other types of disks.