Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Parts of / on different drive
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
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 157

PostPosted: Sun May 01, 2016 9:53 pm    Post subject: Parts of / on different drive Reply with quote

Hi,
I have gentoo installed on SSD and I had put some parts (/tmp, /usr/portage/) of system to HDD to save writes. I also want to keep all these parts on single partition to save headache in estimating correct partition sizes for each mount point. What is recommended approach in such case, using symlinks or mount -o bind? I am currently using symlinks and already gettings some CONFIG_PROTECT messages from portage, also this probably broke rlpkg utility. On the other hand bind will pollute already cramped mount output. I want to keep it as seamless as possible. Are there any performance considerations? Thanks.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sun May 01, 2016 9:58 pm    Post subject: Reply with quote

You can set $PORTAGE_TMPDIR to wherever you want to. And /tmp into tmpfs in RAM. I use portage on NFS for all boxes, is that an option for you?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3095
Location: Illinois, USA

PostPosted: Sun May 01, 2016 10:11 pm    Post subject: Reply with quote

If the HDD is on the same computer, just make an entry in fstab;

example:
Code:
/dev/sda1       /boot            ext2           noatime         1 2
/dev/sda3       /                ext4           noatime         0 1
/dev/sda2       none             swap           sw              0 0
/dev/sdb1       /video           jfs            nofail,noatime  0 1
/dev/sdc2       /video/video2    ext4           nofail,noatime  0 1
tmpfs           /var/tmp/portage tmpfs    nr_inodes=1M,size=12G 0 0


I have video drives mounted with special names, but I could as well have mounted say /usr/portage on /dev/sb1 or sdc2

I've been thinking of making the same change.

If it's on a separate computer, you'll have to mount with cifs. I've been thinking of that, too, but don't have the details worked out.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2575

PostPosted: Sun May 01, 2016 10:23 pm    Post subject: Re: Parts of / on different drive Reply with quote

krotuss wrote:
I also want to keep all these parts on single partition to save headache in estimating correct partition sizes for each mount point.
That is basically what lvm was designed for. Create the partition and expand as needed.

Also, I wouldn't worry too much. Estimating the size your partition will need is very easy. Just see how big they are on your current machine and add a few Gib extra. I've been rolling that way for about 2 years with my current computer without issue and my previous computer served its entire life that way.

I would just mount /tmp and /var/temp in ram. By definition the contents are temporary anyway and if you have 8-16 Gib of ram then you have more than enough to spare.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
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