LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-19-2008, 01:46 PM   #1
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Rep: Reputation: 30
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.
 
Old 06-19-2008, 01:56 PM   #2
wernerz
Member
 
Registered: Jun 2008
Location: Ottawa, Ontario, Canada
Distribution: debian, dsl-n
Posts: 55

Rep: Reputation: 15
Sounds like a hardware problem. Disconnect the drive cables and reconnect firmly. Bad connections can cause this problem.
 
Old 06-19-2008, 02:06 PM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
What kind of disk is in the drive - it may be bad - or it may be ... audio ? (cannot mount that)
 
Old 06-19-2008, 02:43 PM   #4
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
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?
 
Old 06-19-2008, 03:03 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
...because it has no filesystem
 
Old 06-19-2008, 06:20 PM   #6
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
How do I attach the CD drive to the filesystem? I made the DVD drive a directory: /dvdrom.
 
Old 06-19-2008, 06:55 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.

Last edited by michaelk; 06-19-2008 at 06:57 PM.
 
Old 06-19-2008, 07:31 PM   #8
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
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

Last edited by Drone4four; 06-19-2008 at 07:35 PM.
 
Old 06-19-2008, 07:38 PM   #9
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
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
 
Old 06-19-2008, 08:37 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 06-19-2008, 10:45 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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!
 
Old 06-20-2008, 12:25 AM   #12
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
This might also help:

Mount drive in linux
 
Old 06-20-2008, 01:15 AM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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.
 
  


Reply

Tags
dvd, mount



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
CDRW/DVD Combo Drive, DVD Not Mounting Wulfrunner Linux - Hardware 6 06-22-2006 08:48 AM
dvd drive mounting simcox1 Slackware 25 08-14-2005 02:28 AM
Mounting DVD drive rcontino Linux - Hardware 4 07-13-2005 10:03 PM
Mounting DVD to a CDR/DVD combo drive f34r7h1s Slackware 38 05-16-2005 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration