LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount and linked directories (https://www.linuxquestions.org/questions/linux-newbie-8/mount-and-linked-directories-238896/)

ohman 10-05-2004 12:00 AM

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

Code:

/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?

Electronkz 10-05-2004 12:43 AM

Hi,
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:
Code:

/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.

CroMagnon 10-05-2004 02:38 AM

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

ln -s /files/My\ Music /home/user/music

chrism01 10-05-2004 06:54 AM

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...


All times are GMT -5. The time now is 07:43 PM.