LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-05-2004, 12:00 AM   #1
ohman
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:

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?
 
Old 10-05-2004, 12:43 AM   #2
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
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.
 
Old 10-05-2004, 02:38 AM   #3
CroMagnon
Member
 
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, 06:54 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
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...
 
  


Reply


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


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration