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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm trying to mount my DVD drive to /dvdrom. I tried the commands prescribed to zLinuxz. Here is the error message I get:
bash-3.1# mkdir /dvdrom
bash-3.1# mount -t iso9660 /dev/hdc /dvdrom
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
And here is dmesg |tail as the above error message suggests:
bash-3.1# cd /mnt/cdrom
Here is mount if interested:
/dev/hda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdb1 on /home/ntfs type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
I installed a new PSU, which means I was playing with the power cord connected to the DVD rom bay, however the bay opens and closes easily, allowing me to insert and audio disk.
I am btw running Slackware 12.1 stock kernel.
I've skimmed through the man page for mount, but couldn't figure out how to mount a dvd/cd drive.
You do not. As stated you can not mount an audio CD because it does not contain a valid filesystem. In a nutshell audio player applications access the hardware. It is the filesystem that is attached to the file tree and not the drive.
FYI iso9660 is the filesystem type for a data CD. ISO (International Organization for Standardization), 9660 is the standard number that describes how data is read/written to a CD.
Lets start over.
According to post #4 you stated you are trying to mount an audio CD. An audio CD can not be mounted like data because music is not in the iso9660 or udf (DVD) format. Basically you can not view a music CDs contents. You must rip the music to the hard drive first. Well actually there is virtual filesystem called cdfs which does let you view an audio CD contents but it requires one to patch the kernel. I am not sure how well it works.
To play a music CD you just open the application (i.e. xmms) and push the play button. The player must first be configured to point to the CD device.
I should have been a little more elaborate the first time.
It really feels weird:
there is the disk, there are obviously data in the form of music on it, and then you are told that you can only play or rip, but not mount this disk.
As michalek said - an audio-cd does not contain a valid filesystem - we know how the data is arranged - and thus can "play" it.
You can play it when you tell the audio application, where it finds the disk (/dev/hdc) - the player then knows how to "speak" to the hardware to get that music.
But knowing how data is arranged on an audio-cd does not make having it a filesystem.
It always is a filesystem you attach to the tree you already have - in fact you can only attach filesystems.
You do not attach a drive to it.
A cd-drive is a device which lets you access the filesystem on it.
When you mount the drive to your tree (mount /dev/hdc /mnt/cdrom) you can access these data below /mnt/cdrom.
If there is no filesystem - you cannot attach it to your thee.
That is why you get:
mount: /dev/hdc: can't read superblock
...because there is none.
A cd with lots of ogg or mp3 files on it is a different issue - these are files just like any other - and written to cd following the iso9660 standard - a filesystem description.
These you can mount.