LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2005, 07:40 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Unable to read DVD


I am just now trying to mount and access files from a DVD in my drive and can't seem to understand why nothing is detected.

Code:
root@slackbox:~# mount -t /dev/cdrom
root@slackbox:~# cd /dev/cdrom
-bash: cd: /dev/cdrom: Not a directory
root@slackbox:~# cd /mnt/cdrom/
root@slackbox:/mnt/cdrom# ls
root@slackbox:/mnt/cdrom#
Here is a copy of my FSTAB...

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 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
/dev/sdb /mnt/usbkey vfat gid=100,mode=777,defaults,auto,rw$
none /sys sysfs defaults 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,commen$


 
Old 06-13-2005, 08:19 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Does /dev/cdrom actually point to the correct device? What is it currently linked to?
 
Old 06-13-2005, 08:24 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally posted by trickykid
Does /dev/cdrom actually point to the correct device? What is it currently linked to?
I really don't know - how can I determine if it is or is not...???
 
Old 06-13-2005, 08:30 AM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
ls -a /dev/cdrom
 
Old 06-13-2005, 08:52 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Code:
root@slackbox:/mnt/cdrom# ls -a /dev/cdrom
/dev/cdrom@
I still don't see anything and I have a UT2004 DVD sitting in there.
 
Old 06-13-2005, 09:03 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
If you use -t, you have to actually specify a filesystem.

I'm not sure DVDs use iso9660. . . try "mount -t auto" - should work
 
Old 06-13-2005, 09:09 AM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
i don't see anything that would mount the DVD into /mnt/cdrom there.

If your fstab hasn;t been touched by you it's probably correct and that's the device

what about

mount /dev/cdrom /mnt/cdrom

ls /mnt/cdrom

this works whenever i mount my cd rom devices

Last edited by ethics; 06-13-2005 at 09:11 AM.
 
Old 06-13-2005, 09:19 AM   #8
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
Re: Unable to read DVD

Quote:
Originally posted by carlwill
I am just now trying to mount and access files from a DVD in my drive and can't seem to understand why nothing is detected.

Code:
root@slackbox:~# mount -t /dev/cdrom
root@slackbox:~# cd /dev/cdrom
-bash: cd: /dev/cdrom: Not a directory
root@slackbox:~# cd /mnt/cdrom/
root@slackbox:/mnt/cdrom# ls
root@slackbox:/mnt/cdrom#
Here is a copy of my FSTAB...

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 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
/dev/sdb /mnt/usbkey vfat gid=100,mode=777,defaults,auto,rw$
none /sys sysfs defaults 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,commen$


The correct syntax would be
mount [device] [mount directory]
that is, if your device is /dev/cdrom and the directory you want to mount it to is /mnt/cdrom, you'd type
mount /dev/cdrom /mnt/cdrom
 
Old 06-13-2005, 09:24 AM   #9
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
That's not necessary for items in the fstab - you only need to specify one of the two, mount point or dev node, and it will use the fstab entry to work out the other.
 
Old 06-13-2005, 10:21 AM   #10
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Sorry, I made a typo. Try 'ls -al /dev/cdrom' to see where it links to. You should see something like '-> /dev/hdc' in the ouptut. Or, if you have two optical drives, it could be /dev/hdd. On the other hand, if you have only one, I don't see why would you specify in fstab both /dev/cdrom and /dev/hdc.
If /dev/cdrom is indeed your only drive, see if this works:
Code:
mount -t iso9660 /dev/hdc /mnt/cdrecorder
ls -al /mnt/cdrecorder
And if you want to see which drive is mounted where, simply type 'mount'.
 
Old 06-13-2005, 10:27 AM   #11
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
bah...

Code:
root@slackbox:/# mount -t iso9660 /dev/hdc /mnt/cdrecorder
mount: mount point /mnt/cdrecorder does not exist
 
Old 06-13-2005, 10:34 AM   #12
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Ok, try this one:
Code:
mount -t iso9660 /dev/hdc /media/cdrecorder
ls -al /media/cdrecorder
man mount
Again my mistake, it looked to me like fstab said mnt instead of media.

Last edited by harken; 06-13-2005 at 10:35 AM.
 
Old 06-13-2005, 10:39 AM   #13
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
That worked!

Code:
root@slackbox:/# mount -t iso9660 /dev/hdc /media/cdrecorder
mount: block device /dev/hdc is write-protected, mounting read-only
root@slackbox:/# ls -al /media/cdrecorder
total 28972
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 ./
drwxr-xr-x  3 root root       80 2005-06-12 21:04 ../
-r-xr-xr-x  1 root root       53 2004-03-03 13:47 AutoRun.inf*
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD1/
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD2/
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD3/
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD4/
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD5/
dr-xr-xr-x  1 root root     2048 2004-04-09 23:05 CD6/
-r-xr-xr-x  1 root root    24576 2004-03-03 13:57 Setup.exe*
-r-xr-xr-x  1 root root 29627635 2004-03-03 21:42 linux-installer.sh*
 
Old 06-13-2005, 10:45 AM   #14
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Good. If so, get rid of that last line in fstab and modify the second one to look like this:
Code:
/dev/hdc /media/cdrecorder iso9660 noauto,exec,users,ro 0 0
Next time you want to use you dvd drive, run
Code:
mount /dev/hdc
and you know it'll be hooked to /media/cdrecorder.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't read data DVD-R on my DVD-ROM/CD-RW combi drive bruceyboy Linux - Hardware 0 11-17-2004 11:25 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
combo rom won't read/play dvd, no ans from dvd-howto sirpelidor Linux - Hardware 0 12-22-2003 11:20 AM
my dvd is read as hdd and my ide cd-rw is read as scsi??? spyghost Linux - Hardware 11 07-16-2003 04:03 PM
DVD problems, unable to read them. Rhapsodic Linux - General 8 12-11-2002 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 PM.

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