How to Choose a Partition Scheme for Linux

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

How to Choose a Partition Scheme for Linux

Postby unleash » 17. April 2016 12:44

How to Choose a Partition Scheme

i want to create a Partitionsheme

the Notebook Hewlett Packard; a HP 14-r103ng Notebook 14" [Intel Pentium N3540 QuadCore, 4GB, 500GB]

i want to create a Partitionsscheme only for Linux.

i do not want to install windows any more - i want to install opensuse 13.2 (others do not run propperly on the machine)

which partition sheme would you create:

Code: Select all
 /dev/sda, Load MBR with Grub
1. /dev/sda1, Primary SWAP (4 GB)
2. /dev/sda2, Primary EXT4 "/" openSUSE Partition zum booten (36-60 GB)
3. /dev/sda3, Primary EXT4 "/home" das home directory (Rest of the hard disk)

...what is on the notebook at the monent is the following

Code: Select all

Festplatte /dev/sda: 465,8 GiB, 500107862016 Bytes, 976773168 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 6229C7C4-758C-450E-9D59-F59E2AE3CB11

Device        Start      End   Sectors   Size Type
/dev/sda1      2048   1050623   1048576   512M EFI System
/dev/sda2   1050624  84951039  83900416   40G Microsoft basic data
/dev/sda3  968617984 976771071   8153088   3,9G Linux swap
/dev/sda4   84951040 968617983 883666944 421,4G Microsoft basic data

Partitionstabelleneinträge sind nicht in Festplatten-Reihenfolge.

martin@linux-vkhz:~> sfdisk -l -uM
Absolute path to 'sfdisk' is '/usr/sbin/sfdisk', so running it may require superuser privileges (eg. root).
martin@linux-vkhz:~> su
linux-vkhz:/home/martin # sfdisk -l -uM

Festplatte /dev/sda: 60801 Zylinder, 255 Köpfe, 63 Sektoren/Spur
Einheiten: 1MiB = 1024*1024 Bytes, Blöcke von 1024 Bytes, Zählung
beginnt bei 0

   Gerät  boot. Anfang Ende   MiB   #Blöcke   Id  System
/dev/sda1        0+ 476940- 476941- 488386583+  ee  GPT
               Anfang: (c,h,s) erwartet (0,0,2) gefunden (0,0,1)
/dev/sda2        0     -     0         0   0  Leer
/dev/sda3        0     -     0         0   0  Leer
/dev/sda4        0     -     0         0   0  Leer
linux-vkhz:/home/martin # parted -l                                                                                                                                                           
Model: ATA TOSHIBA MQ01ABF0 (scsi)                                                                                                                                                           
Disk /dev/sda: 500GB                                                                                                                                                                         
Sector size (logical/physical): 512B/4096B                                                                                                                                                   
Partition Table: gpt                                                                                                                                                                         
Disk Flags:                                                                                                                                                                                   
Number  Start   End    Size   File system    Name    Flags                                                                                                                               
 1     1049kB  538MB   537MB   fat32                   boot                                                                                                                                 
 2     538MB   43,5GB  43,0GB  btrfs          primary                                                                                                                                       
 4     43,5GB  496GB   452GB   xfs            primary                                                                                                                                       
 3     496GB   500GB   4174MB  linux-swap(v1)                                                                                                                                               
linux-vkhz:/home/martin #    

note: i want to wipe all windows things -

would love to hear from you
Posts: 141
Joined: 03. December 2011 10:16
Operating System: OpenSuse Linux 12.1

Re: How to Choose a Partition Scheme for Linux

Postby unleash » 17. April 2016 18:16

well the easier thing is to run this partition-sheme

Code: Select all
 /dev/sda, Load MBR with Grub
1. /dev/sda1, Primary SWAP (4 GB)
2. /dev/sda2, Primary EXT4 "/" openSUSE Partition zum booten (36-60 GB)
3. /dev/sda3, Primary EXT4 "/home" das home directory (Rest of the hard disk)

and yes:

with GRUB we can go ahead - installing a first Linux and then having the option to install a second too.
so i first of all need to do one thing. Install opensuse 13.2 first

but the question of the day is: what to do with the old EFI partition on the Notebook -can this be wiped or not...

in other words - what do i need to do with the following lines:

Code: Select all
Device        Start      End   Sectors   Size Type
/dev/sda1      2048   1050623   1048576   512M EFI System
/dev/sda2   1050624  84951039  83900416   40G Microsoft basic data
Posts: 141
Joined: 03. December 2011 10:16
Operating System: OpenSuse Linux 12.1

Re: How to Choose a Partition Scheme for Linux

Postby unleash » 18. April 2016 00:23

regarding the EFI-Partition on the HDD _ see the following hints:

this one is very good: ... nly-ubuntu

question: Can I erase all partitions including EFI and install only Ubuntu?

Answer 1
Yes, when you completely erase the disk, you can install ubuntu as the single operating system.
When you can disable UEFI in BIOS (mostly you can) you even can install ubuntu in mbr mode.
Boot from ubuntu install media, open GParted and create a new partition table - choose mbr.
In case you can not disable UEFI and/or secure boot you as well can install ubuntu in EFI mode.
Then the installer will create a new EFI partition where the GRUB boot loader will be installed.

Answer 2
You question is not completely clear to me. If you want to install Ubuntu in UEFI mode here is what you need to do :
You will need to set your BIOS in UEFI mode and to create an UEFI bootable Ubuntu USB key.
Follow this guide to create a UEFI bootable USB. Then simply run the Ubuntu installer;
at step Installation Type, select Something Else and partition your disk as explained in this answer.
If boot mode (UEFI or Legacy) does not matter for you simply install Ubuntu as usual. (Refer to this guide if needed)

Answer 3
You need to keep UEFI mode only if you want to install Ubuntu in UEFI mode. –

answer 4
The question uses some terminology incorrectly, which can lead to confusion and problems down the road, so I want to address these issues first.
The Extensible Firmware Interface (EFI), or its 2.x version, the Unified EFI (UEFI), is a type of firmware. The EFI is not a partition. That said, there is a partition called the EFI System Partition (ESP), which holds boot loaders. Chances are that lapisdecor meant "ESP" rather than "EFI" in the original question.
Also, the EFI is a type of firmware that replaces the older Basic Input/Output System (BIOS). As such, if your computer uses an EFI, it does not have a BIOS. There are, however, some caveats and exceptions. Most commonly, EFIs provide a feature called the Compatibility Support Module (CSM), which is a sort of BIOS emulator; the CSM is to EFI like what dosemu is to Linux, in that it enables a newer and more sophisticated environment (EFI or Linux) to run programs designed for an older and simpler system (BIOS or DOS). In other words, "BIOS" in the original question should be "EFI." That said, using "BIOS" in place of "EFI" is a common practice. It's a bad one, but it's common, both among users and among manufacturers. I suspect it's done because people know (more or less) what a BIOS is, whereas "EFI" is an unfamiliar acronym; and since EFI replaces BIOS, using "BIOS" makes the job easier for copywriters. The trouble is that people then drag all their BIOS knowledge up when they read "BIOS," but much of it is inapplicable. EFI boots in a very different way from BIOS, so if you think of EFI as being an enhanced BIOS, you'll have a mental model that's very wrong and you'll make mistakes. Then people like me end up spending a lot of time explaining how it all actually works -- but I digress....
Moving on to real issues: If you're "in legacy mode," that just means that your CSM is active. This does not guarantee a boot in BIOS/CSM/legacy mode, though. On most EFI-based computers, when the CSM is disabled, the boot path is relatively simple; you can boot only EFI-mode boot loaders. Note that you can't "disable the EFI"; the EFI is the firmware, and it's in charge of the computer. Some computers do enable you to disable the ability to boot in EFI mode, but such options are rare -- and some computers provide interfaces that make it sound as if you're disabling EFI-mode booting, but you really aren't. When you activate the CSM, most computers enable either type of boot loader to run, which makes it impossible to predict what will happen when you feed the computer a disk that provides both types of boot loader. This isn't normally a big deal for a single-boot computer; when you install the OS, the installer will detect its boot mode and install the boot loader only for the installer's boot mode, so the computer can boot from the hard disk only in that same mode. If you multi-boot, though, you can easily install one OS in one boot mode and the other OS in the other boot mode. The hair-pulling begins at this point.
In the not-too-distant past, EFI-mode booting was an exercise in frustration because of bugs in EFIs, bugs in boot loaders, and misinformation, which often made enabling the CSM appealing. Today, though, EFI-mode booting poses fewer problems, and my estimate from questions posted here and elsewhere is that the biggest single problem area today is from activated CSMs. Thus, I recommend that the CSM (aka "legacy boot") be disabled on EFI-based computers unless you have a good reason to enable it. To be sure, EFI-mode booting today poses more challenges than BIOS-mode booting did five years ago; but on an EFI-based computer, BIOS-mode booting creates pitfalls that didn't exist five years ago.
So, that long-winded stuff out of the way, let's get back to your original question, re-phrased slightly:
Can I erase all partitions on my computer, including ESP, and install only Ubuntu? Will the EFI work in this case?

Yes and yes.

After you erase your partitions, the Ubuntu installer will create new ones if you select an automatic partitioning option. If you partition manually, you'll need to create appropriate partitions. These may include an ESP if you install in EFI mode or a BIOS Boot Partition if you install to a GPT disk in BIOS mode.

see full text - a very good hint: ... nly-ubuntu
Posts: 141
Joined: 03. December 2011 10:16
Operating System: OpenSuse Linux 12.1

Return to Allerlei

Who is online

Users browsing this forum: No registered users and 2 guests