View previous topic :: View next topic |
Author |
Message |
borec n00b
Joined: 17 Oct 2005 Posts: 20 Location: Kraków, Poland, EU
|
Posted: Fri Mar 10, 2006 3:08 pm Post subject: symlinks + emerge = access violation |
|
|
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 |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Fri Mar 10, 2006 5:06 pm Post subject: |
|
|
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 |
|
|
borec n00b
Joined: 17 Oct 2005 Posts: 20 Location: Kraków, Poland, EU
|
Posted: Fri Mar 10, 2006 5:15 pm Post subject: |
|
|
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 |
|
|
Gergan Penkov Veteran
Joined: 17 Jul 2004 Posts: 1464 Location: das kleinste Kuhdorf Deutschlands :)
|
Posted: Fri Mar 10, 2006 5:39 pm Post subject: |
|
|
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 |
|
|
borec n00b
Joined: 17 Oct 2005 Posts: 20 Location: Kraków, Poland, EU
|
Posted: Fri Mar 10, 2006 5:43 pm Post subject: |
|
|
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 |
|
|
|