Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I encountered a problem when i tried to create a samba server.
when i excute the command:mount /dev/cdrom /mnt/cdrom,it return an error message"mount:No medium found",i am new to linux,so don't know how to resolve it,anybody can help me?
Thanks very much!
Sounds as if the mount command was unable to detect a CD disk in the CD drive. Was there a disk in the drive? Do you have any evidence that the drive is working or not working?
Thanks for your reply first,do you mean physical CD or virtual? my machine just a VM,and under the folder "/dev" there are many devices,many marked with "*dvd*" and "*cd*" are just a symbol link of "hdc",and i know nothing about device named "hdc"! thanks again for your reply!!
What virtual machine program are you using?
What Linux distro (guest OS) are you running inside the virtual machine?
What is the real host OS that is running on the real hardware?
You usually need to use the menu for the virtual machine or virtual machine program to attach the media (ISO file or a real hardware device) to the virtual drive. Some virtual machine programs will automatically detach the media when the CD/DVD drive is ejected by the guest OS.
The device "/dev/cdrom" is usually a symbolic link. You can see the real device name using this command.
Code:
ls -l /dev/cdrom
The link should go to another device such as "/dev/sr0" or "/dev/hdc". Make sure that the device is correct and you have media attached to it in the virtual machine program.
When you mount a CD or DVD it's a good idea to specify the file-system type.
Code:
mount -t iso9660 /dev/cdrom /mnt/cdrom
If Linux is accessing a different device than you expect then it won't mount something that isn't a CD or DVD.
If you are using an ISO file, make sure that it is a valid ISO file. You can use 7zip or other software to look at the ISO file and make sure that the file is really an ISO rather than a ZIP, tar, or some other type. For example, open the file using 7zip. Then in 7zip click "File" and click "Properties". It should display "Type: Iso" in the properties.
What virtual machine program are you using?
What Linux distro (guest OS) are you running inside the virtual machine?
What is the real host OS that is running on the real hardware?
You usually need to use the menu for the virtual machine or virtual machine program to attach the media (ISO file or a real hardware device) to the virtual drive. Some virtual machine programs will automatically detach the media when the CD/DVD drive is ejected by the guest OS.
The device "/dev/cdrom" is usually a symbolic link. You can see the real device name using this command.
Code:
ls -l /dev/cdrom
The link should go to another device such as "/dev/sr0" or "/dev/hdc". Make sure that the device is correct and you have media attached to it in the virtual machine program.
When you mount a CD or DVD it's a good idea to specify the file-system type.
Code:
mount -t iso9660 /dev/cdrom /mnt/cdrom
If Linux is accessing a different device than you expect then it won't mount something that isn't a CD or DVD.
If you are using an ISO file, make sure that it is a valid ISO file. You can use 7zip or other software to look at the ISO file and make sure that the file is really an ISO rather than a ZIP, tar, or some other type. For example, open the file using 7zip. Then in 7zip click "File" and click "Properties". It should display "Type: Iso" in the properties.
Thanks for your careful explanation,my VM is a remote machine and i connect it by putty,so i don't know about the real os,the VM's OS type is "linux-gnu" and it's host type is "x86_64" version is "red hat 4.1.2-48".I use the command "ls -l /dev/cdrom" it's display the real device is /etc/hdc,but how to make sure have media attached to it? Thanks for your carefully reply again!!
best wished!!!
Thanks for your replied,
the output after executed the command "cat /etc/*release*" is:"cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5.5 (Tikanga)" and after executed "uname -a" display "Linux jun-auto-testdriver.test.dns1.us 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux".Thanks again!!
best wishes!!!
Is that for the VM OS or the host OS? Or are you saying they are identical?
Want to know both for reference.
oh,it just for VM,I don't know about the host OS,because it's a remote machine and i could not get any information of the host,but i guess it was win7/64!!!! Thanks!!
best wishes!!!
Thanks for your careful explanation,my VM is a remote machine and i connect it by putty,so i don't know about the real os,the VM's OS type is "linux-gnu" and it's host type is "x86_64" version is "red hat 4.1.2-48".I use the command "ls -l /dev/cdrom" it's display the real device is /etc/hdc,but how to make sure have media attached to it? Thanks for your carefully reply again!!
best wished!!!
PUTTY is a terminal emulation program. You probably need another program, or you need to access a web page to configure the virtual machine and attach the ISO file. You are going to have to find out what virtual machine program is on the server/host operating system.
You obviously have no physical access to the server/host computer. To attach a CD/DVD you will need to upload the ISO file to the server/host. Then use the commands or programs for the virtual machine software to attach the ISO file as a virtual CD. There may already be some standard ISO files for operating systems on the server.
How did you obtain access to the remote machine? I'm assuming that someone gave you a user account and password to access the machine. They would be the appropriate person to ask about how to transfer an ISO file to the computer and how to attach it to a virtual machine.
If you can tell me what virtual machine program you are using, and what remote server computer you are using then I will try to answer your question more exactly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.