Ubuntu – Can you install Ubuntu in a single partition

installationpartitioningUbuntu

I have a dual-boot Mac that currently has three partitions… OSX, Win7-64 and Data. I have shrunk the data partition to make some free space. I've then installed rEFIt as the new boot menu. My plan is to install Ubuntu 11.10 or 12.4 in the newly-freed 20 GB of space via a single partition, but every single install documentation I've seen says Linux needs three partitions… system, user and swap.

Now I know Ubuntu can be installed on a single partition because I'm using a VM with a single disk image and it runs fine. However someone else set that up and I don't know how.

Also, this is a very minor-use install (we just have two utilities that have to run on Linux) and this system has a SSD, so I'm not really worried about speed here. I just want a single partition instead of three.

So how can you set that up?

Best Answer

Yup. Install everything as a single partition - ubuntu dosen't do the /home / separation anyway, nor does anyone who isn't a crusty old school unix user and handle disk partitioning and mountpoints manually. DO NOT add a swap partition at this point.

You can use a swap file instead - which should let you do everything in one partition, though hibernate/suspend won't work, and you can't use btrfs - more details on ubuntu's swap wiki page

OTOH, you could simply recompile and run the linux tools in OS X with a little work, or use a Virtual Machine of some flavour. Both options would be simpler

Related Question