6

Today I bought a Lenovo G510 Laptop (4GB Ram, 500GB Hard Drive) and need install both Ubuntu and Windows 7. I have some questions regarding this.

  • What OS should I install first ?

  • What are the partition sizes should I put for swap, root and home ?

1

5 Answers 5

3

First Install windows on your laptop (You can install Ubuntu too but then u have to run boot repair from live USB to repair the grub because Windows bootloader is aggressive).

Follow these steps if your laptop supports BIOS (the steps are totally different for UEFI laptop)

  1. Install Windows 7 normally (Allot 30 GB to windows partition)
  2. Now install Ubuntu from live USB or live CD
  3. You should create home partition if you wish to upgrade your Ubuntu without losing any data
  4. Root partition should be of about 20-30 GB, swap partition of about 8 GB and home partition of about 20-30 GB (i have allotted this much only on my laptop)

Partition should be of ext4 type memory for Ubuntu

Kindly approve my answer if it helps you by clicking the tick below the the arrow pointing downward since it will increase your reputation as well as mine

3
  • 2
    Ubuntu only installs in Linux formatted partitions like ext4, not Windows formats like FAT32 nor NTFS. So / (root) should be ext4. I might make Windows a bit larger, but use a shared NTFS data partition for any data you might want in both installs.
    – oldfred
    Jan 15, 2015 at 15:44
  • Thanks oldfred i have written this by mistake.Now i have corrected it Jan 15, 2015 at 17:48
  • @BrownBatman It was no problem here, but as general advice: Take care to get the letter case right, because it may be ambiguous otherwise: You had used gb, and that does not exist. It could be Gb, or GB, and some times it is not even clear from context (as it was here). If one character was wrong, it's Gb - gigabit, and if two, it's GB - gigabyte. And 8 Gb are 1 GB. Dec 25, 2019 at 8:24
2

Just as anybody else until now suggested you: First install Windows, then Ubuntu.

I personally gave 40GB to Ubuntu as root partition without using an extra /home partition and about 800MB swap (2G RAM).

If you want to split them up, you should size the / in a way that it can hold all your programs and system. Depending on what you are going to install, maybe 10GB might be enough (around 2-3GB is absolute minimum for the bare system, I think), but e.g. many big games, office progs, media stuff etc might also require a lot more... Then in contrast, the /home partition will contain all your data (photos, music, videos, documents, downloads, system/program settings etc.). So the main part of this will be made by your multimedia data, the rest should not take more than a GB or so.

For swap, I think it is recommended to give it about the same size as your RAM, a bit bigger if you want to use it for hibernation (not recommended since version 12 ?)

But about the file systems: Ubuntu's default file system for data partitions (all except swap) is ext4! I would suggest you to use this instead of old FAT or windows' newer NTFS. You would not be able to access the files on a ext4 volume from within windows without additional drivers, but for Ubuntu, it has several advantages, e.g. it does not require any defragging and provides always high data transfer speed. As a workaround, you could allocate another partition in NTFS or FAT32 where you can copy the Ubuntu files you have to access from Windows too (the other direction works directly). For swap, you of course use linux-swap.

1

Install Windows first, its bootloader is rather aggressive and will not let you access your (previous) linux installation without further configuration (such as installing the GRUB boot loader again from some medium). Installing Ubuntu second will replace the Windows bootloader with GRUB, saving you the trouble.

I doubt you would benefit from creating a separate /home partition. Just go with root and swap. Swap should be double the RAM (8 GB in your case), depending on how much memory you tend to use (leaving lots of applications open etc). The size of root depends on what you use the system for.

0

I would install windows 7 first Ubuntu handles being installed secondly much more efficiently than Windows.

Follow these steps

  1. As far as partition sizes are concerned I would go for 30gb ntfs partition for windows and you will need 2 fat32 partitions for Ubuntu

  2. A swap partition of 2gb to 4gb and a root partition that is a minimum of 10gb.

  3. Give Ubuntu a partition of about 20gb but it's a personal preference thing.

  4. The remaining space left on the hard drive you might want to set up as a logical drive you can use ntfs or fat32 but I prefer to use a fat 32 partition labelled Data or media. Just how I set up my system.

0

Yeah, you should install windows first. However, during linux installation, when partitioning it is important to have a separate /home partition so that in case of computer or reinstallation later you can select that same partition for home instead of allocating new space. This way you can prevent loss of data. You could additionally do this for /var, /tmp etc but that's a personal preference or if you have a large system with lots of users

You must log in to answer this question.

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