Adding new disk partitions to a Linux system

The default Ubuntu installation process places all of the files in a single disk partition. However, it may be desirable to use multiple partitions. In particular you might want to have /home in its own partition and have yet another partition for the swap area. This way you could install another Linux distribution and have it share the swap area and /home, so you can save swap space and share your data files between the distributions. I have done this successfully on another system. In that case I created the multiple partitions when installing the distributions. For the Ubuntu installer it is the “something else” option when you choose how you are going to use your disk. It is fussier than following the defaults, but easier than the Slackware disk partitioning I used to do.

What if you followed the default Ubuntu install process and want to create additional partitions after the fact? That is what I wanted to do before I ended up Rebuilding a Linux System.

This is possbile, see, for example, How to Move Your Linux home Directory to Another Drive and How to Move Your Home Folder to Another Partition. The SwapFaq documents the process for the swap partition.

I have followed these instructions and achived the desired results. The process involves manually editing the file /etc/fstab. In particular you have to manually copy and paste the UUIDs for the new partitions into that file. Copying the UUID for your new partitions from gparted works well. Make sure you have good current backups. A mistake in /etc/fstab could make your files inaccessible.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.