Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 12-26-2006, 05:14 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 29

Rep: Reputation: 15
NOOB- wants to span hard drives

I have 3 hard drives on my machine.

hda= winxp
hde= ubuntu
hdg= debian

I have a folder on ubuntu that I want linked to another folder on debian, so that when I add a file to it, it is added in both places (its my HOWTO folder and I don't want docs scattered between OSes). Is it possible to create a link from one folder across to the other folder on the other drive?

Thanks Much,

Old 12-26-2006, 07:20 PM   #2
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
The easiest way is to actually have a separate data partition mounted from both. About as easy at least when setting up the partitions would be to have one /home partition shared between both. This way you can share more than just your HOWTOs but data and settings as well. Now that you're all set up with them this could turn out to be rather tricky, though.

Another solution I just tested and works fine is to mount the partition somewhere like /mnt/hde. /mnt/hde then becomes your "root" for that partition so for example your howtos might be in /mnt/hde/home/user/howtos instead of /home/user/howtos. Now that it's mounted on your working OS you can link to it wherever you want.
ln -s /mnt/hde/home/user/howtos /home/user/howtos
If you make the mount permanent (I.E. in /etc/fstab) then your link should never break. It won't work unless that partition is mounted. You also want to look into mounting that partition as user or you will probably have to be root to change anything in that folder.

man mount
man fstab

Good luck!
Old 12-26-2006, 07:54 PM   #3
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 483

Rep: Reputation: 31
Thanks a million for the info. I'll tinker around with these and see what I can get. I'm seeing that the way to learn linux is by delving into a project like this.

Take Care,



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Noob question - USB2 Ext Drives Vlad-The-Impaled Linux - Hardware 1 06-10-2006 09:50 PM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Two hard drives? Im a noob plagel Linux - Laptop and Netbook 7 12-15-2003 03:40 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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