LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-16-2009, 10:54 AM   #1
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Rep: Reputation: 0
Question Mounting CdRom


Hey, i'm having trouble mounting my cdrom for some reason. I usually works just fine, but now it's not.

Input: mount /dev/cdrom
Output: mount: you must specify the file type

I'm logged in as root as well.

Thanks
 
Old 01-16-2009, 10:57 AM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,075

Rep: Reputation: 189Reputation: 189
For starters, you're not telling it where you want it mounted:

mount /dev/cdrom /mnt/cdrom

unless it appears in fstab, in which case, could you post your fstab?

cheers,

Last edited by mrclisdue; 01-16-2009 at 11:01 AM. Reason: elaboration
 
Old 01-16-2009, 12:47 PM   #3
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
Well, idk what your device is under /dev, but for some reason, mine is /dev/hdc. I don't understand why it's reading it as a hard drive (I thought it was supposed to be /dev/cdrom or /dev/cdrom0 or something), but try doing
Code:
mount /dev/hdb /mnt/cdrom
mount /dev/hdc /mnt/cdrom
mount /dev/hdd /mnt/cdrom
mount /dev/scd0 /mnt/cdrom
etc. and just cycle through the different possible devices until you find it (you can't mount an audio CD btw). Make sure you have the mount point ("/mnt/cdrom" or wherever you want to mount it), like mrclisdue said.
 
Old 01-16-2009, 02:15 PM   #4
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
Hmmm, neither of these seem to work, I did notice that when i restarted my system it said local file systems failed to mount.
 
Old 01-16-2009, 03:16 PM   #5
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
What errors are you getting when you try to mount?
 
Old 01-16-2009, 03:31 PM   #6
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Jinouchi View Post
What errors are you getting when you try to mount?
mount: you must specify the file type
 
Old 01-16-2009, 03:37 PM   #7
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
You can check the device with "dmesg|grep CD". Should say something like
Quote:
sr 4:0:0:0: Attached scsi CD-ROM sr0
which would mean /dev/sr0. Do a "ls -l /dev/sr0" if you want to check if that's a symlink, but it will work either way.
The filesystem for cd's is iso9660 and for dvd's udf.
You can mount with
Code:
mount -t iso9660 /dev/sr0 /media/cdrom
(change the device and mountpoint to what you have).
Check if there's a line for the cd in /etc/fstab. Post contents of that file if not sure, but somethink like this should work:
Quote:
/dev/sr0 /media/dvd udf,iso9660 defaults,ro,users,noexec,noauto 0 0
 
Old 01-16-2009, 03:50 PM   #8
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by makuyl View Post
You can check the device with "dmesg|grep CD". Should say something like which would mean /dev/sr0. Do a "ls -l /dev/sr0" if you want to check if that's a symlink, but it will work either way.
The filesystem for cd's is iso9660 and for dvd's udf.
You can mount with
Code:
mount -t iso9660 /dev/sr0 /media/cdrom
(change the device and mountpoint to what you have).
Check if there's a line for the cd in /etc/fstab. Post contents of that file if not sure, but somethink like this should work:
scsi 0:0:1:0: CD-ROM LITE-ON LTR-52246S 6S0C PQ: 0 ANSI: 5
Uniform CD-ROM driver Revision: 3.20
sr 0:0:1:0: Attached scsi CD-ROM sr0

Here's what i got and when i tried mounting it said: No medium found
 
Old 01-16-2009, 03:58 PM   #9
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
What kind of cd are you trying to mount?
Audio-cd's don't have a filesystem -> can not be mounted.
 
Old 01-16-2009, 04:54 PM   #10
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
It's Diablo 2: Lod
 
Old 01-16-2009, 05:41 PM   #11
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Does the mountpoint exist?
Try mounting as root.
Post exact command you gave for mounting.
 
Old 01-16-2009, 05:46 PM   #12
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by makuyl View Post
Does the mountpoint exist?
Try mounting as root.
Post exact command you gave for mounting.
[Spencer@gandolf ~]$ su
Password:
[root@gandolf Spencer]# mount -t iso9660 /dev/sr0 /media/cdrom
mount: No medium found
[root@gandolf Spencer]#
 
Old 01-16-2009, 06:01 PM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Might sound silly but do you have the cd in the drive?
 
Old 01-16-2009, 07:41 PM   #14
childofageek
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian Sarge and Fedora Core 4.0
Posts: 8

Original Poster
Rep: Reputation: 0
Yep, its in. It also can't be the disk have tried multiple.
 
Old 01-16-2009, 08:45 PM   #15
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Is the CDROM drive broken? Also, please read link #4 in my signature.

Last edited by weibullguy; 01-16-2009 at 08:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 05:46 PM
Mounting cdrom adds2one Slackware 2 11-28-2005 05:41 AM
mounting cdrom viper96477 Linux - General 1 10-12-2004 05:29 AM
mounting cdrom emer_son Slackware 4 08-23-2004 06:35 AM
CDROM mounting... 777SPy Linux - Hardware 1 08-10-2003 01:51 PM


All times are GMT -5. The time now is 05:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration