LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-12-2009, 07:05 PM   #1
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 11.04, UNE 10.10, CrunchBang Statler, Bodhi
Posts: 52

Rep: Reputation: 15
automatic access to home folder from two distros on same computer using fstab


I have both Ubuntu 9.04 and #!CrunchBang 9.04 installed on my MSI Wind Netbook. Ubuntu was first, and I set it up with a separate volume for the /home folder. The /home folder has music in it that I would like to access from #!CrunchBang, preferably without having to copy it over. I know how to access the volume from #!CrunchBang with a mount command, and I mount it at /mnt/volumes.) My music player was given that location to access music, but how can this be set up automatically so that I don't need to type in a mount command? I researched this a bit and I now know that I could add the volume to the /etc/fstab file, but I'm not clear how I get it mounted in a given location (like /mnt/volumes) that way. If it isn't mounted at a given location, how does the music player access the music files?

Last edited by trentfox; 05-12-2009 at 08:33 PM.
 
Old 05-12-2009, 08:49 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.7, Solaris 10
Posts: 10,994

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Just copy a line from the current fstab and adjust as needed. You can see the values by mounting it by hand as you are, then do
cat /etc/mtab
NB do not adjust mtab by hand. Its dynamically set by the system to show what's currently mounted, as opposed to fstab which lists what you'd like mounted.
 
Old 05-12-2009, 09:00 PM   #3
archShade
Member
 
Registered: Mar 2006
Location: Manchester England
Distribution: Ubuntu 9.10; Xandros (ASUS EEE);
Posts: 157

Rep: Reputation: 22
Using the same home/user directory may give you conflicts as a lot of your configuration files are in there. You could mount the partition to something like ~/ubuntuhome easily enough using fstab.

first create a directory called ubuntu home in your home directory

Then add this line to the file:
Code:
sda1 /home/bill/ubuntuhome     ext3   defaults   1 2
this assumes that the partition is sda1, that your username is bill, your using the ext3 FS and a few other things. There's plenty of documentation on the net and here's a nice easy example.

then run: mount ~/ubuntuhome.

as for mounting it on start up. the script in /etc/init.d/mountall.sh should do this if its in fstab
 
Old 05-12-2009, 09:28 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Pclinux, Mandriva, Kubuntu 10.10 Slck13_64-current
Posts: 2,005
Blog Entries: 3

Rep: Reputation: 112Reputation: 112
when you installed your systems at that point you had the ability to create a partition called home and from then on when you install a system you tell it to use the partition home without formatting it. if you did not do this then you need to create a partion for home and configure all your users to use that partition.

So I have five systems and sda5 is home for all the other systems and there is three other hard drives. this makes backing up home very easy.

How to to do this easy create the partition and use your gui or command line to tell each system that the user home is on that partition. kind of like what arch shade has said.
after that any time you add a new user it asks where you want the home your name to be.
 
Old 05-12-2009, 11:55 PM   #5
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 11.04, UNE 10.10, CrunchBang Statler, Bodhi
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for your replies. I had it all right except the "defaults" part. Once I fixed that in fstab, I got the volume mounted at startup. archShade, I mounted the other home file in a folder I created under mnt - /mnt/volumes - to make sure I didn't run into a /home conflict.
 
  


Reply

Tags
fstab, mount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-07-2009 08:44 PM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
Sharing a home folder between 2 Linux distros Jongi Fedora 1 10-26-2005 05:38 PM
Chmod = no access to home folder! DeathPrawn Linux - Newbie 4 02-12-2005 12:50 PM
FTP access to home folder deWin Linux - Networking 5 04-26-2004 02:45 AM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration