View previous topic :: View next topic |
Author |
Message |
ArloWhite n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 May 2003 Posts: 53
|
Posted: Mon Oct 20, 2003 3:09 am Post subject: Mounting Folders on another Partition into / |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tawtao Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Ned.jpg)
Joined: 29 Sep 2003 Posts: 116 Location: Baltimore
|
Posted: Mon Oct 20, 2003 3:36 am Post subject: Re: Mounting Folders on another Partition into / |
|
|
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? ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|