Drive Mapping not sticking...

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
theonewho
Newbie
Newbie
Posts: 2
Joined: Sat Mar 29, 2008 9:32 pm

Drive Mapping not sticking...

Post by theonewho »

When I run winecfg and tell it to Autodetect is finds my 500 gb hard drive and assigns it as drive k: which is great. But the mapping doesn't seem to stick. Sometimes in the middle of a task (usually in DVD Rebuilder) the drive will disappear but even if it doesn't then it's gone after a reboot.

I'm not seeing an option in winecfg to save the settings so is there something I'm missing? I'm using Ubuntu Gutsy with wine version 0.9.58. The drive is formatted in ntfs with ntfs-3g so might that be the problem?
Dan Kegel

Drive Mapping not sticking...

Post by Dan Kegel »

On Sat, Mar 29, 2008 at 7:37 PM, theonewho <[email protected]> wrote:
When I run winecfg and tell it to Autodetect is finds
my 500 gb hard drive and assigns it as drive k: which is great.
But the mapping doesn't seem to stick. Sometimes
in the middle of a task (usually in DVD Rebuilder) the drive
will disappear but even if it doesn't then it's gone after a reboot.

I'm not seeing an option in winecfg to save the settings
so is there something I'm missing? I'm using Ubuntu Gutsy with wine version 0.9.58.
I *think* the drive configuration options in winecfg
are left over from a time when drive hotplug events
weren't handled by wine. Now that wine handles them,
they can override any manual changes you make.
I think that's a bug/usability problem, but I'm not quite sure.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Drive Mapping not sticking...

Post by vitamin »

theonewho wrote:When I run winecfg and tell it to Autodetect is finds my 500 gb hard drive and assigns it as drive k: which is great. But the mapping doesn't seem to stick. Sometimes in the middle of a task (usually in DVD Rebuilder) the drive will disappear but even if it doesn't then it's gone after a reboot.

I'm not seeing an option in winecfg to save the settings so is there something I'm missing? I'm using Ubuntu Gutsy with wine version 0.9.58. The drive is formatted in ntfs with ntfs-3g so might that be the problem?
Don't use ntfs-3g - it does not provide all the functionality required for Wine. Install programs into Wine's "fake c:" drive.
Aside from that - there is a known problem with drives disappearing if one of them conflicts with cdrom. Run 'ls -la ~/.wine/dosdevices' and paste results here.
theonewho
Newbie
Newbie
Posts: 2
Joined: Sat Mar 29, 2008 9:32 pm

maybe fixed...to soon to tell for sure yet

Post by theonewho »

When I issued the ls -la ~/.wine/dosdevices command I noticed that it was listing drives/partitions that don't exist anymore. I've changed hard drives and partitions more than a few times since I installed linux and wine. Should have been obvious that I check that directory for old dosdevices. Anyway here's the output of the command before I deleted the obsolete entries:

Code: Select all

ls -la ~/.wine/dosdevices
total 8
drwxr-xr-x 2 dlanor78 dlanor78 4096 2008-03-30 00:28 .
drwxr-xr-x 5 dlanor78 dlanor78 4096 2008-03-30 01:30 ..
lrwxrwxrwx 1 dlanor78 dlanor78   10 2007-09-29 01:38 c: -> ../drive_c
lrwxrwxrwx 1 dlanor78 dlanor78    5 2007-09-29 01:39 d: -> /home
lrwxrwxrwx 1 dlanor78 dlanor78   14 2007-09-29 01:39 e: -> /media/drive_c
lrwxrwxrwx 1 dlanor78 dlanor78   14 2007-09-29 01:39 f: -> /media/drive_q
lrwxrwxrwx 1 dlanor78 dlanor78   13 2007-09-29 01:39 g: -> /media/cdrom0
lrwxrwxrwx 1 dlanor78 dlanor78   13 2007-09-29 01:39 h: -> /media/cdrom1
lrwxrwxrwx 1 dlanor78 dlanor78   14 2007-09-29 01:39 i: -> /home/dlanor78
lrwxrwxrwx 1 dlanor78 dlanor78   15 2008-03-29 19:01 j: -> /media/OldLinux
lrwxrwxrwx 1 dlanor78 dlanor78    8 2007-09-29 20:46 j:: -> /dev/sdd
lrwxrwxrwx 1 dlanor78 dlanor78   13 2008-03-29 19:41 k: -> /media/cdrom0
lrwxrwxrwx 1 dlanor78 dlanor78    9 2007-10-01 20:53 k:: -> /dev/scd0
lrwxrwxrwx 1 dlanor78 dlanor78    9 2007-10-01 20:53 l:: -> /dev/scd1
lrwxrwxrwx 1 dlanor78 dlanor78   11 2007-10-15 15:27 m: -> /media/sda1
lrwxrwxrwx 1 dlanor78 dlanor78   11 2007-10-15 15:27 n: -> /media/sdb1
lrwxrwxrwx 1 dlanor78 dlanor78   14 2007-10-15 15:27 o: -> /media/floppy0
lrwxrwxrwx 1 dlanor78 dlanor78    8 2007-12-20 01:29 p: -> /media/n
lrwxrwxrwx 1 dlanor78 dlanor78    8 2008-02-01 22:42 q: -> /media/c
lrwxrwxrwx 1 dlanor78 dlanor78   17 2008-02-01 22:42 r: -> /media/Misc Stuff
lrwxrwxrwx 1 dlanor78 dlanor78    1 2007-09-29 01:38 z: -> /
and after cleaning up:

Code: Select all

ls -la ~/.wine/dosdevices
total 8
drwxr-xr-x 2 dlanor78 dlanor78 4096 2008-03-30 01:36 .
drwxr-xr-x 5 dlanor78 dlanor78 4096 2008-03-30 01:36 ..
lrwxrwxrwx 1 dlanor78 dlanor78   14 2008-03-30 01:36 a: -> /media/floppy0
lrwxrwxrwx 1 dlanor78 dlanor78   10 2007-09-29 01:38 c: -> ../drive_c
lrwxrwxrwx 1 dlanor78 dlanor78    5 2007-09-29 01:39 d: -> /home
lrwxrwxrwx 1 dlanor78 dlanor78   13 2008-03-30 01:36 e: -> /media/cdrom0
lrwxrwxrwx 1 dlanor78 dlanor78    9 2008-03-30 01:35 e:: -> /dev/scd1
lrwxrwxrwx 1 dlanor78 dlanor78   13 2008-03-30 01:36 f: -> /media/cdrom1
lrwxrwxrwx 1 dlanor78 dlanor78   16 2008-03-30 01:36 g: -> /media/New Drive
lrwxrwxrwx 1 dlanor78 dlanor78   14 2007-09-29 01:39 i: -> /home/dlanor78
lrwxrwxrwx 1 dlanor78 dlanor78   15 2008-03-29 19:01 j: -> /media/OldLinux
lrwxrwxrwx 1 dlanor78 dlanor78    8 2008-02-01 22:42 q: -> /media/c
lrwxrwxrwx 1 dlanor78 dlanor78    1 2007-09-29 01:38 z: -> /
As far as using ntfs-3g, I do a lot of video editing of files that are captured using a hauppauge pvr-150 card. I do install programs in the fake c: drive, I use the ntfs drive for the mpg files so I can access them with r/w in windows when I need to. I use Womble's mpeg-vcr in wine to edit the mpg files on the ntfs drive (gopdit and gopchop seem to mess them up somehow) then reboot into windows to author a dvd in tmpgenc dvd author. Then it's back into linux to shrink the dvd with wine and dvd rebuilder this way I can fit more on a disc.

This probably sounds ridiculous but dvd authoring sucks on linux so far. There are a few programs getting close to good, but nothing that I've found works like I need it to.

I can't reboot at the moment because I'm in the middle of an important task that can't be interrupted, but I'll do so later and post back if there's further problems.
Locked