View previous topic :: View next topic |
Author |
Message |
logical_guy Apprentice
Joined: 18 Sep 2007 Posts: 268
|
Posted: Thu Sep 05, 2019 7:13 am Post subject: need advice on fstab for a new laptop with hdd and ssd |
|
|
Hi,
I've a new laptop with a hdd. I want to add an ssd to basically speed up boot and compile time.
So I need some advice on how to partition the disks.
I'm thinking I want the boot partition and swap on the sad.
How do I ensure all portage and compiling related activities are on the ssd?
Any other advice on a decent partitioning strategy that you've set up?
Thanks. |
|
Back to top |
|
|
tuggbuss Apprentice
Joined: 20 Mar 2017 Posts: 222
|
Posted: Thu Sep 05, 2019 9:07 am Post subject: |
|
|
I use
Code: | /boot 512MB
swap 32 GB
/ 100 GB
/home (rest of disk) |
Where /home preferably is on a different drive. |
|
Back to top |
|
|
Prof. Frink Apprentice
Joined: 07 Jan 2017 Posts: 176
|
Posted: Thu Sep 05, 2019 9:16 am Post subject: |
|
|
tuggbuss wrote: | I use
Code: | /boot 512MB
swap 32 GB
/ 100 GB
/home (rest of disk) |
Where /home preferably is on a different drive. |
I use kind of this too, where /home is a LUKS-encrypted HDD-device. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 572 Location: Ásgarðr
|
Posted: Thu Sep 05, 2019 9:37 am Post subject: |
|
|
I put everything on the SSD :
/boot
/
/swap
/home
Then I symlink ~/Music & ~/Videos (not needed to store them on the SSD) to /mnt/DATA (a RAID array) |
|
Back to top |
|
|
xanderal Tux's lil' helper
Joined: 06 Mar 2019 Posts: 133 Location: Germany
|
Posted: Thu Sep 05, 2019 3:23 pm Post subject: Re: need advice on fstab for a new laptop with hdd and ssd |
|
|
logical_guy wrote: | Hi,
I've a new laptop with a hdd. I want to add an ssd to basically speed up boot and compile time.
[...]
How do I ensure all portage and compiling related activities are on the ssd?
[...] |
I would recommend to not put the tmp build files during compilation onto the ssd and instead use ram if you have enough: https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
That way you reduce compile time even more and have less ssd wear.
In practice this looks something like (my fstab): Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
tmpfs /var/tmp/portage tmpfs size=13G,uid=portage,gid=portage,mode=775,noatime 0 0 |
|
|
Back to top |
|
|
logical_guy Apprentice
Joined: 18 Sep 2007 Posts: 268
|
Posted: Thu Sep 05, 2019 11:29 pm Post subject: |
|
|
tuggbuss wrote: | I use
Code: | /boot 512MB
swap 32 GB
/ 100 GB
/home (rest of disk) |
Where /home preferably is on a different drive. |
Looks like something I could use, thanks.
xanderal wrote: |
I would recommend to not put the tmp build files during compilation onto the ssd and instead use ram if you have enough: https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
That way you reduce compile time even more and have less ssd wear.
In practice this looks something like (my fstab): Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
tmpfs /var/tmp/portage tmpfs size=13G,uid=portage,gid=portage,mode=775,noatime 0 0 |
|
This is a brilliant idea, thanks!
Btw, I've read about people sharing boot and swap partitions across distros in a dual boot setup. Do you think it's a good idea? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Fri Sep 06, 2019 12:36 am Post subject: |
|
|
Sharing boot makes dual boot much simpler. Sharing swap is fine, if you don't use it to hibernate. If you hibernate, the hibernation image is written to swap, and then the swap area cannot be used as swap until you either resume or abandon the hibernation image. |
|
Back to top |
|
|
xanderal Tux's lil' helper
Joined: 06 Mar 2019 Posts: 133 Location: Germany
|
Posted: Fri Sep 06, 2019 3:46 am Post subject: |
|
|
logical_guy wrote: | Btw, I've read about people sharing boot and swap partitions across distros in a dual boot setup. Do you think it's a good idea? |
Hu wrote: | Sharing boot makes dual boot much simpler. Sharing swap is fine, if you don't use it to hibernate. If you hibernate, the hibernation image is written to swap, and then the swap area cannot be used as swap until you either resume or abandon the hibernation image. |
I'd like to add to that: In case you encrypt your disk it would be smart to encrypt swap as well (even smarter as one partition with lvm). In that case sharing swap across distros might get more difficult. If you don't encrypt, go ahead, sharing boot and swap makes sense. |
|
Back to top |
|
|
logical_guy Apprentice
Joined: 18 Sep 2007 Posts: 268
|
Posted: Sun Sep 08, 2019 8:02 am Post subject: |
|
|
Thanks all for your replies.
I think I'll skip the SSDs for now and get extra RAM for the TMPFS. |
|
Back to top |
|
|
|