Create an alias (symlink, symbolic link) from an already mounted drive to a folder.
Recently I have moved to ubuntu from WSL2 where windows introduces NTFS drives as /c, /d, /e meanwhile ubuntu is mounting them as
First I tried to mount second time onto /d:
- Create the folder to be aliased on:
sudo mkdir /d
- Grab the drive mount path.:
sudo mount /dev/sdb1 /d
Mount is denied because the NTFS volume is already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command.* This suggests that I should not re-mount, instead I can create a symlink.
- Try this:
sudo ln -s /media/$user/$drive_name/* /d* Gotcha: Need to use this:
/*, otherwise you had to do
/d/$drive_name/sub_folderinstead of directly
ls /d=> see the full contents and use as if it’s normal path.