Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
symlinks + emerge = access violation
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
borec
n00b
n00b


Joined: 17 Oct 2005
Posts: 20
Location: Kraków, Poland, EU

PostPosted: Fri Mar 10, 2006 3:08 pm    Post subject: symlinks + emerge = access violation Reply with quote

Recently I have repartitioned my hard drive into this:

Code:
/ 2GB reiserfs
swap 700MB swap
/boot 100MB ext3
/home 3GB reiserfs
/mnt/ext 8GB ext3
/mnt/reiser 6GB reiserfs
/mnt/data ext3 the rest of av. space

symlinks:

/bin  -> /mnt/ext/bin
/sbin -> /mnt/ext/sbin
/lib#  -> /mnt/ext/lib#
/opt  -> /mnt/ext/opt
/usr  -> /mnt/ext/usr
/usr/portage/distfiles -> /mnt/ext/distfiles
/usr/portage/packages-> /mnt/ext/packages

/usr/portage -> /mnt/reiser/portage
/usr/src -> /mnt/reiser/src
/var/tmp/portage -> /mnt/reiser/tmp
/www -> /mnt/reiser/www


and when tried to install Gentoo 2006.0 from minimal CD everything gone wrong.

First, emerge wasn't able to create some (but not all) files and/or directories in /var/tmp/portage (I've chmoded /mnt/reiser/tmp 1777), but changing DIRs in /etc/make.conf from symlinks to actual directories fixed it.

Now sources are compiling but I've got 'access violation' with something like this:

Quote:
mkdir: /usr/lib/cf34235 (symlink to /mnt/ext/usr/lib/cf34235)


Seems like it can't write to /usr/lib and I wonder why?

PS. Sorry for my English
_________________
I don't trust anything that bleeds for five days and doesn't die.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Fri Mar 10, 2006 5:06 pm    Post subject: Reply with quote

Mount them at the correct location - I mean simply mount the partiotions as /usr or /usr/lib and so on, as you do with /home.
IMHO symlinking these directories is a very bad idea .
for example:
Quote:
/dev/hda9 on /home type ext3 (rw,noatime)
/dev/hda5 on /usr/portage type ext2 (rw,noatime)
/dev/hda6 on /usr/portage/distfiles type ext3 (rw,noatime)
/dev/hda7 on /var/tmp type ext3 (rw,noatime)

_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
borec
n00b
n00b


Joined: 17 Oct 2005
Posts: 20
Location: Kraków, Poland, EU

PostPosted: Fri Mar 10, 2006 5:15 pm    Post subject: Reply with quote

Yeah, I wanted not to create so many partitions. How about hard links?
_________________
I don't trust anything that bleeds for five days and doesn't die.
Back to top
View user's profile Send private message
Gergan Penkov
Veteran
Veteran


Joined: 17 Jul 2004
Posts: 1464
Location: das kleinste Kuhdorf Deutschlands :)

PostPosted: Fri Mar 10, 2006 5:39 pm    Post subject: Reply with quote

It is a bad thing, as I said, because for example there are some libs in /usr/lib, which symlink to ../../lib and so on.
There was thread somewhere about such problems, you could try and search the forums. So to be on the safe site - the best solution is to have most of the dirs in their standard location or to mount them there :(
_________________
"I knew when an angel whispered into my ear,
You gotta get him away, yeah
Hey little bitch!
Be glad you finally walked away or you may have not lived another day."
Godsmack
Back to top
View user's profile Send private message
borec
n00b
n00b


Joined: 17 Oct 2005
Posts: 20
Location: Kraków, Poland, EU

PostPosted: Fri Mar 10, 2006 5:43 pm    Post subject: Reply with quote

Crap. Well, since I don't really have a choice, I'll follow your advice. Tnx
_________________
I don't trust anything that bleeds for five days and doesn't die.
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