problem mounting cdrom on ubuntu guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
LG83
Posts: 7
Joined: 23. Aug 2010, 02:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

problem mounting cdrom on ubuntu guest

Post by LG83 »

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.
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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
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

Post by LG83 »

The response I now get to the second line is:

mount: special device /dev/cdrom does not exist
Perryg
Site Moderator
Posts: 34369
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

Post by Perryg »

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.
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

Post by LG83 »

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?
Post Reply