Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting Folders on another Partition into /
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ArloWhite
n00b
n00b


Joined: 23 May 2003
Posts: 53

PostPosted: Mon Oct 20, 2003 3:09 am    Post subject: Mounting Folders on another Partition into / Reply with quote

I ran out of space on my root partition so I moved /opt, /usr/src, and /usr/local to a mounted partition under /mnt/opt+src

I then added this partition to fstab and symbolically linked the locations. Unfortunatly whenever I rebooted I would lose those links. So I put the following lines in my local.start file and removed the links, replacing them with regular empty folders.
mount --bind /mnt/opt+src/opt /opt
mount --bind /mnt/opt+src/src /usr/src
mount --bind /mnt/opt+src/local /usr/local

This seems ugly to me. Is there a better way of linking to folders in another partition? Is there a way I can specify the folders directly in fstab? And if this is the best way to do this, should I put the mount --bind lines in another place then local.start?

Thanks,
Arlo
Back to top
View user's profile Send private message
tawtao
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2003
Posts: 116
Location: Baltimore

PostPosted: Mon Oct 20, 2003 3:36 am    Post subject: Re: Mounting Folders on another Partition into / Reply with quote

ArloWhite wrote:

... I then added this partition to fstab and symbolically linked the locations. Unfortunatly whenever I rebooted I would lose those links ...


I don't quite get it, you say you lose the link! Let say, you mount a new partition to /mnt/opt+src, and you move your /opt, /usr/src, and /usr/local to that partition. Then you create a soft link by
Code:

ln -s /mnt/opt+src/opt /opt
ln -s /mnt/opt+src/src /usr/src
ln -s /mnt/opt+src/local /usr/local


These links will be come dead links when the partion is unmounted. They become valid again after you mount /mnt/opt+src. I don't know why you lose the link with you reboot.

I also move my portage tree using this tick too. I move /usr/portage to /home/portage and create a softlink by
Code:

ln -s /home/portage /usr/portage

I never lose the link ... I would like to know why you lose the links? :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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