You are not logged in.

#1 2010-07-16 23:11:55

StrangeAttractor
Member
From: Prague, CZ
Registered: 2010-06-14
Posts: 54

How to group root subfolders among partitions?

After a cup of coffe, planning a new system, I've came to conclusion that it'd be logical to split the filesystem hierarchy into 3 partitions (to reserve free space for groups of them rather than for each one):

1. bin, sbin, lib, etc, root.
2. usr, opt
3. var, tmp, home

How do I best achieve this? The only idea came into my mind is putting opt inside usr and creating /opt as a symlink to /usr/opt, with home and tmp placed same way inside var. Is it a good idea or not?

BTW I use LVM2 for everything except /boot and I only use /home as a place for user-specific programs' settings files, all the data of mine (projects, downloads, etc) is stored on a separate partition.

Last edited by StrangeAttractor (2010-07-16 23:15:36)

Offline

#2 2010-07-17 00:14:35

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How to group root subfolders among partitions?

So / would be a union mount of the three partitions?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-07-17 02:22:39

StrangeAttractor
Member
From: Prague, CZ
Registered: 2010-06-14
Posts: 54

Re: How to group root subfolders among partitions?

fsckd wrote:

So / would be a union mount of the three partitions?

Yes, if it is called so. Now, it is of 2 (/home and everything else).

Offline

#4 2010-07-17 04:02:38

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How to group root subfolders among partitions?

plan 9 union mounts!

aufs might be able to pull this off... it certainly won't be pretty... Keep in mind that you need a bunch of directories to be available immediately on mounting /, so they all need to be on the same partition. I don't know all of them offhand (sbin, bin, lib, etc, root, ...), but it's likely somewhere in the Beginner's Guide or the Official Install Guide on the wiki.

Last edited by falconindy (2010-07-17 04:05:19)

Offline

#5 2010-07-17 04:36:23

StrangeAttractor
Member
From: Prague, CZ
Registered: 2010-06-14
Posts: 54

Re: How to group root subfolders among partitions?

falconindy wrote:

plan 9 union mounts!
aufs might be able to pull this off...

Why would I need all that? Why not keep it simple and just use the solution I've offered (some symlinks)?

Last edited by StrangeAttractor (2010-07-17 07:31:55)

Offline

#6 2010-07-17 05:23:14

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: How to group root subfolders among partitions?

Symlinks should work just fine, at least for /home I have used this approach in the past. I don't see a reason why it shouldn't work for the other directories.


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

Board footer

Powered by FluxBB