0

I had a windows 10 pc and installed ubuntu 16.04.2 LTS. When installing, it told me to create a /boot partition and thats what i did. The problem is that at this moment I didnt know that windows was installed in uefi mode and not legacy.

Which configuration should i use on boot-repair or what should i do?

Boot repair shows that I can check/uncheck separated /boot and /boot/efi.

This is the boot info output: http://paste.ubuntu.com/24145067/

0

I think you misinterpreted the installer's prompt; I don't think it was telling you to create a separate /boot partition (which uses a Linux filesystem and holds the Linux kernel and related files), but to create a BIOS Boot Partition, which holds part of the BIOS-mode version of GRUB without using a filesystem at all. The two are totally different things. Some installations require one or the other of these partitions, and some require both. Your computer has both of them, but in fact, neither is actually necessary.

Also, some of your partition sizes are way out of line:

  • /dev/sda6 is your /boot partition, and is 488 MiB, which is a decent size. (~500 MiB is common these days.)
  • /dev/sda7 is your swap partition, and is 15 GiB, which is probably not too bad. In the past, swap was routinely 1-2x the amount of installed RAM. Today that's normally overkill, unless you want to suspend to disk, in which case it should be at least as big as your RAM. If you don't want to suspend to disk, half your RAM size is probably adequate. Some people favor using no swap space at all, but it does have its advantages even if you don't use all your RAM for programs, since the kernel can swap out less-used temporary data in favor of caches that can speed up disk access.
  • /dev/sda8 is your root (/) partition, and is 171 GiB, which is much too big if you've got a separate /home, as you do. In most cases, ~20 GiB is enough for an Ubuntu root (/) partition. For a big installation with lots of programs, 50 GiB should be more than adequate. (OTOH, if you don't use a separate /home partition, / should be the bulk of your Ubuntu-related storage -- the size of both / and /home if they were separated.)
  • /dev/sda9 is your BIOS Boot Partition, and is 122 MiB, which is way too big for this partition. 1 MiB is normally sufficient -- but if you install in EFI mode, this partition is completely unnecessary.
  • /dev/sda10 is your /home partition, and is 855 MiB, which is much too small. Your user files reside in /home, so it should be big enough to hold whatever you plan to store there -- word processing document, Web browser caches, MP3 files, videos, etc. Some of these can be huge. Thus, on a desktop or laptop with a separate /home, this is normally the largest partition.

The best way for you to proceed is to re-install Ubuntu as follows:

  1. In your firmware setup utility, disable the Compatibility Support Module (CSM), aka legacy support or BIOS-mode boot support.
  2. You may need to re-create your Ubuntu installation medium (or maybe not). The key is to ensure that it includes an EFI-mode boot loader. See this page of mine for more on the CSM and its problems and how to create a suitable boot medium (the last is near the bottom, in "Creating EFI-Bootable USB Drives.") It's unclear to me if your current medium has the EFI-mode boot support.
  3. Boot the Ubuntu installer, but select the "try before installing" mode.
  4. Open a Terminal window and verify that you've booted in EFI mode by looking for a directory called /sys/firmware/efi. If it's present and contains various files and subdirectories, you've booted in EFI mode; otherwise, you've booted in BIOS/CSM/legacy mode, and you should review the preceding steps and fiddle with your settings or USB drive until you can boot in EFI mode.
  5. Delete the partitions corresponding to your current installation -- /dev/sda6 through /dev/sda10.
  6. Re-run the Ubuntu installer. You can either create partitions manually, but along more sensible lines; or you can tell the installer to install in the disk's (now) unpartitioned space. I'd recommend a 20-to-50 GiB root (/), a swap partition of roughly its current size (adjust up or down as you see fit; see my earlier comments), and the rest as /home. There's no need for a separate /boot partition or a BIOS Boot Partition. Be careful with partitioning, though; people have accidentally wiped out their Windows installations by selecting the wrong option!

When the installer finishes installing, the computer should reboot into GRUB, which should give you the option of booting either Ubuntu or Windows.

  • The reason of having a large / partition is because I use Ubuntu only for developement purposes, then I need a lot of installs and that stuff. And a small question, to install Ubuntu in UEFI mode I just need to boot the live USB into UEFI mode and not USB mode (when I did the first Ubuntu install, didn't notice that usb means legacy mode in my motherboard), is it? – Lluc Simo Mar 10 '17 at 17:21
  • Most files you work on when developing software should go in your home directory, which is a subdirectory of /home. Of course, compilers and libraries will go in /, but they aren't that huge. I also do software development (I'm the author of GPT fdisk and maintain rEFInd), but my / partition is 45 GiB and holds 36 GiB of files. My /home, OTOH, has 161 GiB of files on it. That said, if you have something like lots of Linux kernels in /usr/src, you might need a bigger /; or you could split /usr/src off into its own partition. – Rod Smith Mar 10 '17 at 18:56
  • When I re-install, I'll allow a lot more on the /home partition and build on it, then leave the / partition just for libraries and that stuff. – Lluc Simo Mar 11 '17 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.