View previous topic :: View next topic |
Author |
Message |
Matte88 n00b
Joined: 15 Aug 2009 Posts: 55 Location: VE-NICE
|
Posted: Mon Jan 28, 2013 10:47 pm Post subject: elegant way to mount folders from another distro into Gentoo |
|
|
Hi all!
I'd like to get my Ubuntu /home folders (music, docs, Steam, downloads, video) get mounted auto at boot when using Gentoo so to have same files always available for both, no matter what I'm using. I have Ubuntu in only one partition and also Gentoo :p
Two little examples to explain me:
1) when I'm on one of them and I continue my tasks with docs, I must mount the whole Ubuntu or Gentoo partition to get the file from the last time I modified it, if previously I didn't remember to save on both /home/username/docs/ (Gentoo and Ubuntu).
2) when playing with Steam, I have to copy the savegames from a partition to another and keep 17GB of games in both!
I don't want to mount the whole Ubuntu /home in Gentoo's one 'cause I have different programs and different versions/settings of FF, Thunderbird, VLC, etc...
Now I have the whole Ubuntu partition mounted at boot via FSTAB, but I'd like to have not the whole partition mounted, only the needed folders. Is there an elegant way to do that (without exposing Ubuntu's root to user)? _________________ -Complichiamo le cose per semplificarci la vita- |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Mon Jan 28, 2013 11:27 pm Post subject: |
|
|
First off, I don't think you can mount folders. You mount partitions.
Second, there is a way to make your current setup more elegant. Choose one partition, say Ubuntu, to house the data. mount the partition in /mnt/ubuntu. make symbolic links to your folders in Gentoo. This way you have complete access to the data on both computers. A soft link should suffice. (ln -s)
The more elegant way is to make a new partition. Use lvm to create as many partitions as folders using the new partition. mount them in both places via fstab. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Matte88 n00b
Joined: 15 Aug 2009 Posts: 55 Location: VE-NICE
|
Posted: Tue Jan 29, 2013 12:03 am Post subject: |
|
|
The Doctor wrote: | First off, I don't think you can mount folders. You mount partitions.
Second, there is a way to make your current setup more elegant. Choose one partition, say Ubuntu, to house the data. mount the partition in /mnt/ubuntu. make symbolic links to your folders in Gentoo. This way you have complete access to the data on both computers. A soft link should suffice. (ln -s)
The more elegant way is to make a new partition. Use lvm to create as many partitions as folders using the new partition. mount them in both places via fstab. | LVM always scared me, plus add I'm new to GPT and UEFI (which my laptop has) and you'll have a mess! I'm terrified at the thought of losing my data or having to reinstall Gentoo!!!
I'll give a try with soft links (can I softlink a folder?!? Whoa!).
Thanks "The Doctor"! _________________ -Complichiamo le cose per semplificarci la vita- |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Tue Jan 29, 2013 12:06 am Post subject: |
|
|
go to ubuntu and run "cat /etc/fstab" write down your $HOME partition info.... get on gentoo run "nano /etc/fstab" and restart your gentoo to auto mount your $HOME into gentoo..... (this will work kind of ok and be kind of messy and copy your ubuntu stuff into your gentoo stuff as your asking for)
for me
/dev/sda8 /home xfs noatime 0 3
(it also helps if you DONT have anything in your $HOME as mounting normally on linux requires a blank directory to mount to..... u might have to migrate your $HOME to a backup area but is probably blank as your asking this question)
you can symlink directories cd /usr/src.... sudo ln -s linux-3.7.3 linux.... is how i made my /usr/src/linux point @ linux-3.7.3 (or the other way around) (ln -s is a symlink) (mount --bind = mount a folder to another folder.... inter system portal)
home is just a data store and settings directory for me.... .bashrc would cross over and many settings would also for programs that store files in hidden directories or configuration files (starting with . before the file name)
your making it sound like your home is part of your / partition.... in that case, you want to mount the entire ubuntu, and take files like your steam and symlink them to your $HOME where you can find them...... some systems and programs and files do NOT like symlinks or run properly.... mount --bind for those cases.... |
|
Back to top |
|
|
|
|
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
|
|