Add Drives from terminal?

Questions about Wine on Linux
Locked
Infidelus
Level 2
Level 2
Posts: 12
Joined: Sun Feb 18, 2018 3:26 pm

Add Drives from terminal?

Post by Infidelus »

I'm trying to automate the install of some software, and I've been hunting around the net for command-line options but can't seem to find what I'm looking for.
Is there a wine option to add a drive to winecfg from the terminal?
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Re: Add Drives from terminal?

Post by dimesio »

Adding drives is just a matter of creating the symlinks in the dosdevices subdirectory of the wineprefix.
Infidelus
Level 2
Level 2
Posts: 12
Joined: Sun Feb 18, 2018 3:26 pm

Re: Add Drives from terminal?

Post by Infidelus »

Well there you go. Sometimes things are easier than you think. Thanks :)
kovacsbv
Newbie
Newbie
Posts: 1
Joined: Sun Jul 26, 2020 9:33 pm

Re: Add Drives from terminal?

Post by kovacsbv »

My drives and advanced features (serial and label) are behaving strangely on mint 20/Wine 5.0.1.
Lots of times the label comes or goes, or the drive letter disappears in winecfg even though the link is there.
Is there any documentation page to explain:
  1. .wine-serial and .wine-label in the root of the drive directory?
  2. Does it work for smb shares?
  3. Does it work for ex-fat USB drives?
  4. How about d:: -> /dev/sdb1 (device pointers with double colons?)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Add Drives from terminal?

Post by Bob Wya »

kovacsbv wrote: Sun Jul 26, 2020 9:51 pm My drives and advanced features (serial and label) are behaving strangely on mint 20/Wine 5.0.1.
Lots of times the label comes or goes, or the drive letter disappears in winecfg even though the link is there.
Is there any documentation page to explain:
  1. .wine-serial and .wine-label in the root of the drive directory?
  2. Does it work for smb shares?
  3. Does it work for ex-fat USB drives?
  4. How about d:: -> /dev/sdb1 (device pointers with double colons?)
  1. .wine-serial and .wine-label are internal/hidden Unicode files that support the Wine implementation of Windows Volume serial and name. E.g. the variables returned by the Windows API call: GetVolumeInformationW function
  2. Yes - should work. Windows SMB shares mounted using cifs will appear to be local drives to Wine. Much less well supported is smbfs (including Gnome GVFS). You can even do loop back mounts of iso CD/DVD image files - when using cifs !
  3. Again this should work.
  4. See:

    Code: Select all

    man wine
    ...
    $WINEPREFIX/dosdevices
    ...
As to your issues with disappearing Volume labels, etc. It's hard to troubleshoot this without more information about your filesystem setup.

Bob
Locked