Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I want to store distfiles on other parition
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
desatan
n00b
n00b


Joined: 20 Aug 2005
Posts: 72

PostPosted: Sat Apr 05, 2008 12:11 pm    Post subject: I want to store distfiles on other parition Reply with quote

mount -o bind /root/d /usr/portage/distfiles
or ln -s /root/d /usr/portage/distfiles
or set DISTDIR to /usr/portage/distfiles

whenever user root or user portage owns /root/d ,the same error happens:
Code:

#emerge -f something
Calculating dependencies... done!

>>> Emerging (1 of 1) something to /
>>> Downloading 'http://61.135.158.199/distfiles/something'
Initializing download: http://61.135.158.199/distfiles/something
File size: 139266 bytes
Opening output file /root/d/something
Error opening local file


/root/d:
drwxrwsr-x 3 root portage 72 04-04 22:49 d
or drwxrwsr-x 3 portage portage 72 04-04 22:49 d

My /etc/fstab:
Code:
/dev/hda1               /boot           reiserfs        noauto,noatime  1 2
/dev/hda5               /               reiserfs        noatime         0 1
/dev/hda8               /home           reiserfs        noatime         1 2
/dev/hda7               /root           reiserfs        noatime         1 2
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,user  0 0
/dev/hda6               none            swap            sw              0 0
#/root/d                        /usr/portage/distfiles auto     bind            0 0
none                    /tmp            tmpfs           defaults        0 0

#none                   /var/tmp/portage        tmpfs           defaults        0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


any idea?
Back to top
View user's profile Send private message
a.b.
Apprentice
Apprentice


Joined: 23 Mar 2008
Posts: 218
Location: Anus Mundi, Germany

PostPosted: Sat Apr 05, 2008 12:20 pm    Post subject: Reply with quote

Are you sure the partition is writable? Try e.g.
Code:
touch /root/d/test
Back to top
View user's profile Send private message
desatan
n00b
n00b


Joined: 20 Aug 2005
Posts: 72

PostPosted: Sat Apr 05, 2008 12:34 pm    Post subject: Reply with quote

a.b. wrote:
Are you sure the partition is writable? Try e.g.
Code:
touch /root/d/test

yes. It's writable.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Apr 05, 2008 2:13 pm    Post subject: Reply with quote

If the partition is writeable by root, then whichever user is emerging stuff must not be able
to write to it. Are you running parts of portage suid to portage? I generally emerge stuff
as root, since while the build process can be done by a user, the install process generally
needs root permissions.

Will
Back to top
View user's profile Send private message
desatan
n00b
n00b


Joined: 20 Aug 2005
Posts: 72

PostPosted: Sat Apr 05, 2008 11:39 pm    Post subject: Reply with quote

thanks cwr , I set suid to axel , and it's solved.
how to set only portage calling axel as root?
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