LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-20-2003, 02:38 PM   #1
Roy-Svork
Member
 
Registered: Jan 2003
Location: Reading, UK
Distribution: Mandrake 9.2
Posts: 56

Rep: Reputation: 15
Exclamation CD Drive Problems


I recently installed Mandrake 9.0, and all was fine, but after reinstalling to sort some issues out, my CD-Rom drives are now very tempremental. I use bookmarks that I created and copied to the desktop to access them, but sometimes the system will process something for a good 2-3 minutes, then report that I do not have access rights to dev/cdrom or dev/cdrom2, regardless of whether there is a CD in the drive or not. Both my drives are using IDE-SCSI emulation so they will work with x-cd-roast, but other than that I can't see what is causing the problem.

A.H.M.A
 
Old 03-21-2003, 08:16 AM   #2
amulheirn
LQ Newbie
 
Registered: Mar 2003
Location: Reading, UK
Distribution: Mandrake 9.0
Posts: 17

Rep: Reputation: 0
Yup - I have the same problem.

Had various issues with a previous install of Mandrake 9 so when I got a new motherboard I decided to re-install from scratch at the same time.

I have two CD drives - /dev/hdc is a DVD ROM from Creative and /dev/scd0 is a CD-RW from LG. Both appear recognised ok. Both have "user" set in /etc/fstab so that users other than root can mount them.

I've been searching the web for information and thought that upgrading the kernel would be a solution. Apparently there was a bug in supermount (which is what mounts drives automatically when you put a disk in them) and this is fixed in 2.4.19-24 kernel (the original one was 2.4.19-16). This hasn't helped though.

When I have a cd in hdc I am getting a lot of errors in the messages log file referring to things like "hdc: drive not ready for command", "hdc: ATAPI reset complete".

hdd does list files when I put a CD in it. It regularly stalls when trying to copy files from it to the hard disk though. And I get "drive not ready" errors and "scsi: aborting due to timeout" messages instead.

Anyone got any bright ideas? I see a lot of people with this problem, but no definite answers so far.

Thanks in advance,

Andrew
 
Old 03-21-2003, 08:31 AM   #3
amulheirn
LQ Newbie
 
Registered: Mar 2003
Location: Reading, UK
Distribution: Mandrake 9.0
Posts: 17

Rep: Reputation: 0
Interestingly, although I am managing to copy files very slowly from the CD-RW (it is stopping and starting all the time and freezing the X session sometimes), the supermount thing doesn't appear to have mounted the drive:

[root@infohaus mnt]# more /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda5 /home ext3 rw 0 0
none /mnt/cdrom supermount ro,nosuid,nodev,noexec 0 0
none /mnt/cdrom2 supermount ro 0 0
none /mnt/floppy supermount rw,sync 0 0

The message about not having access rights to the drive must be wrong. Below are the permissions shown - read, write and execute for everyone:

[root@infohaus mnt]# ls -la
total 12
drwxr-xr-x 6 root root 4096 Mar 21 10:54 ./
drwxr-xr-x 19 root root 4096 Mar 21 12:18 ../
drwxrwxrwx 1 root root 0 Mar 21 12:18 cdrom/
drwxrwxrwx 1 root root 0 Mar 21 12:18 cdrom2/
drwxr-xr-x 2 root root 4096 Mar 21 10:54 disk/
drwxrwxrwx 1 root root 0 Mar 21 12:18 floppy/
[root@inf[root@infohaus mnt]# more /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw 0 0
/dev/hda5 /home ext3 rw 0 0
none /mnt/cdrom supermount ro,nosuid,nodev,noexec 0 0
none /mnt/cdrom2 supermount ro 0 0
none /mnt/floppy supermount rw,sync 0 0
[root@infohaus mnt]# ls -la
total 12
drwxr-xr-x 6 root root 4096 Mar 21 10:54 ./
drwxr-xr-x 19 root root 4096 Mar 21 12:18 ../
drwxrwxrwx 1 root root 0 Mar 21 12:18 cdrom/
drwxrwxrwx 1 root root 0 Mar 21 12:18 cdrom2/
drwxr-xr-x 2 root root 4096 Mar 21 10:54 disk/
drwxrwxrwx 1 root root 0 Mar 21 12:18 floppy/
[root@infohaus mnt]#ohaus mnt]#


Please help! This is driving me up the wall....
 
Old 03-21-2003, 11:28 AM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Post your fstab amulheirn.
 
Old 03-21-2003, 12:07 PM   #5
amulheirn
LQ Newbie
 
Registered: Mar 2003
Location: Reading, UK
Distribution: Mandrake 9.0
Posts: 17

Rep: Reputation: 0
Here ya go.

Code:
/dev/hda1 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda5 /home ext3 defaults 1 2
none /mnt/cdrom2 supermount dev=/dev/scd0,fs=auto,ro,--,user,iocharset=iso8859-1
5,codepage=850,noauto,umask=0 0 0
/dev/fd0 /mnt/floppy auto codepage=850,sync,unhide,noauto,iocharset=iso8859-15,n
osuid,umask=0,user,nodev 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0

Some more developments which have improved things a little bit:

- mounting drives manually gives me some access. Supermount seems very much more flaky.

- I noticed that the DVD was not coming up in the hardware list of Mandrake control center, but was being seen by the BIOS. I have had this working before, but I disconnected the DVD's cable to test.

- Now, the system boots up much much quicker (it was pausing for 30 seconds at "Finding module dependencies"

- Additionally I can copy files off the CDRW at high speed without it "stalling".

- Also, the scsi timeout errors previously seen in the logs are gone.


Some progress at last! All I need to do now is work out what the incompatibility is. I'll try reversing master and slave first. I could put the DVD on the same channel as the hard disk, but I don't really want to do that as the hard disk is UDMA100 and the CD is UDMA66 I think which will affect performance (I believe the IDE bus runs at the speed of the slowest device on it - is that right?).

Any other suggestions would be welcome.

Andrew

Last edited by Aussie; 03-21-2003 at 12:18 PM.
 
Old 03-21-2003, 12:31 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
This is what my fstab looks like,
Code:
/dev/hda7        swap             swap        defaults                  0   0
/dev/hda2        /                reiserfs    defaults                  1   1
/dev/hda3        /home            reiserfs    defaults                  1   2
/dev/hda5        /home/media      reiserfs    auto,users,rw             1   2
/dev/hda6        /mnt/slack-c     reiserfs    auto,users,rw             1   2
/dev/hda1        /mnt/win98       vfat        auto,users,rw,umask=000   0   0
aptiva:/home     /mnt/aptiva      nfs         users,rw                  0   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,users,ro           0   0
/dev/cdrw        /mnt/cdrw        iso9660     noauto,users,ro           0   0
/dev/fd0         /mnt/floppy      vfat        noauto,users,rw,umask=000 0   0
none             /dev/pts         devpts      gid=5,mode=620            0   0
none             /proc            proc        defaults                  0   0
The [code] tag retains the format of files like fstab, making it easier to read the file when you post it, and is only one of many vB Codes that can be used at LQ.
Look here for instructions on how to use vB Code.

Last edited by Aussie; 03-21-2003 at 12:34 PM.
 
Old 03-22-2003, 01:34 PM   #7
amulheirn
LQ Newbie
 
Registered: Mar 2003
Location: Reading, UK
Distribution: Mandrake 9.0
Posts: 17

Rep: Reputation: 0
latest on this one - the DVD (a Creative PC-DVD Blaster 12x) doesn't want to play with the LG CD-RW that I have on the same channel, either as master or slave.

I've even swapped the connectors around to see if it perfers to be at the end or in the middle of the IDE cable. No luck.

I think I'll try and borrow a CD drive from someone else to replace it and see if that works.

Regards,
A.
 
Old 05-19-2003, 06:40 PM   #8
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15
kinda similar problem

i am also MDK9.0 and I have a /dev/hdc DVD and a /dev/scd0 LG CDRW

in the beginning there was no problem at all, however my friend complained me about his cd-rom not reading files normally. he used mdk90 too. i was kinda "it's must be your drive" until i got the same error.

it's like i put in the cd, supermount does its work, begin to copy files and after an uncertain amount of data it says the "file is not there" and no other files are. as time passed i figured out that from one kind of cd i can read 30MBytes, from others 400Mbytes, but i cannot - for example - create a complete ISO. then i booted up my XP which could handle every cd correctly.

now i am hestiant about getting any other distro [i dont think it's a drive fault any more], coz i dont feel that i could deal with debians difficultiness (however it's reaaaaly tempting), in short MDK is just for my newbie ego. BUT If true that MDK9.1 has no problems like this (only others) i'M pleased to download its isos in no time.

What do YOU think about it?
 
Old 05-19-2003, 06:57 PM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Have a look on mandrakes user forums for people with the same problem, and see if there are any bug reports about it.
 
Old 05-19-2003, 07:17 PM   #10
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15

... okay
however i am all ears

Last edited by ArchNGEL; 05-19-2003 at 07:21 PM.
 
Old 05-19-2003, 07:32 PM   #11
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15
btw

my /var/log/messages says (after a successful not-finding-files-anymore)

May 20 01:27:37 HAL-9000 kernel: udf: registering filesystem
May 20 01:27:37 HAL-9000 kernel: udf: bad mount option "codepage=852"

i dont really know what it means. i hope someone does.
 
Old 05-19-2003, 07:41 PM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Post your fstab.
 
Old 05-19-2003, 08:38 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,448

Rep: Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212Reputation: 6212
I suggest disabling supermount.
supermount disable

man pages supermount

supermount does not work well when trying to copy an entire CD.

Of course you will not have to manually mount / umount your CDs.
 
Old 05-19-2003, 08:43 PM   #14
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15
i guess the problem is SUPERMOUNT
(after checking the 60th page of mandrake forum i found that info)

now it seems to work. not that i mount manually

anyways, thanks for your cooperation!!!





ps: whatt is beyond my comprehension; how cum it wasn't a problem for the first two months ?


/dev/hdb2 / ext3 defaults 1 1
/dev/hdb1 /home ext3 defaults 1 1
/dev/scd0 /mount/cdrom iso9660 ro,user,noauto,unhide
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=iso8859-2,codepage=852,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-2,sync,codepage=852,umask=0 0 0
/dev/hda1 /mnt/nt ntfs noauto,iocharset=iso8859-2,ro,umask=0 0 0
none /proc proc defaults 0 0

Last edited by ArchNGEL; 05-19-2003 at 08:45 PM.
 
Old 05-19-2003, 08:55 PM   #15
ArchNGEL
Member
 
Registered: Apr 2003
Location: Hungary
Distribution: Fedora Core 6 (2.6.18)
Posts: 61

Rep: Reputation: 15
michaelk

thanks!! your post wasnt there when i started that msg.

its still funny. i did cdcopies with supermounted cds in the past

Thanks anyways guys.
 
  


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
hard drive problems slinky2004 Linux - General 2 11-06-2005 03:21 PM
cd drive problems jakebhoy Mandriva 7 09-21-2005 09:43 PM
Hard Drive Problems aznboi12321 Linux - Hardware 5 05-03-2005 09:27 AM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 07:23 PM
SuSE CD Drive Problems Shrimp Linux - Distributions 3 05-19-2002 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:52 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