unable to set drive label

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
akosmaroy
Newbie
Newbie
Posts: 3
Joined: Sun Feb 20, 2011 5:21 am

unable to set drive label

Post by akosmaroy »

I wonder if someone can help me: I can't seem to be able to set the drive label for a CD image mounted under wine

first, I'm mounting the CD image under Linux using mount -o loop, where it appears under say /mnt/disk

then, using winecfg, I assign a driver letter (say: G:) to /mnt/disk. here in the advanced tab, I also specify the disk label

but, when I start wine explorer, the G: drive doesn't have a label. also, when I go back to winecfg, the label information is lost - it seems this is not saved at all

I tried with with wine 1.2 and 1.3 as well (both on Ubuntu)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: unable to set drive label

Post by vitamin »

akosmaroy wrote:I wonder if someone can help me: I can't seem to be able to set the drive label for a CD image mounted under wine
Correct, you can't. Unless that image already has valid disk label, that Wine will read.

You can't set iso image label with Wine, since it will require you to create a special file. And in most cases you can't write into the image (it's mounted read-only).
akosmaroy
Newbie
Newbie
Posts: 3
Joined: Sun Feb 20, 2011 5:21 am

Re: unable to set drive label

Post by akosmaroy »

vitamin wrote:
akosmaroy wrote:I wonder if someone can help me: I can't seem to be able to set the drive label for a CD image mounted under wine
Correct, you can't. Unless that image already has valid disk label, that Wine will read.

You can't set iso image label with Wine, since it will require you to create a special file. And in most cases you can't write into the image (it's mounted read-only).
the iso image itself has a label - and this is what I'd want wine to see. but as wine sees the image only through the Linux filesystem, it doesn't see the label anymore.

is there a way to mount an iso image directly under wine, so that it would see the disk label? or any other way to simulate a CD-ROM with a specific label?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: unable to set drive label

Post by vitamin »

akosmaroy wrote:the iso image itself has a label - and this is what I'd want wine to see. but as wine sees the image only through the Linux filesystem, it doesn't see the label anymore.
It does. Make sure that you properly mapped the drive and that ~/.wine/dosdevices/drive:: (two colons) point to the iso image.
Ex:

Code: Select all

sudo mount ~/archive/disk.iso /mnt/disk -o loop,ro
ln -s /mnt/disk ~/.wine/dosdevices/g:
ln -s ~/archive/disk.iso ~/.wine/dosdevices/g::
akosmaroy
Newbie
Newbie
Posts: 3
Joined: Sun Feb 20, 2011 5:21 am

Re: unable to set drive label

Post by akosmaroy »

vitamin wrote:
akosmaroy wrote:the iso image itself has a label - and this is what I'd want wine to see. but as wine sees the image only through the Linux filesystem, it doesn't see the label anymore.
It does. Make sure that you properly mapped the drive and that ~/.wine/dosdevices/drive:: (two colons) point to the iso image.
Ex:

Code: Select all

sudo mount ~/archive/disk.iso /mnt/disk -o loop,ro
ln -s /mnt/disk ~/.wine/dosdevices/g:
ln -s ~/archive/disk.iso ~/.wine/dosdevices/g::
thanks - will give it a shot!
Locked