Add Drives from terminal?

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

Add Drives from terminal?

Post by Infidelus » Thu Jun 18, 2020 5:38 am

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: 12840
Joined: Tue Mar 25, 2008 10:30 pm

Re: Add Drives from terminal?

Post by dimesio » Thu Jun 18, 2020 7:22 am

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 » Thu Jun 18, 2020 12:24 pm

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 » 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?)

User avatar
Bob Wya
Level 12
Level 12
Posts: 2884
Joined: Sat Oct 16, 2010 7:40 pm
Location: Scotland
Contact:

Re: Add Drives from terminal?

Post by Bob Wya » Sun Aug 09, 2020 6:24 am

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

Post Reply