How to mount VBoxGuestAdditions.iso

Discussions about using Linux guests in VirtualBox.
Post Reply
gewi
Posts: 12
Joined: 7. Jun 2010, 16:58
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 Server Edition

How to mount VBoxGuestAdditions.iso

Post by gewi »

Hi!

Host: Win7
Guest: Ubuntu 10.04 Server Edition

I´d like to install the Guest Additions. To do this, I add the devices "VBoxGuestAdditions.iso" as CD/DVD device.
I know, the next step should be to mount this device in Ubuntu. But I do not get it done!

mount <file system> <mountpoint>
Which <file system> do I have to enter?

In fstab I have the following entry:

Code: Select all

/dev/sr0	/media/cdrom0	udf,iso9660	user,noauto,exec	0	0
However, cdrom0 is empty.

Then I changed fstab to this and rebooted.

Code: Select all

cdrom /media/cdrom udf,iso9660	user,noauto,exec	0	0
However, cdrom is empty aswell.

How do I mount VBoxGuestAdditions.iso?

Best regards, gewi
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to mount VBoxGuestAdditions.iso

Post by Perryg »

How about just mounting it manually from the CLI?

Code: Select all

sudo mount /dev/scd0 /media/cdrom
Anyway this should help Howto: Install Linux Guest Additions + Xorg config
gewi
Posts: 12
Joined: 7. Jun 2010, 16:58
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 Server Edition

Re: How to mount VBoxGuestAdditions.iso

Post by gewi »

Thanks, this was the solution!
I didn´t know that /dev/scd0 was the <file system> to choose.
Best regards, gewi
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to mount VBoxGuestAdditions.iso

Post by Sasquatch »

You fail to understand what is meant here. With fstab, the syntax is different compared to the mount command. The way fstab works is clearly documented at the top:
<file system> <mount point> <type>
This means that <file system> is the location of the file system, it's always a block device for local drives. For the CDROM, this is /dev/sr0 or /dev/scd0 (both the same, one is a symlink to the other). Hard drives have /dev/sd*, where * is the alphabet, starting with 'a' for the first drive, etc.
The <mount point> makes sense, where you hook it to for access, like /media/cdrom0.
Now <type> is the actual file system that is in use, e.g. ISO9660 or UDF for CDROM, ext3 for hard drives, etc.

The modification you first made need to be reverted, it's the system default and changing that is not a smart move.

Read the man pages for mount and fstab to learn more about them.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply