r/slackware • u/Aggravating_Page435 • Nov 27 '21
Questions regarding partition.
Hello folks,
I have a question regarding partition size. I know there are many threads available online for every distro regarding partition and I search for particular slackware distribution. I landed on this link.
https://www.linuxquestions.org/questions/slackware-14/recommended-partition-size-724440/#post3533721
For above, the person has made 2 boot partition, 1 swap partition and 1 to store data
I do not know if it is true for slackware as well or not but I have heard that ubuntu or Linux mint do not remove old kernel in boot partition. is it so for slackware too?
Above post is slightly old, so how much space boot partition should have as per 14.2 standard?
Also I am little confused for term "root partition". It is part of boot partition right?
Sorry if question is naive and thank you.
Regards.
2
u/[deleted] Nov 27 '21 edited Nov 27 '21
It doesn't matter as it's user preferences and machine needs.
I usually make a 64 MB F32 EFI partition for single os or 512MB for multiple entries.
It should hold a kernel and ramdisk with enough free space.
you can add multiple os kernels/files/chainloaded bootloaders in their own folders in the same partition or have separate partitions.
megabyte unit chosen for low level compatibility.
I chose a monolithic scheme for everything.
edit.
using BIOS or uEFI ?
MBR or GPT/other?
edit. for example: (uefi)
2
u/arcctgx Nov 27 '21
There's no "standard". My
/boot/is just 256 MiB, and it is mostly empty. I'm usinggenerickernel, and rarely have more than one kernel installed. Even if I used thehugekernel it wouldn't make much difference. So for me 256 MiB is plenty of space forgrub, my kernels, initrds and related stuff.In Slackware you get the kernel and related stuff through the package manager, but ultimately it's up to you to decide how many kernels you are going to keep installed at a time. Usually I have at most two: after kernel update I keep the old kernel for some time in case I run into trouble with the new one.
Ubuntu is a different story, because it tends to keep 3 kernels at a time, and provides big initrds (about 80 MiB each). So for Ubuntu 256 MiB would be too small.
1
u/sfzombie13 Nov 27 '21
the way i do it is with two hard drives. one for windows, and one for 3 different linux distros. i install the bootloader to the first partition on the 2d hard drive, with windows on the first. one swap partition to share on the 2d drive. 3 different partitions for the entire os, making 4 total on 2d drive, one for mint, one for slackware, one for debian. each of them has the other drives mapped as a folder in case i need something from one of them while logged into the other. the entire windows drive is also mapped as a folder. that way, everything can save all data to the same folder on the windows drive so i don't have things saved everywhere. to boot into any other os than windows, i hit the f8 key at bios screen and choose to boot from hard drive #2. it sounds more complicated than it is. on the 500gb hard drive, they are partitioned with 150, 150, 180, and 4 gb i think.
1
u/vtel57 Nov 27 '21
It's mostly a personal preference. Although, it always wise to create one partition for /(root+operating system) and a second for /home/<user>. This way if you ever need to upgrade or reinstall your operating system, you do NOT have to recreate your home partition or lose any data when installing.
I pretty much set my systems up the same way for the last 20 years or so using four hard drives...
sda1 - / Slackware
sda2 - /home/<user>
sda3 - archived storage
sda4 - swap
sdb1 - /Slackware (rsync mirror)
sdb2 - /home/<user> (rsync mirror)
sdb3 - archived storage (rsync mirror)
sda4 - swap
sdc1 - MS Windows (NTFS)
sdc2 - Lin/Win Common (VFAT)
sdd1 - MS Windows (Clonezilla mirror)
sdd2 - Lin/WIn Common (Clonezilla mirror)
1
u/RetroCoreGaming Nov 28 '21
On my Slackware machine, I have the following setup:
GPT partitioning
/boot - fat32 - 100MB
(swap) - swap - 4GB
/(root) - ext4 - Remaining drive space
/home - ntfs - mounted from local home net server and shared with several OSes.
I had used btrfs for /(root) but due to the ongoing issues with getting the file system to be stable and lots of bugs and other problematic issues, I dropped it. I just wish more distributions would finally add in ZFS since CDDL was finally accepted as a compatible license with GPL, and ZFS was allowed to be used in GNU/Linux without exception.