What are the recommended partition sizes for Ubuntu?
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Rep:
What are the recommended partition sizes for Ubuntu?
Additionally, what are the recommended partition divisons? The drive is 250 GB total, which I plan to split 50/50 with Vista. Vista is already installed and will thus have 125 GB leaving Ubuntu 125GB once loaded. So with this much space, what partitions should the Ubuntu half be divided into and what percentage of available space should be given to these partitions? For windows I usually just do C:\ at 25 GB and D:\ the rest. But Linux is often divided into more partitions. What is the current best practice?
The most common layout for any Linux system is doing three partitions. One for the root filesystem (/), one for your personal files and settings (/home), and one for swap.
The sizes of those partitions are basically up to you. With a total of 125 GB, I might go with 20 GB for your root partition and 104 - 104.5 GB for /home. The 1 GB or so you would have left would be used for swap space.
There is an old (read: ancient) adage that your swap space should be twice the amount of your physical RAM, but that was in the days of 8 MB RAM being standard. With 1 GB of RAM now being considered a minimum, it is very unlikely your system would ever swap out in the first place, let alone require 2+ GB of swap space. Better advice for swap/RAM space in the 21st century is that if you system is constantly using up swap, you need to buy more RAM.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Original Poster
Rep:
Thanks MS3FGX.
Does Ubuntu do this by default or is this something that is set up during the installation?
Also, is it possible to "change your mind" and repartition after the fact without destroying data? In Vista, this is done with the Disk Management snap-in which looks exactly like Partition Magic's old interface. Is there an equivalent in Linux?
Also, if you're planning to use suspend-to-disk, be advised that GNU/Linux uses the swap partition for that. So the swap partition should be as big as your RAM (or your planned future RAM expansions) -- though, IIRC, suspend-to-disk does compress the data before committing them to disk.
I believe that Ubuntu's default partitioning scheme is to do three partitions in the free space, but I am not 100% sure on that (I have never actually let Ubuntu automatically partition my disk). It will tell you what changes it is going to make before it does anything, so you will be able to review the partition setup it is going to use before it is committed to disk.
As for changing the partitions around later, you can use the excellent GParted to resize and move partitions at a later time. You can download a live CD that includes it so you can safely boot into a live environment and change the system partitions safely (relatively speaking).
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Original Poster
Rep:
I guess I should have mentioned the RAM size on the laptop: 3 GB
Since it is a laptop, it does have suspend and I believe hibernate as well so perhaps having the larger swap might be advisable.
Sounds like just going through the "non-default" Ubuntu set up would be worth my time. I think GParted looks like a reasonable solution as well. I suppose I would just need to be careful to leave the Vista partition alone when repartitioning the Linux area.
I believe that Ubuntu's default partitioning scheme is to do three partitions in the free space, but I am not 100% sure on that (I have never actually let Ubuntu automatically partition my disk). It will tell you what changes it is going to make before it does anything, so you will be able to review the partition setup it is going to use before it is committed to disk.
As for changing the partitions around later, you can use the excellent GParted to resize and move partitions at a later time. You can download a live CD that includes it so you can safely boot into a live environment and change the system partitions safely (relatively speaking).
I've done four or five (U)(Ku)(Xu)Buntu (plus two LinuxMINT, an Ubuntu derivative) installs in the past week. Left to its own devices, Ubuntu will use your entire drive and build it out as a single partition ("/"). That is the case with either Hardy or Intrepid, I can't speak for other earlier versions.
If you are building out a dual boot with Windows, run Chkdsk and Defrag before doing the install. Windows tends to be quite sloppy about where it puts your files, so I would advise running Defrag several times, even if it tells you that it is not needed. I did this with the XP Pro machine I built as a dual boot with Ubuntu 8.10, and each time Defrag ran, it looked a little better. I ran it 4 times, but you could probably get away with less, unless its been up and running for a while.
Also, this should go without saying, but BACK UP YOUR DATA!!! I cannot stress this enough.
As mentioned, GParted is an excellent utility, and you can download a bootable ISO from the link at Distrowatch. You can use this, resize Windows, create your Linux partitions (your root Linux partition MUST be a Primary), and then direct Ubuntu to use the partitions that you created. My preference for Linux partitions is ext3, but YMMV.
I've done four or five (U)(Ku)(Xu)Buntu (plus two LinuxMINT, an Ubuntu derivative) installs in the past week. Left to its own devices, Ubuntu will use your entire drive and build it out as a single partition ("/"). That is the case with either Hardy or Intrepid, I can't speak for other earlier versions.
That is how Ubuntu's "guided partitioning" will work. It will create a separate swap also, which will be about 2X your RAM.
To get a separate /root, swap, and /home, you will need to use "manual partitioning" and create the 3 partitions and set the mount points as root, swap, and home.
Also, I think 20GB for root is a bit much. I would go with 12GB for root, which should be way more than enough.
If you use raid or LVM, you will want a boot partition. This is what Fedora does, but using LVM doesn't have advantages on a laptop. If you are someone who has to try every package that your distro offers, then the /usr directory might grow to over the 20GB you are planning the root directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.