0

About to get access to a CD through the terminal - with Virtual Box working with Ubuntu Desktop and Server, when the Guest Additions .iso file is inserted through:

  • Devices -> Insert Guest Additions CD image

For the Desktop environment its access is through /media/<username>/VBox_GAs_#.#.# and for the Server environment its access is through /dev/cdrom, it to be mount it with the sudo mount /dev/cdrom /cdrom command.

Observe the difference between /media and /dev

Question

  • Why the CD access in Ubuntu Server is different than expected according with FHS?

I assumed it should be /media too - it taking in consideration again the FHS - it according with:

Note this situation happens for the 18.04LTS and 20.04LTS

7
  • 3
    Uh, you mounted it at /cdrom. Nobody stopped you from mounting it at /media or wherever. Even on Ubuntu Desktop, if you check the device that's mounted at /media/<username>/VBox_GAs_#.#.#, it will be /dev/cdrom*
    – muru
    Apr 13, 2022 at 3:08
  • For the Desktop environment, when I insert the .iso file - automatically the path is generated to that location. Same as for the Server Environment - I mean, I must use /dev/cdrom to mount - well - is /cdrom correct? I used the sudo mount /dev/cdrom /cdrom command according with a tutorial to install the VB Guest Additions - for Desktop and Server environments Apr 13, 2022 at 13:25
  • Did you use the /dev/cdrom path to mount in the desktop environment?
    – muru
    Apr 13, 2022 at 15:04
  • When Devices -> Insert Guest Additions CD image is accomplished in the Desktop Environment appears a CD icon in the Desktop, then I open a new terminal, the location of the Guest Addition content - of the CD - is /media/<username>/VBox_GAs_#.#.# - important to notice that I did not mount nothing manually Apr 13, 2022 at 15:53
  • 1
    Exactly, you mounted nothing manually. And the content of the CD is at /media/<username>/VBox_GAs_#.#.#. And when you mount the CD manually at /cdrom, the content is at /cdrom. Yet, you are for some reason comparing/media/<username>/VBox_GAs_#.#.# with /dev/cdrom. Why? How are those two equivalent?
    – muru
    Apr 13, 2022 at 15:59

0

You must log in to answer this question.

Browse other questions tagged .