problem mounting cdrom on ubuntu guest

Discussions related to using VirtualBox on Windows hosts.

problem mounting cdrom on ubuntu guest

Postby LG83 » 5. Sep 2010, 17:20

Hi,

I'm using ubuntu 10.04 as a guest on winxp.

I tried the following to get my cdrom mounted:

sudo mkdir /media/cdrom;
sudo mount /dev/cdrom/media/cdrom/

In response I got:
mount: can't find /dev/cdrom/media/cdrom/ in /etc/fstab or /etc/mtab

Does it have anything to do with the fact I use virtualbox?

Thanks.
LG83
 
Posts: 7
Joined: 23. Aug 2010, 02:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: problem mounting cdrom on ubuntu guest

Postby Perryg » 5. Sep 2010, 17:43

sudo mkdir /media/cdrom;
sudo mount /dev/cdrom/media/cdrom/

Well this is just wrong. no ; after the first line and you need spaces between the mount and mount point

mkdir /media/cdrom
mount /dev/cdrom /media/cdrom

I also don't understand why you don't use the distributor created cdrom folder found in / unless you are trying to mount (2) different cd roms

mount /dev/cdrom /cdrom
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: problem mounting cdrom on ubuntu guest

Postby stefan.becker » 5. Sep 2010, 17:45

A blank is missing between Device and Path.
stefan.becker
Volunteer
 
Posts: 7602
Joined: 7. Jun 2007, 21:53

Re: problem mounting cdrom on ubuntu guest

Postby LG83 » 5. Sep 2010, 17:52

The response I now get to the second line is:

mount: special device /dev/cdrom does not exist
LG83
 
Posts: 7
Joined: 23. Aug 2010, 02:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: problem mounting cdrom on ubuntu guest

Postby Perryg » 5. Sep 2010, 17:57

Did you set the selection to the CD in the guest settings?
You can also do this by clicking on the device tab and selecting the CD in the CD/DVD section at the top left of the guests window.
You should read Chapter 5.8. CD/DVD drive operation in your VirtualBox users manual.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: problem mounting cdrom on ubuntu guest

Postby stefan.becker » 5. Sep 2010, 18:32

Use better "/dev/sr0" instead of /dev/cdrom".
stefan.becker
Volunteer
 
Posts: 7602
Joined: 7. Jun 2007, 21:53

Re: problem mounting cdrom on ubuntu guest

Postby LG83 » 5. Sep 2010, 20:53

Well, I've lost the war with the linux terminal,but: :)

In my machine settings, I clicked storage, added host drive G (G is my cdrom drive in windows),selected IDE primary master and ticked passthrough.
Now when I insert a cd into my cdrom drive it simply appears on my ubuntu desktop, and I have access to the content.

Does it sound like I got it right this time?
LG83
 
Posts: 7
Joined: 23. Aug 2010, 02:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot] and 30 guests