Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto move portage tree to another location correctly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
modnaruved
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 158

PostPosted: Sun Jan 27, 2013 10:49 am    Post subject: howto move portage tree to another location correctly Reply with quote

hi

Im sorry for this simple question but I cant solve this without additional information.
Once upon a time I did that, but now it is impossible to remember these steps

For speeding up gentoo I want to move portage tree onto another partition with ext2 fs and 2048 blocks. How can I do this correctly without damage portage system and keep profiles links correctly?

Just copy portage and change portage dir variables in make.conf?
Cant access to old howto about this tips.

I would be very grateful for your advice and recommendations.

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jan 27, 2013 11:14 am    Post subject: Reply with quote

devurandom,

Thats it. You can see your make.conf varables, even if they are implicit, in emerge --info

Be careful with filesystems using block sizes less than 4k on modern HDD that have 4k physical sectors.
It would be a very bad thing. If your HDD really has 512b physical sectors, you can use ext2 and 1k blocks.

If its just for the tree, make 1 inode per block.

You can also use ext4 without a journal in the same way.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jan 27, 2013 11:22 am    Post subject: Reply with quote

i just migrated /usr/portage/distfiles to $HOME/distfiles and symlinked back

i also migrated the tmp build directory of portage in a similar way and simlinked back.

im glad i didnt need to break out absurd voodoo like mount --bind... i did mine over space constraints on a 20 gig root partition, my $HOME partition is huge compared to that


Last edited by 666threesixes666 on Sun Jan 27, 2013 8:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Sun Jan 27, 2013 11:36 am    Post subject: Reply with quote

666threesixes666 wrote:
i just migrated /etc/portage/distfiles to $HOME/distfiles and symlinked back
why symlink, just set DISTDIR to something appropriate.
Back to top
View user's profile Send private message
modnaruved
Apprentice
Apprentice


Joined: 21 Mar 2011
Posts: 158

PostPosted: Sun Jan 27, 2013 11:36 am    Post subject: Reply with quote

NeddySeagoon wrote:
devurandom,

Thats it. You can see your make.conf varables, even if they are implicit, in emerge --info

Be careful with filesystems using block sizes less than 4k on modern HDD that have 4k physical sectors.
It would be a very bad thing. If your HDD really has 512b physical sectors, you can use ext2 and 1k blocks.

If its just for the tree, make 1 inode per block.

You can also use ext4 without a journal in the same way.


Thanks for your warning. My hdd is generic laptop device. I will try ext4 without journalling, but before I will investigate my hdd with (I guess) something like gprated or kparted. Now my portage tree in reiserfs at rootfs fs, but this seems very fragmented or slow when run emerge tasks. I believe that moving help for emerge flying.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Jan 27, 2013 11:57 am    Post subject: Reply with quote

I would recommend to use to squashfs+aufs/overlayfs for portage: Concerning speed and space requirements this is much superior over any other format.
The disadvantage is that neither aufs nor overlayfs is in kernel yet (and perhaps will never be).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jan 27, 2013 8:10 pm    Post subject: Reply with quote

666threesixes666,

/etc/portage/distfiles ???

If you have that directory, your system may work but its very broken.
If you really mean /usr/portage/distfiles, its worth fixing your post, so you don't leave misleading information behind for others to follow.

Its likely that /usr/portage will move to /var soon. It should never have been in /usr anyway.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jan 27, 2013 8:16 pm    Post subject: Reply with quote

NeddySeagoon wrote:
666threesixes666,

/etc/portage/distfiles ???

If you have that directory, your system may work but its very broken.
If you really mean /usr/portage/distfiles, its worth fixing your post, so you don't leave misleading information behind for others to follow.

Its likely that /usr/portage will move to /var soon. It should never have been in /usr anyway.


your right sorry it was /usr/portage/distfiles i mved it to $HOME/distfiles and linked /usr/portage/distfiles to point to $HOME/distfiles (etc was from writing unitfiles for systemd....)

to the original poster, id want the /bin to move fast, and not concern myself with the sources (and emerge) speed, id also try to prevent trashing on the solid state drive. id try to keep it to bins and libs on the solid state drive, and keep the temp stuff like logs and pids on a rotating drive.....


Last edited by 666threesixes666 on Sun Jan 27, 2013 8:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jan 27, 2013 8:21 pm    Post subject: Reply with quote

666threesixes666,

You do not need symlinks. You can set make.conf to point to portage to its bits and pieces anywhere on your system. ... even into /etc :)
/usr/portage/distfiles is the default for distfiles if you don't set anything else.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sun Jan 27, 2013 8:25 pm    Post subject: Reply with quote

i like to maintain the original system structure. (for the most part) i can still point to horrible accidents in directories as if the sources are still located in /usr/portage/distfiles...... (if need be) and /var makes WAY more sense, so users like this solid state drive user can just mount /var to a rotating drive.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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