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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-01-2002, 05:46 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20
Rep:
|
Yet another CDcdr Burner Problem (Gentoo)
I'll give you all the info I have, which should be enough
burner is on /dev/hdc
but due to ide-scsi it's now /dev/scsi/host0/bus0/target0/lun0/cd
lilo.conf:
image = /boot/vmlinuz
root = /dev/hda3
label = Gentoo
# read-only # read-only for checking
append ="hdc=ide-scsi"
modules.autoload:
ide-scsi
sg
sr_mod
cdrecord -scanbus:
scsibus0:
0,0,0 0) ' ' 'CD-R/RW RW7063A ' '1.50' Removable CD-ROM
I do have a scsi card installed on this system, but I've yet to seem to have the system to recognize it, but that's not the issue at hand
now when I try to mount the drive with a regular cd, it locks up the system
I tried doing a hdparm -c1 -d0 /dev/scsi/host0/bus0/target0/lun0/cd
but it said that it wasn't supported by hdparm
so I commented out ide-scsi reran lilo and rebooted and it reappeared as /dev/hdc again
where I did a hdparm -c1 -d0 /dev/hdc on the drive then tried mounting it. and it worked
reading a previous thread http://www.linuxquestions.org/questions/history/28219
he somehow had his burner showing up in scsi as well as /dev/hdd on his computer, if I could do that, I presume everything would work
I'm running Gentoo 1.4rc1
Any ideas?
Thanks
-Wonko
Last edited by Wonko the Sane; 11-01-2002 at 05:47 PM.
|
|
|
11-01-2002, 07:08 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
/dev/scsi/host0/bus0/target0/lun0/cd
sounds really friggin weird, my scsi cdroms appear, emulated or real, as /dev/scdX. Could you post of the "dmesg" section where the kernel does the ide-scsi device scan?
Also, about getting that other SCSI card working, if its a PCI device, what's the output of "/sbin/lspci"
Cheers.
Finegan
|
|
|
11-01-2002, 07:37 PM
|
#3
|
LQ Newbie
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20
Original Poster
Rep:
|
scsi card is isa, and hooks upto scsi pcmcia cards, don't ask, I don't know why either, but it's there
alright
dmesg .. i'll just post the snips that I think have value
dmseg:
Kernel command line: BOOT_IMAGE=Gentoo ro root=303 hdc=ide-scsi
ide_setup: hdc=ide-scsi
...
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD300BB-00AUA1, ATA DISK drive
hdb: WDC AC26400R, ATA DISK drive
hdc: CD-R/RW RW7063A, ATAPI CD/DVD-ROM drive
hdd: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 58633344 sectors (30020 MB) w/2048KiB Cache, CHS=3649/255/63, UDMA(33)
hdb: 12594960 sectors (6449 MB) w/512KiB Cache, CHS=784/255/63, UDMA(33)
ide-floppy driver 0.99.newide
hdd: No disk in drive
hdd: 98304kB, 32/64/96 CHS, 4096 kBps, 512 sector size, 2941 rpm
...
SCSI subsystem driver Revision: 1.00
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: Model: CD-R/RW RW7063A Rev: 1.50
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
if I missed anything
the file is also located at www.monolithictechnologies.com/files/foobar1
|
|
|
11-01-2002, 10:00 PM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
Yeah, there's some tag to use to get the justification right.
Perfect fun little Linux box, the last iteration of the PII, a 3dfx Banshee card, the uber-reliable cheap ensoniq sound card, internal Zip drive, and a pair of Western Digis. Dmesg rocks...
Its probably registered as /dev/sr0, you can run a scanbus on that and see what it detects. Offhand I think you're ready to go. What's your favorite CD burning frontend? Xcdroast?
Oh is that an old Ricoh CDRW drive? I think I have its scsi cousin.
Cheers,
Finegan
|
|
|
11-02-2002, 01:23 AM
|
#5
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
It looks like you're using devfs, which is why your SCSI emulated device
shows up where it does. It also appears to be assigned the /dev/sr0
device, according to the dmesg ouput you've posted, though /dev/sr0 is
just a symlink to /dev/scsi/.../cd.
hdparm only works with IDE/ATA devices, so it will give you an error
when you try to run it on a SCSI device, which is what linux believes
your CDROM is, when you use ide-scsi.
What is the mount command you use to mount the drive when SCSI
emulation is enabled?
Did you build support for generic scsi devices into your kernel? If not,
check in:
/lib/modules/2.X.XX/kernel/drivers/scsi
where X.XX is the revision number of your kernel, for sr_mod.o. This,
is necessary for you to be able to use IDE devices emulating SCSI
devices. If that module exists, see if it's loaded into the kernel:
lsmod
If it not, try loading it by hand:
modprobe sr_mod
If this doesn't work, you won't be able to use the CDROM with SCSI
emulation until you figure out why that doesn't work. If the module is
loaded, try doing:
mount /dev/sr0 /mnt
Post output from all steps, if it seems necessary.
|
|
|
11-02-2002, 06:16 AM
|
#6
|
LQ Newbie
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20
Original Poster
Rep:
|
yeah, the system has a voodoo 5 =]
alright lsmod returned these results
lsmod:
sr_mod 16120 0 (unused)
sg 29420 0 (unused)
ide-scsi 8944 0
scsi_mod 88900 3 [sr_mod sg ide-scsi]
eeprom 3668 0
w83781d 20688 0
i2c-proc 7504 0 [eeprom w83781d]
i2c-isa 1164 0 (unused)
i2c-piix4 4304 0 (unused)
dmi_scan 2084 0 [i2c-piix4]
i2c-core 16332 0 [eeprom w83781d i2c-proc i2c-isa i2c-piix4]
and here's scanbus again
cdrecord -scanbus:
Cdrecord 1.11a33 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) ' ' 'CD-R/RW RW7063A ' '1.50' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
I tried mounting mount /dev/sr0 /mnt/cdrom
It worked, but I still need to change the dma, to off, because it's still hanging my system=\
as stated before hdparm -c1 -d0 /dev/hdc worked wonders.
Thanks for the help so far
Oh, yeah, the burner is a Plextor 6x2x36x
Last edited by Wonko the Sane; 11-02-2002 at 07:07 AM.
|
|
|
11-02-2002, 07:41 AM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
changing the lilo.conf append line should do it:
append="hdX=ide-scsi ide=nodma"
should do it, I might have monkeyed the sytax offhand. I don't know if that's going to just turn off dma entirely, or just for the hard drive and then be ignored by the cdrom as that's a scsi device now... if it does work and shuts off dma for both, you can turn dma back on for the HD in /etc/rc.d/rc.local with a few choice hdparm commands.
Kind of hackish, but it should work.
Luck,
Finegan
|
|
|
11-02-2002, 07:53 AM
|
#8
|
LQ Newbie
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20
Original Poster
Rep:
|
Yeah, all of that is under /etc/config.d/local.start in Gentoo [=
It's like that in redhat
|
|
|
11-02-2002, 08:08 AM
|
#9
|
LQ Newbie
Registered: Nov 2002
Location: Raleigh, NC
Distribution: Gentoo
Posts: 20
Original Poster
Rep:
|
w00t! It works!
Thanks you sooo much, this has been annoying the hell out of me for the past month!
Now I can burn off about 20 gigs of crap that's been plauging my hard drive!
|
|
|
All times are GMT -5. The time now is 06:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|