M
M
Max1152021-09-28 16:39:41
virtual box
Max115, 2021-09-28 16:39:41

What could be wrong with a simple mount operation in Ubuntu Server?

Hello. I can't figure out what exactly I missed:
Installed in Vbox Ubuntu Server.
I'm trying to share a shared folder with the host, and I do everything according to a simple scheme:
1) I connect the Vbox add-ons disk through the Vbox GUI
2) I execute in the Ubuntu terminal
apt-get install build-essential
mount /dev/cdrom /media/cdrom/

However, the system writes that mount point does not exist The

strange thing is that I do it both from under sudo and from under root - everywhere the same thing.
And even more strange is that a week ago I already tried to turn it on the same system - and there were no problems. Yes, I must be missing something, but what the hell? There are two surgeries! It worked a week ago, now it doesn't. Specially created identical virtual machines (the only thing changed the volume to a larger one).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-09-28
@Max115

The directory /media/cdrom/ does not exist. Create it.
mkdir -p /media/cdrom/
mount /dev/cdrom /media/cdrom/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question