?
Solved

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
5
Medium Priority
?
501 Views
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!
0
Comment
Question by:developmentguru
  • 4
5 Comments
 
LVL 21

Author Comment

by:developmentguru
ID: 36975108
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.
0
 
LVL 11

Accepted Solution

by:
maeltar earned 2000 total points
ID: 36975135
0
 
LVL 21

Author Comment

by:developmentguru
ID: 36997297
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.
0
 
LVL 21

Assisted Solution

by:developmentguru
developmentguru earned 0 total points
ID: 36997407
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!
0
 
LVL 21

Author Closing Comment

by:developmentguru
ID: 37016668
Thanks for the help!
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

807 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