What is a good way to manually partition my hard disk for Endeavour OS

I have partitioned my 500GB hard disk.
Btw I also have a 2TB hard disk, but ignore it.

I want to know the partitions to create and its sizes, filesystems to use, any useful info.

lsblk give the following:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 1K 0 part
├─sda3 8:3 0 365.8G 0 part /mnt/500GB
├─sda5 8:5 0 512M 0 part /boot
├─sda6 8:6 0 12G 0 part [SWAP]
└─sda7 8:7 0 87.5G 0 part /

sudo fdisk -l

Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5000AAKX-2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb9248beb

Device Boot Start End Sectors Size Id Type
/dev/sda1 2046 209717247 209715202 100G 5 Extended
/dev/sda3 209717248 976771071 767053824 365.8G 7 HPFS/NTFS/exFAT
/dev/sda5 * 4094 1052671 1048578 512M 83 Linux
/dev/sda6 1054720 26220543 25165824 12G 82 Linux swap / Solaris
/dev/sda7 26222592 209717247 183494656 87.5G 83 Linux

Partition table entries are not in disk order.

For most people this is a personal choice.
What file system you want to use? What partition table?
Do you want a swap partition or no? Do you want a seperate home partition?
Are you multibooting? etc.

You have to ask yourself these questions and try what works best for you

Which filesystem do you recommend?
Which partition table do you recommend?
Is swap important for Endeavour OS
What are the advantages of having a separate home partition?
I’m not multibooting.

I prefer btrfs. I love its ability to take snapshots and restore

GPT

Depends on your RAM and whether you want to use hibernate

I don’t know I use btrfs subvolumes so it doesn’t matter.

My preferred method of partitioning is the default :enos: btrfs install.
Then use @dalto 's btrfs assistant and snapper and snap-pac to setup snapshots for both root and home subvolumes

3 Likes

If you have these kind of questions, I suggest you go the simplest, easiest way.

File format: ext4 (suggested btrsf is better has great recovery tools, but is not for beginners that are just starting. As an example, I installed linux some 30-40 times, different flavors, but as a beginner I’m still shying away from this new for me thing, so you probably should to)

The simplest (for install) is, if you have home on the same partition as OS. Many, me included prefer separate home, so if something goes wrong you just overwrite, (install over) OS and personal files plus settings stays intact. You could always try both and see what you like better. If you have home on separate partition, then of course you need to have available free partition to have home on it.

This is input from a beginner. @sradjoker is a pro. You would probably like to start with beginner stuff is my guess :wink:

The rest I second what @sradjoker wrote.

I usually put ISO on usb stick, boot from it and first thing I do is run Gparted and make partitions there. It is too much to write all steps, you will need to check youtube video or two. But steps are
1 - create partition table (GPT), then create partitions. (Btw GPT alows you to have more than 4 partitions per disk) To create partition table, look in menus, for creating partitions, you just right click with mouse on empty space if I remember correctly, or there is a button, “create” or “create partition” or button with big ‘+’ in it. Like I said, I can’t recall specifics.

This is my setup, my steps, per memory, 1st partition is 500mb as fat32, flagged as EFI and Boot (per memory, didn’t go through install process for probably a year, would need to see exact screen, watch some gparted yt videos)

Next I create OS system partition, usually some 35-40Gb. More apps you plan to install, bigger the size but 40GB should probably be ok. Or go higher, 50GB.

Then I create home partition - this is where all your data will be, so make it big enough. Usually bigger that OS system partition. You know how much stuff you have.

(What I do, but don’t recommend to you at first time is, I create another DATA partition and all documents, videos, pictures, etc goes here, so this is my biggest partition and home is actually pretty small in my case)

Then at the end I create small 2BG swap file. Most of the time is not needed any more unless you are running on low memory, but some older application expect swap and is just safer, better, to have a little bit available.

Oh yes, for hibernate you need swap partition size a little bit bigger than your ram. I use sleep, never hibernate. Works great for me.

p.s.
I don’t often log in, all of my interests online, I typically read incognito, (old school) so on any potential questions, someone else will have to answer.

Good luck and welcome to Linux world

3 Likes

Are you going to dual boot with Windows? If so, I would suggest just letting the installer auto-partition and install EndeavourOS into one big root partition and use a swap file. I also like ext4 over any other option for its simplicity and durability. Since you are using an extended partition, I assume you are using legacy bios and an MBR partition layout. Is this assumption correct?

Also, what is the /dev/sda5 doing at 512MB and type 83? Is this machine using legacy bios? Is the machine using UEFI? If using legacy bios, you do not need a /boot partition. For simplicity’s sake, I would not separate out /boot onto its own partition. If using UEFI, then the EFI system partition needs to be type EF00, a.k.a guid type C12A7328-F81F-11D2-BA4B-00A0C93EC93B. Type 83 is a Linux native partition and not suitable for an EFI system partition.

Another question: what is the purpose for your swap space? Are you intending to hibernate the machine? If so, I would size a swap partition at the amount of physical memory plus 2GB. So, if you had 8GB of ram, I would size the swap partition at 10GB. Otherwise, if you are not hibernating, a 2GB swap is a safe choice for most uses.

My personal preference for a partition layout is (using UEFI and GUID partition layout):
sda1 – 550MB EFI system partition, formatted FAT32, mounted at /boot/efi
sda2 – 2048MB Linux swap partition
sda3 – 20GB / partition, formatted ext4
sda4 – Remainder of the drive for /home, formatted ext4

If using legacy bios and MBR partition layout:
sda1 – 2048MB Swap partition
sda2 – 20GB / partition, formatted ext4
sda3 – Remainder of drive for /home, formatted ext4

This is my preference. Its not right or wrong. :slight_smile:

1 Like

If you don’t know, I’d suggest NOT using manual partitioning and to use the default ext4 option.

That’s up to you. There’s been a fair amount of discussion here and it’s covered very well in the Arch wiki.

It can make it easier to backup/reinstall later.

The reality is with your questions, you sound like you are very very new to Linux. I would strongly urge you to not manually partition yet. Use the defaults for now, do some homework. Figure out what you need, and then go from there. You’re just making your life super difficult initially.

3 Likes

For filesystem:

TLDR: ext4 if you want to set and forget, btrfs if you have time to take advantage of its features, ZFS if you are adventurous :wink:

3 Likes

Understanding question: Why so much for the boot/efi partition? When I install automatically, the installer always sets the size for it to only 300MB. Not that I care about a few MB, but would I have to manually increase my boot partition now because of this? I only have 2 kernels installed at any given time - no VM.

I got in the habit of using something above 512MB for the EFI system partition since in previous times the mkfs.fat utility would default to creating FAT16 partitions if the size was less than 512MB. That behavior seems to have changed and the new minimum for FAT32 is now 32MB. My old habits persist. :crazy_face:

1 Like

@Balder

According to the Arch wiki

Create the partition

The following two sections show how to create an EFI system partition (ESP).

Warning: The EFI system partition must be a physical partition in the main partition table of the disk, not under LVM or software RAID etc.

The partition size should provide adequate space for storing boot loaders and other files required for booting.

To prevent interoperability issues with other operating systems[1][2] it is recommend to make it at least 300 MiB. For early and/or buggy UEFI implementations the size of at least 512 MiB might be needed.[3] If none of these are relevant issues, the partition size can be as small as 2 MiB, in which case it could house nothing more than a boot loader.

1 Like

thanks @ricklinux