Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently built a NAS4Free (formerly FreeNAS) machine using a 256MB (yes, MB) USB drive for the OS. When I did the original install, I had the bright idea of making the OS partition just big enough for the OS and a then creating a second partition using the remainder of the drive to store stuff pertaining to the OS. I never really found a use for the data partition and I ended up running out of space on the OS partition, so now I'd like to combine the partitions into a single partition.

Is this something that is possible to do while everything is up and running? If it comes down to it, I can take down the machine and do a fresh install of the OS using the entire space of the USB drive, but I'd like to use this as an opportunity to better familiarize myself with FreeBSD/UNIX type systems.

If this is possible, will it interfere with the NAS4Free things? The data partition shows up in the web interface under the disks section. If I end up manually changing the partitions, I'd be concerned with NAS4Free getting confused by the missing partition.

share|improve this question

migrated from Oct 22 '13 at 15:59

This question came from our site for system and network administrators.

up vote 0 down vote accepted

Before you do anything else make a backup!

Use gpart's delete command to remove the unused partition. Then use gpart's resize command to expand the partition containing your filesystem

If you used the UFS filesystem, you can then use growfs(8) to expand it. On FreeBSD versions <10.0, the filesystem must be unmounted before growing it. The easiest way to do that is by booting from a live-CD.

Read the manual pages carefully before proceeding.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .