Map a drive letter from command line

Questions about Wine on Linux
Locked
Wurlitzer
Newbie
Newbie
Posts: 2
Joined: Sun Dec 04, 2016 12:28 pm

Map a drive letter from command line

Post by Wurlitzer »

Hi,

I use winecfg to map a drive letter to a path, e.g. K:\ --> /mnt/usbstick
Is a command that could do the same thing?

Thanks.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Map a drive letter from command line

Post by jkfloris »

The virtual harddrives are stored in ~/.wine/dosdevices as a symbolic link

Code: Select all

~/.wine/dosdevices$ ls -asl

4 drwxr-xr-x 2 jkfloris jkfloris 4096 19 jan 09:04 .
4 drwxr-xr-x 4 jkfloris jkfloris 4096 19 jan 09:04 ..
0 lrwxrwxrwx 1 jkfloris jkfloris   10  8 mrt  2020 c: -> ../drive_c
0 lrwxrwxrwx 1 jkfloris jkfloris   10 19 jan 09:04 com1 -> /dev/ttyS0
0 lrwxrwxrwx 1 jkfloris jkfloris   10 19 jan 09:04 com2 -> /dev/ttyS1
0 lrwxrwxrwx 1 jkfloris jkfloris   10 19 jan 09:04 com3 -> /dev/ttyS2
0 lrwxrwxrwx 1 jkfloris jkfloris   10 19 jan 09:04 com4 -> /dev/ttyS3
0 lrwxrwxrwx 1 jkfloris jkfloris    1  8 mrt  2020 z: -> /
You can create a symbolic link with

Code: Select all

ln -s /mnt/usbstick k:
Wurlitzer
Newbie
Newbie
Posts: 2
Joined: Sun Dec 04, 2016 12:28 pm

Re: Map a drive letter from command line

Post by Wurlitzer »

Excellent, thanks!
Locked