Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Feedback on partitioning idea...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Tue Feb 10, 2015 8:29 pm    Post subject: Feedback on partitioning idea... Reply with quote

I am trying to keep directories which see heavy usage separate from my directories which see mostly read access or no access. Things like /var and /tmp I like to keep on their own partition. My prior setup was considered too much so after using Gentoo for a few months I thought about the one below and would like your feedback.

  • BIOS 7MiB
  • /boot 120MiB
  • /var 4GiB or 8GiB
  • /var/tmp/portage 8GiB or 10GiB
  • /var/log 1GiB
  • / 8GiB or 16GiB
  • /usr/portage 1GiB or 4GiB
  • /usr/portage/distfiles 6GiB or 8GiB
  • /usr/src 2GiB or 4GiB
  • /tmp 1GiB to 4GiB based on usage of system
  • SWAP <based on RAM capacity>
  • /home <rest of disk>

If this was a system where I was building packages to install on other machines I'd also have a /usr/portage/packages partition, but this is for my laptop. I show two sizes. The first is for old disks with 512b sectors where I can use smaller block sizes, the second is for modern 4k disks. Thank you for your feedback!
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Feb 10, 2015 8:43 pm    Post subject: Reply with quote

The_Great_Sephiroth ...

you might want to think about using LVM (sys-fs/lvm2) as then you can remove, add, resize these as (of if) your needs change. An added benefit is that you can stuff these vl's (except for /boot) into a luks container and your laptop is basically inpenetrable should you loose it, or it gets stolen.

best ... khay
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Tue Feb 10, 2015 8:52 pm    Post subject: Reply with quote

I usually only use LVM in RAID or virtualized environments, but the container idea has peaked my interest. Could you link me some information on this so I can study it? Also, the needs will not change. I would be deploying images of the system to identical ones in a corporate environment. Home use needs would rarely change either.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Feb 10, 2015 9:10 pm    Post subject: Reply with quote

The_Great_Sephiroth wrote:
I usually only use LVM in RAID or virtualized environments, but the container idea has peaked my interest. Could you link me some information on this so I can study it?

TGS ... well, I'm not sure how atypical my use case is, but I didn't follow a guide, just did my research before hand, figured out what was needed, backed up, wrote (pseudo) random data to the disk, made my luks container and lv's, and copied the install back. I could probably write something more detailed if you needed but most of that information is out there.

That said, the wiki page on LVM and dm-crypt are fairly extensive and should cover most things. You will also need a initramfs that supports cryptsetup and lvm2 (I use, and can recommend, better-initramfs). Ask if you have any specific questions.

The_Great_Sephiroth wrote:
Also, the needs will not change. I would be deploying images of the system to identical ones in a corporate environment. Home use needs would rarely change either.

I see ... what I mean is say you want, or need, to increase the size of /usr/portage with standard partitioning you have no choice but the reformat the disk (or switch partitions around) with lvm that isn't a problem. Anyhow, it may not be suitable as I don't know what type of end users you're targeting, but its perhaps something to think about.

best ... khay
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Tue Feb 10, 2015 9:23 pm    Post subject: Reply with quote

Some time ago I did use LVM, but discovered that we have not once changed a partition size, nor had the need to. This is why i don't bother with it anymore. Once we deploy a system the only reason we mess with partitions afterwards is because the original disk died or the system died and we needed to recover data.

I will look into what you linked combined with what you shared. It sounds like a good idea for systems which contain sensitive data and I may implement it on a trial basis. Does this affect speed in any way?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Feb 10, 2015 10:34 pm    Post subject: Reply with quote

The_Great_Sephiroth wrote:
Does this affect speed in any way?

TGS ... yes, but not so as you'd notice, it also depends somewhat on the choice of encryption, and hardware (ie, if AES-NI is supported or not).

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum