Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need advice on fstab for a new laptop with hdd and ssd
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
logical_guy
Apprentice
Apprentice


Joined: 18 Sep 2007
Posts: 268

PostPosted: Thu Sep 05, 2019 7:13 am    Post subject: need advice on fstab for a new laptop with hdd and ssd Reply with quote

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
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Thu Sep 05, 2019 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Prof. Frink
Apprentice
Apprentice


Joined: 07 Jan 2017
Posts: 176

PostPosted: Thu Sep 05, 2019 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
sdauth
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 134
Location: Frankreich

PostPosted: Thu Sep 05, 2019 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 129
Location: Germany

PostPosted: Thu Sep 05, 2019 3:23 pm    Post subject: Re: need advice on fstab for a new laptop with hdd and ssd Reply with quote

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
View user's profile Send private message
logical_guy
Apprentice
Apprentice


Joined: 18 Sep 2007
Posts: 268

PostPosted: Thu Sep 05, 2019 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15294

PostPosted: Fri Sep 06, 2019 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 129
Location: Germany

PostPosted: Fri Sep 06, 2019 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
logical_guy
Apprentice
Apprentice


Joined: 18 Sep 2007
Posts: 268

PostPosted: Sun Sep 08, 2019 8:02 am    Post subject: Reply with quote

Thanks all for your replies.

I think I'll skip the SSDs for now and get extra RAM for the TMPFS.
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