Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2004, 01:00 AM   #1
LQ Newbie
Registered: Aug 2004
Distribution: gentoo
Posts: 4

Rep: Reputation: 0
Mount and linked directories

Im currently dual booting win XP Pro and Ubuntu. My partition table is as follows:

/dev/hda1      Windows (NTFS)
/dev/hda2      Shared fat32 drive
/dev/hda3      Extended partition
/dev/hda5      /boot
/dev/hda6      /
/dev/hda7      swap
My question is how would I link directories from my shared drive to folders in my /home/user directory? i.e. /home/user/music points to /dev/hda2/My Music/

I plan on mounting /dev/hda2 as /files and setting permissions accordingly, will I still be able to link them if I do this?
Old 10-05-2004, 01:43 AM   #2
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
Edit /etc/fstab , and create a mount point, finally you link the mount point directory to your /home/user/ directory.
This may work for you:
/dev/hda2               /mnt/win_share      vfat    rw,auto,umask=0000,users,exec 0 0
It will give you access to your shared fat32 drive, make sure you create the /mnt/win_share directory or however you want to name it.
The linking part is easy to do in a Windows Manager, for example kde or gnome.
Old 10-05-2004, 03:38 AM   #3
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Once you've mounted the drive, this is the command line to create a link:

ln -s /files/My\ Music /home/user/music
Old 10-05-2004, 07:54 AM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,590

Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
Be aware most Linux cmds don't cope well with spaces in filenames, unless you put double quotes around them. Consider renaming your windows files to use underscores '_' instead of spaces...


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
Copying linked files, replacing directories in bash scripts? ta0kira Programming 2 10-10-2004 05:46 AM
Can't mount LVM-directories (lost /-directory) JZL240I-U Linux - Newbie 1 07-12-2004 08:03 AM
How do I mount Windows shares as directories? paul_m_d Linux - Networking 5 01-31-2004 05:13 AM
How to connect/link/mount drives/directories AnandKM Linux - Newbie 2 09-18-2003 08:07 AM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 10:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 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