Linux – How should I create a folder that automatically links to a shared drive between Windows and Linux

folder-redirectionlinuxwindows 7

I'd like to set it up so that when I click on my 'My Pictures|Videos|Music…etc' folder it just redirects to my middle data drive. Likewise for my linux folders.

How can I set this up? I'm sorry if this is quite vague, I'm not really sure what is possible at all so please help me out.

Best Answer

This Ext2fsd FAQ states:

Q) What's a permanent mountpoint ?

A) Windows system's mount manager will automatically mount volumes and assign driver letters during booting. For xp and later systems, windows only create unique volume ids for all the recognized volume/partitions, such as FAT32, NTFS. The ext2/ext3 volumes could not be mounted by the windows mount manager.

Ext2Mgr provides 3 methods to mount a Linux volume:

1, Using Windows API DefineDosDevice Driver letter won't be kept and be lost after reboot. But it's convenient for a temporary usage.

2, Using Windows MountMgr + Ext2Mgr This method provides automatic mounting when Ext2Mgr detects new disk is plugged and removal of driver letters after disk is removed. If you are heavily using removable disks, this is the best choice.

3, Using registry to store the driver letter as a DosDevice This method always works and it's better for fixed harddisks. Under some conditions, you need a reboot to see the driver letter in explorer.

  You could also modify the registry manually, see below:

  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
  "X:"="\\Device\\HarddiskVolume1"

This means that the only available options to mount ext2 formatted volumes with it is with drive letter. So, one can not mount ext2 volume as a folder. However it is possible to mount the volume at boot time.

Thus probably the easiest way to solve your problem is to make a shortcuts to appropriate directories in your Windows Documents folder.

With linux you can add permanent bind mounts in fstab, for example:

/path_toyour_mddm_ount_point/Videos /path_to_you_home/Documents/Vdideo none bind
Related Question