How to prepare a disk on an EFI based PC for Ubuntu?











up vote
15
down vote

favorite
6












My computer has UEFI based BIOS and I want to start over from scratch.



The PC came with Windows installed - I later installed Ubuntu alongside.



I want to completely re-build my whole disk and install only Ubuntu on it.



So it is not about how to install Ubuntu, it is about how to prepare a disk.



What is the most professional way and which tasks will I have to perform?










share|improve this question
























  • I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
    – muru
    Mar 7 '16 at 15:06










  • You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
    – muru
    Mar 7 '16 at 15:12






  • 5




    Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
    – Rod Smith
    Mar 7 '16 at 17:24










  • @RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
    – muru
    Mar 7 '16 at 21:02








  • 2




    Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
    – Rod Smith
    Mar 8 '16 at 14:13















up vote
15
down vote

favorite
6












My computer has UEFI based BIOS and I want to start over from scratch.



The PC came with Windows installed - I later installed Ubuntu alongside.



I want to completely re-build my whole disk and install only Ubuntu on it.



So it is not about how to install Ubuntu, it is about how to prepare a disk.



What is the most professional way and which tasks will I have to perform?










share|improve this question
























  • I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
    – muru
    Mar 7 '16 at 15:06










  • You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
    – muru
    Mar 7 '16 at 15:12






  • 5




    Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
    – Rod Smith
    Mar 7 '16 at 17:24










  • @RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
    – muru
    Mar 7 '16 at 21:02








  • 2




    Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
    – Rod Smith
    Mar 8 '16 at 14:13













up vote
15
down vote

favorite
6









up vote
15
down vote

favorite
6






6





My computer has UEFI based BIOS and I want to start over from scratch.



The PC came with Windows installed - I later installed Ubuntu alongside.



I want to completely re-build my whole disk and install only Ubuntu on it.



So it is not about how to install Ubuntu, it is about how to prepare a disk.



What is the most professional way and which tasks will I have to perform?










share|improve this question















My computer has UEFI based BIOS and I want to start over from scratch.



The PC came with Windows installed - I later installed Ubuntu alongside.



I want to completely re-build my whole disk and install only Ubuntu on it.



So it is not about how to install Ubuntu, it is about how to prepare a disk.



What is the most professional way and which tasks will I have to perform?







partitioning gparted disk partitions gpt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 '16 at 16:04

























asked Mar 7 '16 at 15:00









cl-netbox

25.6k572113




25.6k572113












  • I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
    – muru
    Mar 7 '16 at 15:06










  • You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
    – muru
    Mar 7 '16 at 15:12






  • 5




    Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
    – Rod Smith
    Mar 7 '16 at 17:24










  • @RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
    – muru
    Mar 7 '16 at 21:02








  • 2




    Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
    – Rod Smith
    Mar 8 '16 at 14:13


















  • I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
    – muru
    Mar 7 '16 at 15:06










  • You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
    – muru
    Mar 7 '16 at 15:12






  • 5




    Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
    – Rod Smith
    Mar 7 '16 at 17:24










  • @RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
    – muru
    Mar 7 '16 at 21:02








  • 2




    Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
    – Rod Smith
    Mar 8 '16 at 14:13
















I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
– muru
Mar 7 '16 at 15:06




I assume you have gone through askubuntu.com/q/221835/158442? I'd say the simplest way is: enable legacy (BIOS) booting in UEFI, then install Ubuntu choosing the use entire disk option.
– muru
Mar 7 '16 at 15:06












You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
– muru
Mar 7 '16 at 15:12




You should have added an answer to that Q then. This has already been asked: askubuntu.com/questions/420272/…
– muru
Mar 7 '16 at 15:12




5




5




Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
– Rod Smith
Mar 7 '16 at 17:24




Muru, if you want to boot in EFI/UEFI mode, enabling the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase) is something you should almost certainly NOT do. See here for details on why this is the case. Two or three times a week, I answer questions from people who've bungled their installations because they've activated their CSMs.
– Rod Smith
Mar 7 '16 at 17:24












@RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
– muru
Mar 7 '16 at 21:02






@RodSmith see the original question. If I were wiping Windows and starting from scratch and looking for the simplest way, I wouldn't bother with UEFI at all. In fact, using CSM is exactly what I do when I don't want to bother about anything else. No need for this special partitioning and ESP and whatnot.
– muru
Mar 7 '16 at 21:02






2




2




Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
– Rod Smith
Mar 8 '16 at 14:13




Muru, modern computers use EFI (or UEFI, which is EFI 2.x), so you can't avoid it. At best, you add complexity by enabling the CSM. Granted, the native EFI method of booting is different and unfamiliar to long-time BIOS users, but it's no harder once you understand it. If you understand neither BIOS nor EFI, you might as well learn EFI, since BIOS is a dead-end technology.
– Rod Smith
Mar 8 '16 at 14:13










2 Answers
2






active

oldest

votes

















up vote
10
down vote



accepted










The most convenient and reliable way to prepare a disk is using the GNOME partition editor. GParted is included in the Ubuntu installation media, but in some cases it is better to use the original. When you boot from the Ubuntu install media and you already have a swap partition,

the partition is mounted. Partition swapoff and unmount unfortunately does not always work.





Use GParted from the Ubuntu installation media ... in case it does not work you can

download GParted from the project website and create a bootable DVD/USB media.



Boot from GParted Live media, once on the desktop GParted opens automatically.

Choose the disk you want to work on from the application menu on the top right.



Click on DeviceCreate Partition Table → Select gpt → Click Apply



Click on PartitionCreate new Partition:
New size: about 500 MB - File system: fat32



Click on PartitionCreate new Partition:
New size: amount of RAM - File system: linux-swap



Click on PartitionCreate new Partition:
New size: minimum 20 GB - File system: ext4



Optionally create more partitions:



Click on PartitionCreate new Partition:
New size: arbitrary - File system: arbitrary



These partitions can be used to store the personal data that are separated from the system. Use ext4 when Ubuntu or other Unix/Linux based systems are the only systems that need to access them. When you want to make the data accessible to Windows as well, choose ntfs or fat32.



Click on Apply after checking that everything is correct, wait until GParted completed the tasks.



Right-click the fat32 partition → Manage flags → Select boot and esp.



Now close GParted, shut down the computer, remove the GParted Live media.



Boot from Ubuntu installation media and select Try Ubuntu without installing.

On the desktop click Install Ubuntu and when asked, choose 'Something else'.



Select the ext4 partition you have created with GParted for Ubuntu before.

Select / as mount point and ext4 as file system ... start the installation.





Presentation : How to set up a disk and create new partitions with GParted



Example : Prepare the disk for the installation using an Ubuntu Live media



Additional information concerning swap : Community Help Wiki SwapFAQ





Note:



Doing it this way has one big advantage: You decide yourself about the whole partition layout and can prepare everything for eventual changes being made in the future. The partition sizes are suggestions, users of course shall choose them fitting to their needs. What first looks a bit complicated, is, once you have understood the systematic behind it and done it one time, easy.






share|improve this answer



















  • 2




    To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
    – muru
    Mar 7 '16 at 16:20










  • This is way over-complicated. The installer can do it all automatically.
    – Andrew Medico
    Mar 8 '16 at 3:13










  • I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
    – nicorellius
    Sep 19 at 19:55


















up vote
7
down vote













You can do everything from inside the Ubuntu installer. The minimum effort option is to select one of the "Use whole disk" variants, which should already do the right thing.



If you want to customize the partition layout, you can use the partition editor inside the installation tool as well, the only important bit is that you need to keep one FAT partition for the EFI binaries. This can be fairly small, since all that really needs to fit is three kernels (backup and running, and enough space to install updates), but unless space is really tight, 256 to 512 MB is a good value.



Last but not least: Ubuntu can only install an EFI bootloader if the system was booted in EFI mode, because the BIOS compatibility layer does not allow access to the boot menu, so the bootloader cannot be registered.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f743095%2fhow-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    10
    down vote



    accepted










    The most convenient and reliable way to prepare a disk is using the GNOME partition editor. GParted is included in the Ubuntu installation media, but in some cases it is better to use the original. When you boot from the Ubuntu install media and you already have a swap partition,

    the partition is mounted. Partition swapoff and unmount unfortunately does not always work.





    Use GParted from the Ubuntu installation media ... in case it does not work you can

    download GParted from the project website and create a bootable DVD/USB media.



    Boot from GParted Live media, once on the desktop GParted opens automatically.

    Choose the disk you want to work on from the application menu on the top right.



    Click on DeviceCreate Partition Table → Select gpt → Click Apply



    Click on PartitionCreate new Partition:
    New size: about 500 MB - File system: fat32



    Click on PartitionCreate new Partition:
    New size: amount of RAM - File system: linux-swap



    Click on PartitionCreate new Partition:
    New size: minimum 20 GB - File system: ext4



    Optionally create more partitions:



    Click on PartitionCreate new Partition:
    New size: arbitrary - File system: arbitrary



    These partitions can be used to store the personal data that are separated from the system. Use ext4 when Ubuntu or other Unix/Linux based systems are the only systems that need to access them. When you want to make the data accessible to Windows as well, choose ntfs or fat32.



    Click on Apply after checking that everything is correct, wait until GParted completed the tasks.



    Right-click the fat32 partition → Manage flags → Select boot and esp.



    Now close GParted, shut down the computer, remove the GParted Live media.



    Boot from Ubuntu installation media and select Try Ubuntu without installing.

    On the desktop click Install Ubuntu and when asked, choose 'Something else'.



    Select the ext4 partition you have created with GParted for Ubuntu before.

    Select / as mount point and ext4 as file system ... start the installation.





    Presentation : How to set up a disk and create new partitions with GParted



    Example : Prepare the disk for the installation using an Ubuntu Live media



    Additional information concerning swap : Community Help Wiki SwapFAQ





    Note:



    Doing it this way has one big advantage: You decide yourself about the whole partition layout and can prepare everything for eventual changes being made in the future. The partition sizes are suggestions, users of course shall choose them fitting to their needs. What first looks a bit complicated, is, once you have understood the systematic behind it and done it one time, easy.






    share|improve this answer



















    • 2




      To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
      – muru
      Mar 7 '16 at 16:20










    • This is way over-complicated. The installer can do it all automatically.
      – Andrew Medico
      Mar 8 '16 at 3:13










    • I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
      – nicorellius
      Sep 19 at 19:55















    up vote
    10
    down vote



    accepted










    The most convenient and reliable way to prepare a disk is using the GNOME partition editor. GParted is included in the Ubuntu installation media, but in some cases it is better to use the original. When you boot from the Ubuntu install media and you already have a swap partition,

    the partition is mounted. Partition swapoff and unmount unfortunately does not always work.





    Use GParted from the Ubuntu installation media ... in case it does not work you can

    download GParted from the project website and create a bootable DVD/USB media.



    Boot from GParted Live media, once on the desktop GParted opens automatically.

    Choose the disk you want to work on from the application menu on the top right.



    Click on DeviceCreate Partition Table → Select gpt → Click Apply



    Click on PartitionCreate new Partition:
    New size: about 500 MB - File system: fat32



    Click on PartitionCreate new Partition:
    New size: amount of RAM - File system: linux-swap



    Click on PartitionCreate new Partition:
    New size: minimum 20 GB - File system: ext4



    Optionally create more partitions:



    Click on PartitionCreate new Partition:
    New size: arbitrary - File system: arbitrary



    These partitions can be used to store the personal data that are separated from the system. Use ext4 when Ubuntu or other Unix/Linux based systems are the only systems that need to access them. When you want to make the data accessible to Windows as well, choose ntfs or fat32.



    Click on Apply after checking that everything is correct, wait until GParted completed the tasks.



    Right-click the fat32 partition → Manage flags → Select boot and esp.



    Now close GParted, shut down the computer, remove the GParted Live media.



    Boot from Ubuntu installation media and select Try Ubuntu without installing.

    On the desktop click Install Ubuntu and when asked, choose 'Something else'.



    Select the ext4 partition you have created with GParted for Ubuntu before.

    Select / as mount point and ext4 as file system ... start the installation.





    Presentation : How to set up a disk and create new partitions with GParted



    Example : Prepare the disk for the installation using an Ubuntu Live media



    Additional information concerning swap : Community Help Wiki SwapFAQ





    Note:



    Doing it this way has one big advantage: You decide yourself about the whole partition layout and can prepare everything for eventual changes being made in the future. The partition sizes are suggestions, users of course shall choose them fitting to their needs. What first looks a bit complicated, is, once you have understood the systematic behind it and done it one time, easy.






    share|improve this answer



















    • 2




      To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
      – muru
      Mar 7 '16 at 16:20










    • This is way over-complicated. The installer can do it all automatically.
      – Andrew Medico
      Mar 8 '16 at 3:13










    • I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
      – nicorellius
      Sep 19 at 19:55













    up vote
    10
    down vote



    accepted







    up vote
    10
    down vote



    accepted






    The most convenient and reliable way to prepare a disk is using the GNOME partition editor. GParted is included in the Ubuntu installation media, but in some cases it is better to use the original. When you boot from the Ubuntu install media and you already have a swap partition,

    the partition is mounted. Partition swapoff and unmount unfortunately does not always work.





    Use GParted from the Ubuntu installation media ... in case it does not work you can

    download GParted from the project website and create a bootable DVD/USB media.



    Boot from GParted Live media, once on the desktop GParted opens automatically.

    Choose the disk you want to work on from the application menu on the top right.



    Click on DeviceCreate Partition Table → Select gpt → Click Apply



    Click on PartitionCreate new Partition:
    New size: about 500 MB - File system: fat32



    Click on PartitionCreate new Partition:
    New size: amount of RAM - File system: linux-swap



    Click on PartitionCreate new Partition:
    New size: minimum 20 GB - File system: ext4



    Optionally create more partitions:



    Click on PartitionCreate new Partition:
    New size: arbitrary - File system: arbitrary



    These partitions can be used to store the personal data that are separated from the system. Use ext4 when Ubuntu or other Unix/Linux based systems are the only systems that need to access them. When you want to make the data accessible to Windows as well, choose ntfs or fat32.



    Click on Apply after checking that everything is correct, wait until GParted completed the tasks.



    Right-click the fat32 partition → Manage flags → Select boot and esp.



    Now close GParted, shut down the computer, remove the GParted Live media.



    Boot from Ubuntu installation media and select Try Ubuntu without installing.

    On the desktop click Install Ubuntu and when asked, choose 'Something else'.



    Select the ext4 partition you have created with GParted for Ubuntu before.

    Select / as mount point and ext4 as file system ... start the installation.





    Presentation : How to set up a disk and create new partitions with GParted



    Example : Prepare the disk for the installation using an Ubuntu Live media



    Additional information concerning swap : Community Help Wiki SwapFAQ





    Note:



    Doing it this way has one big advantage: You decide yourself about the whole partition layout and can prepare everything for eventual changes being made in the future. The partition sizes are suggestions, users of course shall choose them fitting to their needs. What first looks a bit complicated, is, once you have understood the systematic behind it and done it one time, easy.






    share|improve this answer














    The most convenient and reliable way to prepare a disk is using the GNOME partition editor. GParted is included in the Ubuntu installation media, but in some cases it is better to use the original. When you boot from the Ubuntu install media and you already have a swap partition,

    the partition is mounted. Partition swapoff and unmount unfortunately does not always work.





    Use GParted from the Ubuntu installation media ... in case it does not work you can

    download GParted from the project website and create a bootable DVD/USB media.



    Boot from GParted Live media, once on the desktop GParted opens automatically.

    Choose the disk you want to work on from the application menu on the top right.



    Click on DeviceCreate Partition Table → Select gpt → Click Apply



    Click on PartitionCreate new Partition:
    New size: about 500 MB - File system: fat32



    Click on PartitionCreate new Partition:
    New size: amount of RAM - File system: linux-swap



    Click on PartitionCreate new Partition:
    New size: minimum 20 GB - File system: ext4



    Optionally create more partitions:



    Click on PartitionCreate new Partition:
    New size: arbitrary - File system: arbitrary



    These partitions can be used to store the personal data that are separated from the system. Use ext4 when Ubuntu or other Unix/Linux based systems are the only systems that need to access them. When you want to make the data accessible to Windows as well, choose ntfs or fat32.



    Click on Apply after checking that everything is correct, wait until GParted completed the tasks.



    Right-click the fat32 partition → Manage flags → Select boot and esp.



    Now close GParted, shut down the computer, remove the GParted Live media.



    Boot from Ubuntu installation media and select Try Ubuntu without installing.

    On the desktop click Install Ubuntu and when asked, choose 'Something else'.



    Select the ext4 partition you have created with GParted for Ubuntu before.

    Select / as mount point and ext4 as file system ... start the installation.





    Presentation : How to set up a disk and create new partitions with GParted



    Example : Prepare the disk for the installation using an Ubuntu Live media



    Additional information concerning swap : Community Help Wiki SwapFAQ





    Note:



    Doing it this way has one big advantage: You decide yourself about the whole partition layout and can prepare everything for eventual changes being made in the future. The partition sizes are suggestions, users of course shall choose them fitting to their needs. What first looks a bit complicated, is, once you have understood the systematic behind it and done it one time, easy.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 26 '16 at 11:49

























    answered Mar 7 '16 at 15:08









    cl-netbox

    25.6k572113




    25.6k572113








    • 2




      To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
      – muru
      Mar 7 '16 at 16:20










    • This is way over-complicated. The installer can do it all automatically.
      – Andrew Medico
      Mar 8 '16 at 3:13










    • I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
      – nicorellius
      Sep 19 at 19:55














    • 2




      To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
      – muru
      Mar 7 '16 at 16:20










    • This is way over-complicated. The installer can do it all automatically.
      – Andrew Medico
      Mar 8 '16 at 3:13










    • I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
      – nicorellius
      Sep 19 at 19:55








    2




    2




    To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
    – muru
    Mar 7 '16 at 16:20




    To summarise this overly-long answer: UEFI requires a FAT32-formatted partition with the boot flag activated.
    – muru
    Mar 7 '16 at 16:20












    This is way over-complicated. The installer can do it all automatically.
    – Andrew Medico
    Mar 8 '16 at 3:13




    This is way over-complicated. The installer can do it all automatically.
    – Andrew Medico
    Mar 8 '16 at 3:13












    I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
    – nicorellius
    Sep 19 at 19:55




    I think the complexity of this answer is spot on, as this whole Grub EFI package bug is a PITA (as it helps to have details). For learning about how these things work, this level of complicated-ness is helpful. However, all that said, this answer might be a bit slim after the formatting steps. I found myself wondering whether I should reformat the ext4 partition when installing the OS (eg, whether to check the box when setting the mount point). If you don't (which is the right answer), the startup disk warns/asks questions about existing file systems, overwriting data.
    – nicorellius
    Sep 19 at 19:55












    up vote
    7
    down vote













    You can do everything from inside the Ubuntu installer. The minimum effort option is to select one of the "Use whole disk" variants, which should already do the right thing.



    If you want to customize the partition layout, you can use the partition editor inside the installation tool as well, the only important bit is that you need to keep one FAT partition for the EFI binaries. This can be fairly small, since all that really needs to fit is three kernels (backup and running, and enough space to install updates), but unless space is really tight, 256 to 512 MB is a good value.



    Last but not least: Ubuntu can only install an EFI bootloader if the system was booted in EFI mode, because the BIOS compatibility layer does not allow access to the boot menu, so the bootloader cannot be registered.






    share|improve this answer

























      up vote
      7
      down vote













      You can do everything from inside the Ubuntu installer. The minimum effort option is to select one of the "Use whole disk" variants, which should already do the right thing.



      If you want to customize the partition layout, you can use the partition editor inside the installation tool as well, the only important bit is that you need to keep one FAT partition for the EFI binaries. This can be fairly small, since all that really needs to fit is three kernels (backup and running, and enough space to install updates), but unless space is really tight, 256 to 512 MB is a good value.



      Last but not least: Ubuntu can only install an EFI bootloader if the system was booted in EFI mode, because the BIOS compatibility layer does not allow access to the boot menu, so the bootloader cannot be registered.






      share|improve this answer























        up vote
        7
        down vote










        up vote
        7
        down vote









        You can do everything from inside the Ubuntu installer. The minimum effort option is to select one of the "Use whole disk" variants, which should already do the right thing.



        If you want to customize the partition layout, you can use the partition editor inside the installation tool as well, the only important bit is that you need to keep one FAT partition for the EFI binaries. This can be fairly small, since all that really needs to fit is three kernels (backup and running, and enough space to install updates), but unless space is really tight, 256 to 512 MB is a good value.



        Last but not least: Ubuntu can only install an EFI bootloader if the system was booted in EFI mode, because the BIOS compatibility layer does not allow access to the boot menu, so the bootloader cannot be registered.






        share|improve this answer












        You can do everything from inside the Ubuntu installer. The minimum effort option is to select one of the "Use whole disk" variants, which should already do the right thing.



        If you want to customize the partition layout, you can use the partition editor inside the installation tool as well, the only important bit is that you need to keep one FAT partition for the EFI binaries. This can be fairly small, since all that really needs to fit is three kernels (backup and running, and enough space to install updates), but unless space is really tight, 256 to 512 MB is a good value.



        Last but not least: Ubuntu can only install an EFI bootloader if the system was booted in EFI mode, because the BIOS compatibility layer does not allow access to the boot menu, so the bootloader cannot be registered.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 7 '16 at 23:54









        Simon Richter

        1,936109




        1,936109






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f743095%2fhow-to-prepare-a-disk-on-an-efi-based-pc-for-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?