Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
having /tmp mounted onto another directory
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
hgomersall
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2002
Posts: 135
Location: Cambridge, UK

PostPosted: Tue Sep 17, 2002 11:51 am    Post subject: having /tmp mounted onto another directory Reply with quote

Due to the way I have my partitions set up, I have a small root partition and /usr mounted onto a larger partition.

I thought that this would suffice when I started. Up until now I have been getting away with changing the portage default directories (using 'export ...'). However, my system seems to like reverting to factory defaults (for example using the /tmp directory for large amounts of data) whenever I upgrade portage (it seems to do it at other times too - I don't fully understand). It's annoying to say the least to suddenly find it's using the /tmp directory and the emerge fails because of insufficient disk space.

So, recently, I decided to try mounting /tmp on a (arbitrarily named) directory /usr/roottmp (and so a larger partition) using 'mount --bind /usr/roottmp /tmp'.

I then unmerged gdm and reemerged it (I don't think the fact it was gdm had much to do with it - although I may be wrong). The emerge did not give any errors (as merely linking /tmp had). However, no binary seemed to be present and typing gdm did not work.

Unmounting the said directory and remerging gdm worked perfectly.

I cannot understand why this method would not work. If somebody could enlighten me I'd be very grateful.

thanks

hen
Back to top
View user's profile Send private message
Beffe
n00b
n00b


Joined: 27 Aug 2002
Posts: 29

PostPosted: Tue Sep 17, 2002 1:20 pm    Post subject: Reply with quote

did you try a symlink instead of mount?

something like
rmdir /tmp
ln -s /usr/roottmp /tmp
Back to top
View user's profile Send private message
hgomersall
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2002
Posts: 135
Location: Cambridge, UK

PostPosted: Tue Sep 17, 2002 1:25 pm    Post subject: Reply with quote

yeah, I tried a symlink. It actually gives errors on emerging - which the method described above doesn't.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Sep 17, 2002 1:27 pm    Post subject: Reply with quote

What are the permissions on /tmp? If you do "ls -ld /tmp" what does it show?
Back to top
View user's profile Send private message
hgomersall
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2002
Posts: 135
Location: Cambridge, UK

PostPosted: Tue Sep 17, 2002 1:55 pm    Post subject: Reply with quote

the permissions for /tmp are drwxrwxrwt

I was quite careful about this because I think I had some problems with gnome prior to my gdm problem (what let to the gdm problem in fact) relating to incorrect permissions on the /tmp directory.
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