[ale] ATAPI vs ide-scsi trouble
Mike Panetta
ahuitzot at mindspring.com
Fri Jan 9 00:18:34 EST 2004
How did you mount /dev/sg1? The sg devices are not block devices,
they are character devices meant to be used when you want to send
raw scsi commands to a device (EG like cdrecord does to write to a
CD) not to access them in the traditional manner. I believe both /dev/sr[n]
and /dev/scd[n] are the same devices. Check the major and minor
numbers on them to make sure. I think its all just a naming convention.
BTW, you cannot use the ide-scsi module with IDE cdroms if you have
the ide-cd module loaded first. It won't find them. If you have more then
one IDE cdrom device (say a reader, and an RW drive) and you only want
one of the devices to show up in the ide-scsi list, you need to explicitly
exclude it from detection by the ide-cd driver. I know this is possible, but I
can't remember off the top of my head. Consult the kernel documentation or
the source for the ide-cd driver module.
Mike
-----Original Message-----
From: Dow Hurst <dhurst at kennesaw.edu>
Sent: Jan 8, 2004 8:47 PM
To: Atlanta Linux Enthusiasts <ale at ale.org>
Subject: Re: [ale] ATAPI vs ide-scsi trouble
After reading up a bit on how the drivers work for ATAPI CD
type devices, I believe I need to do some testing to see if
the ide-cd driver and the ide-scsi emulation are
conflicting. If I mount the drive via /dev/hdc then the
ide-cd driver may be the kernel driver used. If I mount the
device via /dev/scd0 then the ide-scsi driver would be used.
If I mount the device via /dev/sr0 then some SCSI driver
is used but I am not sure it's relationship to /dev/scd0. I
haven't found an explanation of the driver layering and
which device driver is most appropriate for a particular
device or filesystem. How can I know which file of:
/dev/sg0
/dev/scd0
/dev/sr0
/dev/hdc
for mounting a particular device? I know SUSE seems to use
/dev/sr0 while RedHat wants me to use /dev/scd0 for iso9660
filesystems on a ide-scsi emulated CD or DVD drives. Last
night I got to a USB card reader via /dev/sg1.
Thanks,
Dow
Dow Hurst wrote:
> I have been working on a storage solution for our molecular dynamics
> lipid simulations done at the Pittsburgh Supercomputer Center. One of
> our researchers uses the Pitt. computers and then downloads a tar file
> of her data to store here at KSU. The simulations run into 4Gb of data
> per simulation of up to 2 picoseconds or more of simulation time. My
> solution is to have her burn a couple of DVDs, with a iso9660 format, of
> the data. One DVD would stay at KSU and the other would go home with her.
>
> My problem has cropped up with the DVD ATAPI drives having errors such
> as below when trying to access files on the DVD that has been burned and
> verified okay by K3B on SUSE 9.0. The DVDs have been burned on two
> different DVD burners and are two different DVD disc compositions, one
> is 2x and the other is the newer 4x capable surface. Both discs have
> exhibited this problem when accessing files thru an ATAPI based DVD
> reader drive:
>
> Dec 24 11:58:02 knife kernel: hdc: irq timeout: error=0x00
> Dec 24 11:58:02 knife kernel: hdc: ATAPI reset complete
> Dec 24 11:58:02 knife kernel: end_request: I/O error, dev 16:00 (hdc),
> sector 7235292
> Dec 24 11:58:12 knife kernel: hdc: irq timeout: status=0xd0 { Busy }
> Dec 24 11:58:12 knife kernel: hdc: irq timeout: error=0x00
> Dec 24 11:58:12 knife kernel: hdc: ATAPI reset complete
> Dec 24 11:58:22 knife kernel: hdc: irq timeout: status=0xd0 { Busy }
> Dec 24 11:58:22 knife kernel: hdc: irq timeout: error=0x00
> Dec 24 11:58:22 knife kernel: hdc: ATAPI reset complete
> Dec 24 11:58:22 knife kernel: end_request: I/O error, dev 16:00 (hdc),
> sector 7235296
>
> Now, if I emulate SCSI on the ATAPI drive or if I don't I still get the
> same errors. I've found this under the Emperor Linux kernel on a Dell
> I8500 laptop running SuSE 8.2, and on a Dell i360n workstation running
> standard RH9 with hyperthreading and the 2.4.20-24.9smp kernel. Now, on
> that same i360n workstation if I use the Firewire based LaCie DVD-RAM
> burner drive I don't get any errors at all.
>
> So, I think it must be a ATAPI kernel interface problem since the
> firewire uses SCSI-emulation. What is recommended? Anyone run into
> this or hear of this kind of problem? Thanks,
> Dow
>
> PS. The ATAPI DVD drives are readers only. One is on the Dell
> workstation and one is on the Dell laptop. I could post specifics on
> the drives if needed, but I am wondering if this isn't hardware related
> but the ATAPI IDE module.
>
> --
> __________________________________________________________
> Dow Hurst Office: 770-499-3428 *
> Systems Support Specialist Fax: 770-423-6744 *
> 1000 Chastain Rd. Bldg. 12 *
> Chemistry Department SC428 Email: dhurst at kennesaw.edu *
> Kennesaw State University Dow.Hurst at mindspring.com *
> Kennesaw, GA 30144 *
> ************************************************************
> This message (including any attachments) contains *
> confidential information intended for a specific individual*
> and purpose, and is protected by law. If you are not the *
> intended recipient, you should delete this message and are *
> hereby notified that any disclosure, copying, distribution *
> of this message, or the taking of any action based on it, *
> is strictly prohibited. *
> ************************************************************
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428 *
Systems Support Specialist Fax: 770-423-6744 *
1000 Chastain Rd. Bldg. 12 *
Chemistry Department SC428 Email: dhurst at kennesaw.edu *
Kennesaw State University Dow.Hurst at mindspring.com *
Kennesaw, GA 30144 *
************************************************************
This message (including any attachments) contains *
confidential information intended for a specific individual*
and purpose, and is protected by law. If you are not the *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it, *
is strictly prohibited. *
************************************************************
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list