The officially official Devuan Forum!

You are not logged in.

#1 2021-04-10 08:48:52

MLEvD
Member
Registered: 2021-02-14
Posts: 88  

Partitioning schemes separate var and usr and boot 4 unfussy root?

How do you like to partition things? I like to have /var and /usr and /boot on separate partitions. This way, root only needs 600MB and only has 7,395ish files to check on boot. Am I being pointless? I certainly feels good this way.

Also, /opt is separate, for installing firefox and nuking whole partition after for privacy.

Last edited by MLEvD (2021-04-10 08:49:29)

Offline

#2 2021-04-10 09:29:09

Dutch_Master
Member
Registered: 2018-05-31
Posts: 188  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

I have /boot, / and /home on separate partitions, most of the time, for simplicity/speed/convenience. For servers, /usr and /var are also separate.

Offline

#3 2021-04-10 09:55:30

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,597  
Website

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

Single btrfs partition with separate subvolumes for the each distribution's  / & /home directories plus subvolumes for the (automated) daily snapshots and another one just for Steam. I was running four distributions from the same partition at one stage but I've trimmed it down to two now.

EDIT: and an EFI system partition but I don't leave that mounted at all (it's listed in /etc/fstab under /efi but it has the noauto option applied).

Last edited by Head_on_a_Stick (2021-04-10 09:58:25)


Black Lives Matter

Offline

#4 2021-04-10 11:54:32

dice
Member
Registered: 2020-11-22
Posts: 421  
Website

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

For devuan, just boot and root partitions. I have no issues with boot time, around 10 seconds to boot from startup with encrypted root.

The Openbsd machine is a bit different, it uses disklabel partitions, https://www.openbsd.org/faq/faq14.html


Do good things.  Share.  Be helpful.  Be decent.  Live large.
E.V.I.L = Electronic Virtual Intelligent Life

Offline

#5 2021-04-10 14:38:33

Geoff 42
Member
Registered: 2016-12-15
Posts: 388  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

I have a separate partition on my SSD for /boot with further partitions under LVM for / and /home.

Then on my HDD I have a partition for swap with further partitions under LVM for /var as well as my VMs which run under Xen.

The idea was to have the potentially rapidly changing stuff on the HDD, but boot quickly off the SSD. It seemed like a good idea at the time ;-)

Offline

#6 2021-04-13 12:39:32

Ogis1975
Member
Registered: 2017-04-21
Posts: 174  
Website

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

On a separate partitions / and /home i use old 1 TB hdd disk, which no longer has any operating systems (except Devuan)  smile


MyLiveMatter

Offline

#7 2021-04-13 23:43:34

GlennW
Member
Registered: 2019-07-18
Posts: 114  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

I get a little bit carried away, gradually...

Separate GPT partitions for

bios grub (1Mb)
/
swap
/tmp
/usr
/var
/usr/src
/home

Then I have all the archive partitionss attached to /home/.../local/

And 2 other linux distro hdd's (both beowulf atm).

List, list so nothings missed.

Last edited by GlennW (2021-04-13 23:43:55)

Offline

#8 2021-04-14 05:05:40

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,597  
Website

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

^ Shouldn't /tmp be mounted in RAM?

$ findmnt /tmp                                                            
TARGET SOURCE FSTYPE OPTIONS
/tmp   tmpfs  tmpfs  rw,nosuid,nodev,size=8048848k,nr_inodes=409600,inode64
$

I know systemd does that by default, not sure about sysvinit.


Black Lives Matter

Offline

#9 2021-04-14 08:50:51

GlennW
Member
Registered: 2019-07-18
Posts: 114  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

Head_on_a_Stick wrote:

^ Shouldn't /tmp be mounted in RAM?

$ findmnt /tmp                                                            
TARGET SOURCE FSTYPE OPTIONS
/tmp   tmpfs  tmpfs  rw,nosuid,nodev,size=8048848k,nr_inodes=409600,inode64
$

I know systemd does that by default, not sure about sysvinit.

That is probably a leftover from mandriva or mageia, systemd.

How can I test if it's being used or not, and , like frequency and size? Do you know?

I can't remember why I did that...

edit... it was probably part of setting up a proxied firewalled self server written by Ashton Mills, using Mandrake, but I got there a bit late and had to use Mandriva.

Last edited by GlennW (2021-04-14 09:02:09)

Offline

#10 2021-04-14 14:54:24

Geoff 42
Member
Registered: 2016-12-15
Posts: 388  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

To make /tmp a tmpfs you edit /etc/defaults/tmpfs and remove the '#' from

RAMTMP=yes

which defaults to "no"

Offline

#11 2021-04-14 22:31:02

GlennW
Member
Registered: 2019-07-18
Posts: 114  

Re: Partitioning schemes separate var and usr and boot 4 unfussy root?

Thank you Geoff 42. I'll try that for a while and see if my system needs it.

p.s.  The file is at /etc/default/tmpfs

Last edited by GlennW (2021-04-14 22:32:04)

Offline

Board footer