How can I mount the CD (or DVD) DRIVE to a static location in the file system (ubuntu 11.04)

Posted on 2011-10-15
Last Modified: 2012-06-21
I am having a real issue with trying to do multi CD installs through WINE on Ubuntu 11.04.  The real issue appears to be that every time a CD is auto mounted it appears as a different disk.  When the installer prompts for the next disk it does not recognize it (different actual disk means different path in file system).

In an attempt to solve this I want to be able to create a mount point to the hardware for the CD drive.  If I can do this then any disk in the drive should be accessible from the same mount point.  The final step of this procedure would be to run wine config and setup a D: drive pointing to that mount point.

Eagerly awaiting a response!
Question by:developmentguru
    LVL 21

    Author Comment

    I found a suggestion online, that made the claim, that upgrading to 11.10 fixed the issue.  I have done the upgrade, and still no joy.
    LVL 11

    Accepted Solution

    LVL 21

    Author Comment

    I checked out the link.  I am pretty new to Linux... I will try to see if I can implement what the link shows.  I will let you know.

    I would like to understand the process more.  I looked at the files under /dev and found an sr0 entry.  Can I find out what sr0 refers to?  That way I would be sure I am using the right entry.  I also found a different type of entry "scd0".

    I assume the /dev directory is where devices are mounted / registered?  Can you give me any links to help understand this portion better?  I am asking so this question will be of more value to others down the road.
    LVL 21

    Assisted Solution

    The link you gave did not show where to find fstab.  On Ubuntu 11.10 it is in the etc directory so, in order to edit it, run

    sudo gedit /etc/fstab

    from the terminal.  Then run this command in the terminal:

    sudo mkdir /media/cdrom0

    Once the editor opens, add a new line at the end like this:

    /dev/sr0   /media/cdrom0   udf,iso9660 user,noauto,exec   0 0

    The first line just creates a directory to act as the mounting point.  The second acts as OS instructions to mount the device /dev/sr0 to the directory we just created.  If your version does not use sr0 as the cdrom device then you will need to adjust the directions accordingly.

    Once this was done, I installed wine and run Wine Config.  On the drives tab I hit Autodetect with a disk in the drive.  It added a D: drive with /media/cdrom0 as the drive mapping.

    Once that was done I put disk 1 of my multi disk install into the drive (Diablo II Install disk).  This is a 3 disk install that causes the disks to be juggled in and out in order to complete.  I opened a nautilus file browser to the CD by clicking on the image of a CD that came up when the drive was mounted.  I then right clicked on Install.exe and selected "Open With Wine Windows Program Loader".  When the prompt asks to replace the disk you replace the disk and wait until it shows as mounted before clicking the OK button.

    I hope this helps others!
    LVL 21

    Author Closing Comment

    Thanks for the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now