lkml.org 
[lkml]   [1999]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CD-ROM + Modem = errrr...
Romano Giannetti wrote:
>
> On Thu, Jul 15, 1999 at 08:08:07AM +0200, Jens Axboe wrote:
> > At 10:10 15-07-99 +1000, Roddy wrote:
> > >
> > >Linux roddy 2.2.6 #3 Tue May 4 09:34:17 EST 1999 i686 unknown
> > >Debian (potato)
> > >Any suggestions/ideas/comments?
> >
> > Yes, try unmasking IRQ's on the CD-ROM with hdparm.
> >
> Jens, I have the problem that:
>
> stat("/dev/hdc", {st_mode=S_IFIFO|S_ISGID|S_ISVTX, st_size=0, ...}) = 0
> open("/dev/hdc", O_RDONLY) = -1 ERRNO_123 (No medium found)
>
> So that my boot script to change parameters does not work. hdparm is
> release 3.5. kernel 2.2.10. RH 6.0. I have to put a cdrom to let the
> driver accept -u 1.
>
> Am I doing something wrong?

It means there is no cd in the cdrom drive. But if you type hdparm
/dev/cdrom, it should display something like:
/dev/cdrom:
HDIO_GET_MULTCOUNT failed: Paramètre invalide
I/O support = 0 (default 16-bit)
unmaskirq = 1 (on)
using_dma = 0 (off)
keepsettings = 0 (off)
HDIO_GET_NOWERR failed: Paramètre invalide
readonly = 1 (on)
readahead = 8 (on)
HDIO_GETGEO failed: Paramètre invalide

The important line is "unmaskirq = 1 (on)" which said your command
has succeed. The errors came from that a cd does not behave like a hard
disk (it's not always present, it's read-only, it does'n support the
full eide commands but a subset named atapi , ...)

So you have not doing something wrong.
Just don't check the hdparm result in your script or do a hdparm -qu
/dev/cdrom

--
MandrakeSoft http://www.mandrakesoft.com/
--Thierry

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.120 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site