LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Choose a Partition Scheme for Linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-choose-a-partition-scheme-for-linux-4175577653/)

sayhello_to_the_world 04-17-2016 06:41 AM

How to Choose a Partition Scheme for Linux
 
hello dear Linux-experts,


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:

/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:


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
Passwort:
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

fatmac 04-17-2016 07:12 AM

I'm from the pre (U)EFI period, but I would have the same size /swap as ram, or bigger, / (root) twice the size you think you need for your actual O/S & programs, the rest as your /home.

I think you will have to have an EFI partition of something like 200Mb, so the system can boot.

(The distro you choose should give you an idea of the recommended sizes.)

Hope that's of some help.

sayhello_to_the_world 04-17-2016 07:27 AM

hello dear fatmac

many many thanks for the quick reply - great to hear from you. Fantastic. I need some advices since i am new to the part of setting up linux. I run linux for several years - but setting up a partition table is something new for me.

Quote:

Originally Posted by fatmac (Post 5532400)
I'm from the pre (U)EFI period, but I would have the same size /swap as ram, or bigger, / (root) twice the size you think you need for your actual O/S & programs, the rest as your /home.

I think you will have to have an EFI partition of something like 200Mb, so the system can boot.

(The distro you choose should give you an idea of the recommended sizes.)

Hope that's of some help.


note: on the notebook there has been installed free-dos - so we can see some old things on the HDD. I love to get rid of all the old things, that are not needed any more. I work with gparted. So i can wipe all the things that we do not need anymore.

I want to install opensuse 13.2 (other distributions do not work well on the notebook - but i want to " test " them.
The primary (and main!!) installation operation system should be opensuse 13.2



you say:
Quote:

I think you will have to have an EFI partition of something like 200Mb, so the system can boot.
that means that this will remain on the hdd. - okay i will leave that on the hdd. The rest can be wiped?!

BTW - is there any good manual on allthat stuff - creating a partition-sheme. I would love to get it!

in other words: can anybody reccomend a good online-tutorial or manual on the topic patitioning sheme /&table. Please advice.

many many thanks

TB0ne 04-17-2016 09:38 AM

Quote:

Originally Posted by sayhello_to_the_world (Post 5532405)
hello dear fatmac
many many thanks for the quick reply - great to hear from you. Fantastic. I need some advices since i am new to the part of setting up linux. I run linux for several years - but setting up a partition table is something new for me.

Sorry, that's a plain lie. You've been asking about Linux partitioning for THREE YEARS now:
http://www.linuxquestions.org/questi...to-4175463188/
http://www.linuxquestions.org/questi...-a-4175463209/
http://www.linuxquestions.org/questi...ce-4175489376/
http://www.linuxquestions.org/questi...e;-4175529458/
Quote:

note: on the notebook there has been installed free-dos - so we can see some old things on the HDD. I love to get rid of all the old things, that are not needed any more. I work with gparted. So i can wipe all the things that we do not need anymore.

I want to install opensuse 13.2 (other distributions do not work well on the notebook - but i want to " test " them. The primary (and main!!) installation operation system should be opensuse 13.2 you say:

that means that this will remain on the hdd. - okay i will leave that on the hdd. The rest can be wiped?!
BTW - is there any good manual on allthat stuff - creating a partition-sheme. I would love to get it!

in other words: can anybody reccomend a good online-tutorial or manual on the topic patitioning sheme /&table. Please advice.
You've had several recommended to you over the years...did you read/understand any of them??? Did you try putting "how to partition a hard drive for dual booting in Linux" into Google, and look at any of the MORE THAN HALF A MILLION HITS??? Things such as:
https://en.opensuse.org/SDB:Basics_o...,_mount_points
http://askubuntu.com/questions/14984...-for-dual-boot
http://linuxbsdos.com/2012/09/12/7-t...s-and-windows/
https://forums.opensuse.org/showthre...-for-dual-boot

The OpenSUSE forums have MANY guides that also tell you how to do this. The Linux distro doesn't matter, since pretty much all of them use Grub.

beachboy2 04-17-2016 09:43 AM

sayhello to the world,

It is a good idea to make full backup of Windows and the efi partition, just in case.

These threads are useful:

http://ubuntuforums.org/showthread.php?t=2262442

http://ubuntuforums.org/showthread.php?t=2147295

sayhello_to_the_world 04-17-2016 10:33 AM

hello dear Beachoy,

many thanks for the hints - great to hear from you.


Quote:

Originally Posted by beachboy2 (Post 5532453)
sayhello to the world,

It is a good idea to make full backup of Windows and the efi partition, just in case.

These threads are useful:

http://ubuntuforums.org/showthread.php?t=2262442

http://ubuntuforums.org/showthread.php?t=2147295


will read through it all.


well i can do some thing like this..


example one - a bit sophisticated one:

Code:

~> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 156M 0 part /boot/efi
├─sda2 8:2 0 400M 0 part /boot
└─sda3 8:3 0 465,2G 0 part
└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
├─system-swap 254:1 0 2G 0 lvm [SWAP]
├─system-root 254:2 0 40G 0 lvm /
└─system-home 254:3 0 423,2G 0 lvm /home

this i cannot be created with gparted

Code:

└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
├─system-swap 254:1 0 2G 0 lvm [SWAP]
├─system-root 254:2 0 40G 0 lvm /
└─system-home 254:3 0 423,2G 0 lvm /hom

but this line looks interesting. ....

Code:

└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
unfortunatley: Currently GParted supports operations such as creating, resizing, and deleting LVM Physical Volumes (PV)
see the GParted Features. However it does not yet support operations on LVM Logical Volumes (LV).
As such we will need to use other tools, such as lvm from the command line to work with LVs.


but - as mentioned above this is a sophisticated one. a easier one is this.


Code:

/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)


this second one does not use LVM and is easier to create ;-)

TB0ne 04-17-2016 11:09 AM

Quote:

Originally Posted by sayhello_to_the_world (Post 5532475)
hello dear Beachoy,
many thanks for the hints - great to hear from you. will read through it all.

I seriously doubt that, since you've not done so in the past with what you've been given.
Quote:

well i can do some thing like this.. example one - a bit sophisticated one:
Code:

~> lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 156M 0 part /boot/efi
├─sda2 8:2 0 400M 0 part /boot
└─sda3 8:3 0 465,2G 0 part
└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
├─system-swap 254:1 0 2G 0 lvm [SWAP]
├─system-root 254:2 0 40G 0 lvm /
└─system-home 254:3 0 423,2G 0 lvm /home

this i cannot be created with gparted
Code:

└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
├─system-swap 254:1 0 2G 0 lvm [SWAP]
├─system-root 254:2 0 40G 0 lvm /
└─system-home 254:3 0 423,2G 0 lvm /hom

but this line looks interesting. ....
Code:

└─cr_ata-ST500LT012-xxx_xxx-part3 254:0 0 465,2G 0 crypt
unfortunatley: Currently GParted supports operations such as creating, resizing, and deleting LVM Physical Volumes (PV) see the GParted Features. However it does not yet support operations on LVM Logical Volumes (LV). As such we will need to use other tools, such as lvm from the command line to work with LVs. but - as mentioned above this is a sophisticated one. a easier one is this.
Code:

/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)

this second one does not use LVM and is easier to create ;-)
..which is frighteningly similar to advice you've been given over the past three years, and contained in some of your previous threads, as well as in links you've been handed.

sayhello_to_the_world 04-17-2016 11:54 AM

the question of the day is ...


what to do with the old EFI partition on the Notebook -can this be wiped or not...

Code:

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
Passwort:
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 #


well the easier thing is to run this partition-sheme


Code:

/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:

Device            Start          End  Sectors  Size Type
/dev/sda1          2048  1050623  1048576  512M EFI System
/dev/sda2        1050624  84951039  83900416        40G Microsoft basic data


TB0ne 04-17-2016 12:09 PM

Quote:

Originally Posted by sayhello_to_the_world (Post 5532511)
the question of the day is ...what to do with the old EFI partition on the Notebook -can this be wiped or not...

Did you not understand the answer, the last few times you've been handed it? The VERY FIRST HIT in Google for "can you delete efi system partition when installing Linux" is:
http://askubuntu.com/questions/68214...ll-only-ubuntu

...a DETAILED ANSWER, that tells you much of what you've been told over the past three years. Again, as with many of your previous threads, try to do some research of your own.
Quote:

well the easier thing is to run this partition-sheme
Code:

/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
Right...again, you've been told this numerous times over the past three years...when you've asked many OTHER questions about "what is a good way to partition things???" Is there some part of all of the previous answers you've been given, that you've had problems understanding?

Also, you've said you're going to "come back and update your findings" or "post your solutions"...a good sample list is here:
http://www.linuxquestions.org/questi...4/#post5500086

So...going to do what you said you were going to?

sayhello_to_the_world 04-17-2016 06:15 PM

hello dear TBone

many thanks for the hints:

this one is very good: http://askubuntu.com/questions/68214...ll-only-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. –


many thanks - this is very helpful!

TB0ne 04-18-2016 07:32 AM

Quote:

Originally Posted by sayhello_to_the_world (Post 5532622)
hello dear TBone
many thanks for the hints:
this one is very good: http://askubuntu.com/questions/68214...ll-only-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. –

many thanks - this is very helpful!

And again:
  • WHY could you not do this research on your own?
  • WHY did you lie and say you were a 'newbie' about partitioning, when you've been asking about it for THREE YEARS?
  • WHY can you not read, understand, and follow the advice you've been given many times before, or even look back at your old threads?
  • And WHEN are you going to answer all your other threads where you said you would "come back and post my findings"????
You post like this frequently...without even reading documentation or trying to research things, then lie in your posts. Stop doing it.

hazel 04-18-2016 08:28 AM

We once had someone called sayhello on Linux Forums. He made such a nuisance of himself that he ended up being blacklisted. I wonder if this is the same guy.

TB0ne 04-18-2016 09:04 AM

Quote:

Originally Posted by hazel (Post 5532826)
We once had someone called sayhello on Linux Forums. He made such a nuisance of himself that he ended up being blacklisted. I wonder if this is the same guy.

It is absolutely the same poster.


All times are GMT -5. The time now is 04:07 AM.