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

Manuel Jordan
  • 1,355
  • 4
  • 22
  • 39
  • 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//VBox_GAs_#.#.#`, it will be `/dev/cdrom*` – muru Apr 13 '22 at 03: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 – Manuel Jordan Apr 13 '22 at 13:25
  • Did you use the `/dev/cdrom` path to mount in the desktop environment? – muru Apr 13 '22 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//VBox_GAs_#.#.#` - important to notice that I did **not** mount nothing manually – Manuel Jordan Apr 13 '22 at 15:53
  • 1
    Exactly, you mounted nothing manually. And the content of the CD is at `/media//VBox_GAs_#.#.#`. And when you mount the CD manually at `/cdrom`, the content is at `/cdrom`. Yet, you are for some reason comparing`/media//VBox_GAs_#.#.#` with `/dev/cdrom`. Why? How are those two equivalent? – muru Apr 13 '22 at 15:59
  • Oh, now I see the difference. There is no difference about the source for the mount process, being automatic or not - it uses `/dev/cdrom*` like you said in your first comment - of course the difference is about the target of the mount process, in Desktop was automatic to `/media`. And according with the tutorial in the server environment was manually to `/cdrom` – Manuel Jordan Apr 14 '22 at 01:55
  • @muru consider to put your comment how an answer about the: `if you check the device` .... `/dev/cdrom*` situation. With an extra expansion of explanation/content. It to mark it how solved. Thank You – Manuel Jordan Apr 14 '22 at 01:57

0 Answers0