LinuxQuestions.org
Visit Jeremy's Blog.
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 07-03-2005, 01:47 PM   #1
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Rep: Reputation: 15
CDrom stopped working


For some reason my cdrom doesnt mount anymore. It worked fine from the get-go, the only reason I can think of is because I created a swapfile yesterday. The swapfile works fine.

The cdrom was working perfectly before I created the swapfile. Here is the error I get when it tries to mount the cdrom on bootup.

mount: wrong fs type, bad option, bad superblock -on /dev/cdrom, or too many mounted file systems.

I removed the entry in fstab so the swapfile didn't load, thinking that might fix so I could at least copy the file I wanted from the cdrom, rebooted, and it still encountered an error when mounting my cdrom. Also, the floppy isn't mounting either. So turning off the swapfile didn't seem to fix it.

The cdrom and floppy stopped working after I created the swapfile, that is the only explanation I can think of because they worked fine before.

My goal is to get the cdrom and floppy working again and have the swapfile on.

My system is DSLinux, linux formatted ext2, on a P233mhz, 2GB HD, 32megs RAM.
 
Old 07-03-2005, 02:09 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Please do 'ls -l /dev/cdrom'. Perhaps (most likely) it was a symlink that is now pointing to the wrong place (for some unknown reason).
 
Old 07-03-2005, 02:26 PM   #3
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
ok now what

ok i did 'ls -l /dev/cdrom' and heres what it said

lrwxrwrxrwx 1 root root 9 Jul 3 1343 /dev/cdrom -> /dev/scd0

how do I fix it?
 
Old 07-03-2005, 02:30 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Do you have an external or SCSI cd drive?

Please do 'dmesg | grep -i cd'
 
Old 07-03-2005, 02:33 PM   #5
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
cdrom

its a scsi toshiba internal cdrom drive.
 
Old 07-03-2005, 02:49 PM   #6
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
i tried

mount /dev/scd0 /mnt/cdrom

it said it was mounting it but said error i must specify the file system type, im not quite sure if that would fix it.
 
Old 07-03-2005, 02:52 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Are you sure the CD inside is good?
 
Old 07-03-2005, 03:01 PM   #8
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
yes i'm sure ive tried a couple of different cds to make sure.. ive tried an audio cd and a couple of different data cds.
i tried

mount /dev/cdrom /mnt/cdrom

but it says i must specify the filesystem and i dont know what that means i am pretty new to linux.

like mount -r or somthing?
 
Old 07-03-2005, 03:29 PM   #9
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
specifically when i

mount /dev/cdrom /mnt/cdrom or even mount /dev/sdc0 /mnt/cdrom

/dev/cdrom: Input/output error
mount: block device /dev/cdrom is write-protected, mounting read-only
mounting read only
/dev/cdrom: Input/output error
mount: you must specify the filesystem type

please help. it is driving my batty, i am googling everything i can think of.
 
Old 07-03-2005, 04:06 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,720

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
Insert a data disk and try the following command as root:
mount -t iso9660 /dev/scd0 /mnt/cdrom

Do you still see input/output errors?

You can not mount audio CDs becasue they do not contain a valid filesystem.

Can you duplicate your exact commands when you created the swapfile?
 
Old 07-03-2005, 04:32 PM   #11
burningsun1981
LQ Newbie
 
Registered: Jul 2005
Distribution: knoppix livecd, damn small linux hdinstall
Posts: 25

Original Poster
Rep: Reputation: 15
ITS WORKING!!

Typing mount -t iso9660 /dev/scd0 /mnt/cdrom

did finally mount the cd.

after that I was at root@/cdrom: when typing ls , it wouldn't display anyfiles on the cd, neither could i see anything in a gui file viewer. but it was mounting and unmounting, because the eject command ejected the cdrom.

so I rebooted and then mounted the cd and presto I could see the files and work with them again.

mount /dev/cdrom /mnt/cdrom a million times finally caught on!!

in reguards to the process I learned to create a swap file this is what I did, I think i did it right because it works. i put the swapfile in /opt

root@opt: dd if=dev/hda1 of=swapfile bs=1024 count=132207

mkswap swapfile
swapon swapfile

then added /opt/swapfile swap swap defaults 0 0 to fstab

Thank you so much for you help! I'll be keeping a close eye on my cdrom and floppy and keep you posted.
Next I'm on to my first time compiling and installing software in Linux. I'm going to try and install xscreensaver.
 
  


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
su stopped working bulldogzerofive Linux - Software 5 01-17-2005 02:05 AM
X stopped working sueno Fedora 15 10-02-2004 12:23 PM
It stopped working. UmneyDurak Fedora 8 08-15-2004 02:41 PM
cdrom and dvd-rom just stopped working... rebelcan Linux - Hardware 0 04-18-2004 08:36 PM
My X just stopped working??? freeindy Linux - Newbie 4 11-30-2002 10:53 AM


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