Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
*nix partitioning and filesystem layouts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Thu Sep 07, 2017 8:53 pm    Post subject: *nix partitioning and filesystem layouts Reply with quote

What's your poison?

I've gone back and forth on dividing stuff up for security vs. the convenience of having fewer. I've used LVM, and I've quit using LVM. Solaris 10 did away with separate partitions (as a preference) due to ZFS.

My last Frankenstein creation was a single extended partition with the 6 OS partitions in that. /, /usr, /var, /tmp and /home/data (a place to collect too much unsorted cruft).

For filesystem wonders, I moved /usr/portage to /var/portage so I could better reduce the chance of filling /usr due to portage/distfiles and packages.

And due to unexpectedly having stuff end up in /opt, I used rbind to mount /opt to /var/opt (/var had the space).

And now I'm thinking of what I should do next. I may go the route of simplicity, but that goes against my nature :D. Using LVM to extend stuff later is nice.

And I'm thinking of moving /usr/src to somewhere under /var.
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 684
Location: The Holy city of Honolulu

PostPosted: Thu Sep 07, 2017 9:06 pm    Post subject: Reply with quote

The only partitioning I really use is separating /boot, /home & swap. I tend to keep my personal crap away from the system drive, so I tend to put /home on a different hard drive... which is then filled with media.
_________________
People Of Love

Kindness Evokes Kindness

Peace Emits Positive Energy
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5041
Location: Removed by Neddy

PostPosted: Thu Sep 07, 2017 9:07 pm    Post subject: Reply with quote

Well.. I have a 1TB M.2 drive so all I have is / and efi
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 413
Location: NRW, Germany

PostPosted: Thu Sep 07, 2017 9:20 pm    Post subject: Reply with quote

Muso wrote:
The only partitioning I really use is separating /boot, /home & swap. I tend to keep my personal crap away from the system drive, so I tend to put /home on a different hard drive... which is then filled with media.

Same.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Thu Sep 07, 2017 11:18 pm    Post subject: Reply with quote

Naib wrote:
Well.. I have a 1TB M.2 drive so all I have is / and efi
Is that because it is an SSD?
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Thu Sep 07, 2017 11:21 pm    Post subject: Reply with quote

Dr.Willy wrote:
Muso wrote:
The only partitioning I really use is separating /boot, /home & swap. I tend to keep my personal crap away from the system drive, so I tend to put /home on a different hard drive... which is then filled with media.

Same.
At least until I'm done migrating, I think I'm going to try the same, or at least similar.
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1604
Location: U.S.A.

PostPosted: Fri Sep 08, 2017 12:37 am    Post subject: Reply with quote

I have a 2 TiB M.2, in my head. Home dir on iSCSI target all up your Mom's fallopian tubes.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5041
Location: Removed by Neddy

PostPosted: Fri Sep 08, 2017 12:40 am    Post subject: Reply with quote

pjp wrote:
Naib wrote:
Well.. I have a 1TB M.2 drive so all I have is / and efi
Is that because it is an SSD?
not because it is SSD, just it is large enough to not worry about partitions. its a desktop machine thus a remote,shared /usr is moot. I did have /home on its own partition and then on its own drive BUT that drive failed last month and I recovered all data from my weekly backups... at that point I just didn't see the benefit in all the partitions

I might convert to btrfs and make use of snapshots though
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1604
Location: U.S.A.

PostPosted: Fri Sep 08, 2017 12:49 am    Post subject: Reply with quote

How many pcie lanes have you on that, two? Four? Avec NVMe? Or is it a lowly SATA device?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Fri Sep 08, 2017 3:31 am    Post subject: Reply with quote

Naib wrote:
pjp wrote:
Naib wrote:
Well.. I have a 1TB M.2 drive so all I have is / and efi
Is that because it is an SSD?
not because it is SSD, just it is large enough to not worry about partitions. its a desktop machine thus a remote,shared /usr is moot. I did have /home on its own partition and then on its own drive BUT that drive failed last month and I recovered all data from my weekly backups... at that point I just didn't see the benefit in all the partitions

I might convert to btrfs and make use of snapshots though
Good to know. I thought maybe it had to do with wear leveling. You may want to check out or keep an eye on bcachefs. His Patreon page has a bit more presentable info. I may test it soonish.
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1375
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Fri Sep 08, 2017 4:28 am    Post subject: Reply with quote

Dr.Willy wrote:
Muso wrote:
The only partitioning I really use is separating /boot, /home & swap. I tend to keep my personal crap away from the system drive, so I tend to put /home on a different hard drive... which is then filled with media.

Same.


++

For personal use that is.

At work it depends largely on the use of the device. I've done crap at work I never would have thought "sane" otherwise, but in some cases other things make more sense.
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5277

PostPosted: Sun Sep 10, 2017 12:45 am    Post subject: Reply with quote

Prior to switching to zfs myself, I had something like... (in no specific order)

Code:
/boot
/
/usr
/usr/portage
/usr/portage/distfiles
/var
/var/lib/random-app-i-felt-like-separating
/var/log
/var/tmp
/tmp
/opt
/home
swap


Honestly, just switch to zfs. :lol:


Last edited by bunder on Sun Sep 10, 2017 1:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1604
Location: U.S.A.

PostPosted: Sun Sep 10, 2017 1:02 am    Post subject: Reply with quote

Grownups use LVM.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5277

PostPosted: Sun Sep 10, 2017 1:17 am    Post subject: Reply with quote

Bones McCracker wrote:
Grownups use LVM.


Partitioning is for chumps. I used to hate setting up a mdadm array only to figure out I made /usr or /var too small, or that /usr/portage needs more inodes. Sometimes you don't even realize these things until you've been running the system for a year. Pooled storage is the future. 8)
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 684
Location: The Holy city of Honolulu

PostPosted: Sun Sep 10, 2017 1:23 am    Post subject: Reply with quote

Bones McCracker wrote:
Grownups use LVM.


Only to encrypt partitions.
_________________
People Of Love

Kindness Evokes Kindness

Peace Emits Positive Energy
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Sun Sep 10, 2017 2:49 am    Post subject: Reply with quote

bunder wrote:
Prior to switching to zfs myself, I had something like... (in no specific order)

Code:
/boot
/
/usr
/usr/portage
/usr/portage/distfiles
/var
/var/lib/random-app-i-felt-like-separating
/var/log
/var/tmp
/tmp
/opt
/home
swap


Honestly, just switch to zfs. :lol:
That's quite a bit of separation. I miss ZFS. I haven't tried it on Linux mainly because I don't want to have to maintain patches. Plus I've only considered it a viable option with Linux since a short time prior to the creation of OpenZFS.

For testing, I'm going do more reading on bcachefs to see what it likes/needs for hardware. If it isn't too much, then I'll buy a small SSD and reuse an existing HDD. Depends mostly on RAM requirements. I've only got 4GB in that box, and I'm guessing it wants more.
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16624

PostPosted: Sun Sep 10, 2017 2:50 am    Post subject: Reply with quote

Bones McCracker wrote:
Grownups use LVM.
LVM? Lol. Don't be such a square. :P

Code:
$ sudo /sbin/lvm pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sdb1       lvm2 ---  931.51g 931.51g
  /dev/sdc1       lvm2 ---  931.51g 931.51g
  /dev/sdd1       lvm2 ---  931.51g 931.51g
(Apparently I need to reboot for it to recognize sde.)
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1604
Location: U.S.A.

PostPosted: Sun Sep 10, 2017 9:00 pm    Post subject: Reply with quote

bunder wrote:
Bones McCracker wrote:
Grownups use LVM.


Partitioning is for chumps. I used to hate setting up a mdadm array only to figure out I made /usr or /var too small, or that /usr/portage needs more inodes. Sometimes you don't even realize these things until you've been running the system for a year. Pooled storage is the future. 8)

Who said anything about partitioning. If you clowns think LVM is about partitioning, then you are dinosaur clowns. LVM is about thin provisioning, snapshots, and logical disk management. Is it possible you don't know what you don't know?
Back to top
View user's profile Send private message
wildhorse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2006
Posts: 149
Location: Estados Unidos De América

PostPosted: Sun Sep 10, 2017 9:11 pm    Post subject: Reply with quote

I use one file system on a USB stick for /boot plus emergency system. I also keep a copy of that USB stick. ;-)
One small disk is reserved for the page file (often falsely called "swap").
One disk/file system for the operating system.
One big RAID of /home.
No partitions, except on the USB stick.
And all encrypted with 2048-bit AES, one key per file system.
Plus NFS mounted file systems, including one with more than 100 TB of disk space.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5277

PostPosted: Sun Sep 10, 2017 9:17 pm    Post subject: Reply with quote

Bones McCracker wrote:
If you clowns


I choose not to answer your question on the basis that you are just trying to troll people into eating a ban. :?
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1604
Location: U.S.A.

PostPosted: Sun Sep 10, 2017 9:36 pm    Post subject: Reply with quote

ZFS is Betamax. Don't be that guy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall 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