Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving /usr to a different partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
foxcub
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2002
Posts: 131
Location: North Carolina

PostPosted: Sat Aug 24, 2002 1:45 pm    Post subject: Moving /usr to a different partition Reply with quote

Well, the subject pretty much speaks for itself, but here are a few more details. I used to run Mandrake 8.2, and tried Gentoo just to see what it is - gave it a tiny partition (maybe 4G) not planning to use it longer than a day or two. After installing it I immediately fell in love with it (my best regards/compliments to the developers), and never touched Mandrake again. The problem is that I didn't switch immediately and have now a lot of stuff on the tiny partition. I want to reformat my Mandrake's / partition (while keeping /home) and use it for Gentoo's /usr. I was wondering if I can do it in the following way: reformat it, mount it as something like /mnt/usr, then say mv /usr/* /mnt/usr (or whatever the appropriate command is), and then change fstab to mount that partition as /usr. Will everything be safe this way? Will any permissions, symbolic links, whatever else I can't think of be screwed up? And if that's the case, what's the best way to do what I wanna do?

Thanks a lot.

Dmitriy
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Sat Aug 24, 2002 2:54 pm    Post subject: Reply with quote

look at the articles section ....there are a couple writtin by daniel robbins about moving /home /var and /usr, there are others that will probably help fill in any other gaps too. i moved /home like a week ago using that howto , very simple and went smoothly.
Back to top
View user's profile Send private message
foxcub
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2002
Posts: 131
Location: North Carolina

PostPosted: Sat Aug 24, 2002 5:04 pm    Post subject: Reply with quote

Thanks a lot. I appreciate the help.

Dmitriy
Back to top
View user's profile Send private message
Beders
n00b
n00b


Joined: 23 Jul 2002
Posts: 4

PostPosted: Sun Aug 25, 2002 1:22 pm    Post subject: Careful with /var and portage Reply with quote

I used the mentioned article to move /var to a new partition.

However, after doing that I wasn't able to emerge anything anymore.
I got permission denied errors and similar when unpacking stuff.

Obviously emerge can't deal with symbolic links properly. I had to
change the PORTAGE_TMPDIR to the absolute path of the new /var/tmp directory
in /etc/make.conf:

Code:
PORTAGE_TMPDIR=/mnt/rwstorage/var/tmp
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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