VOGONS

Common searches


First post, by spookypeanut

User metadata
Rank Newbie
Rank
Newbie

Using Dosbox 0.70 on Ubuntu Feisty.

I can mount CDs fine, but I want to add a section to the autoexec section which will automatically mount them so I don't have to do it every time. The problem is that my system, in its infinite wisdom, mounts the CD in a different place depending on the CD, e.g.:

/media/TIECD
/media/XWINGCD

etc

Any suggestions on how I can fix this? Is there a way to point dosbox to the device, rather than the directory? I'm happy to change my system (I'd rather have it always mounted in the same place, actually), but I don't want to break anything! Just googling for some info on doing that now...

Reply 1 of 5, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

You could view it as a feature: since each directory is named by the CD label, you can easily write configuration files that mount the correct game directory, that way you can make sure the right CD is inserted.

If you don't want that, you will have to change your media notifcations. I'm not terribly experienced with them (I rather like the default behaviour), but the software package involved is called "hal" or "hald", perhaps that helps in tracking down some useful documentation.

Reply 3 of 5, by spookypeanut

User metadata
Rank Newbie
Rank
Newbie

You could view it as a feature

You're right... I should make the most of it. It is quite handy. It just means that if I want to change directory to the cdrom, I have to know a) which cd is in the drive, and b) what the manufacturers called it!

I'll have a look into hal, thanks for the info.

Hmm, wonder if it's because I upgraded from edgy...

Don't think it can be, I upgraded from Edgy too...

Reply 4 of 5, by dougdahl

User metadata
Rank Member
Rank
Member

Not sure if this will help, or is precisely what you're looking for, but I managed to find something for openSUSE to change that behavior. Don't know how well or how much would need to be changed for Ubuntu.
It's at http://en.opensuse.org/SDB%3AMounting_to_Static_Mount_Points

Reply 5 of 5, by spookypeanut

User metadata
Rank Newbie
Rank
Newbie

That looks ideal, but the problem seems to have fixed itself. I'm quite confused. I added these lines to fstab:

/dev/scd0   /media/dvdrecorder   udf,iso9660 user,noauto     0       0
/dev/scd1 /media/cdrecorder udf,iso9660 user,noauto 0 0

Expecting that I would have to manually pumount the disc and explicitly mount them this way, but now it just does it. Which is cool. And if I want the old behaviour back, I guess I can just remove them. Tada!