LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting dvd drive (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-dvd-drive-650374/)

Drone4four 06-19-2008 01:46 PM

mounting dvd drive
 
I'm trying to mount my DVD drive to /dvdrom. I tried the commands prescribed to zLinuxz. Here is the error message I get:

Code:

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:

Code:

bash-3.1# dmesg | tail
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
ATAPI device hdc:
  Error: Illegal request -- (Sense key=0x05)
  Illegal mode for this track or incompatible medium -- (asc=0x64, ascq=0x00)
  The failed "Read 10" packet command was:
  "28 00 00 00 00 10 00 00 01 00 00 00 00 00 00 00 "
end_request: I/O error, dev hdc, sector 64
isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16
bash-3.1# exit
exit
bash-3.1$

Here is my fstab:

Code:

/dev/hda5        swap            swap        defaults        0  0
/dev/hda1        /                ext3        defaults        1  1
/dev/hdb1        /home/ntfs      ntfs-3g    umask=000        1  0
/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0

Here are the contents of /mnt/cdrom:

Code:

bash-3.1# cd /mnt/cdrom
bash-3.1# ls
bash-3.1# exit
exit
bash-3.1$

Here is mount if interested:

Code:

bash-3.1# mount
/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)
bash-3.1#

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.

wernerz 06-19-2008 01:56 PM

Sounds like a hardware problem. Disconnect the drive cables and reconnect firmly. Bad connections can cause this problem.

jomen 06-19-2008 02:06 PM

What kind of disk is in the drive - it may be bad - or it may be ... audio ? (cannot mount that)

Drone4four 06-19-2008 02:43 PM

Quote:

Originally Posted by jomen (Post 3189596)
What kind of disk is in the drive - it may be bad - or it may be ... audio ? (cannot mount that)

Actually, yeah this is an audio CD. And I can't mount that? Why?

jomen 06-19-2008 03:03 PM

...because it has no filesystem

Drone4four 06-19-2008 06:20 PM

How do I attach the CD drive to the filesystem? I made the DVD drive a directory: /dvdrom.

michaelk 06-19-2008 06:55 PM

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.

Drone4four 06-19-2008 07:31 PM

If I can't mount the device b/c the fs is invalid, then is this CD not readable in Linux?
Here is my mount command without speciffying a fs:

Code:

bash-3.1# mount /dev/hdc /dvdrom
mount: block device /dev/hdc is write-protected, mounting read-only
mount: /dev/hdc: can't read superblock


Drone4four 06-19-2008 07:38 PM

Here is the command with -t auto:

Code:

bash-3.1# mount -t auto /dev/hdc /dvdrom
mount: block device /dev/hdc is write-protected, mounting read-only
mount: /dev/hdc: can't read superblock


michaelk 06-19-2008 08:37 PM

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.

onebuck 06-19-2008 10:45 PM

Hi,

Too the OP!

I would suggest that you look at the 'SlackwareŽ Essentials' & 'SlackwareŽ Basics' to get some good background information. Another good reference would be 'Rute Tutorial & Exposition'.

These links and others can be found at 'Slackware-Links' .
More than just SlackwareŽ links!

LlNUX 06-20-2008 12:25 AM

This might also help:

Mount drive in linux

jomen 06-20-2008 01:15 AM

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:
Code:

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.


All times are GMT -5. The time now is 06:10 AM.