Re: cds disappeared
Rick Lotoczky wrote... Sorry, I'm really confused about who has the problem, but I *do know* my system isn't working properly. Also, it is different...I didn't know about the two drives until after I sent mail to you. Anyway...here goes-- On 04-Sep-99 Kenneth D. Merry said: Rick Lotoczky wrote... ...my stuff deleted It sounds like you've only got one CDROM drive in each machine. Please send the output of the following, with mountable media in the drive: camcontrol devlist -v root:~# /sbin/camcontrol devlist -v [ ... ] scbus1 on ncr0 bus 0: HP C4324/C4325 1.27 at scbus1 target 0 lun 0 (pass6,cd0) [ ... ] camcontrol tur cd0 -v root:~# /sbin/camcontrol tur cd0 -v Unit is not ready (pass6:ncr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass6:ncr0:0:0:0): NOT READY asc:3a,0 (pass6:ncr0:0:0:0): Medium not present You don't have a CD in your drive, or the drive doesn't think you do. There's no way FreeBSD will be able to mount it if the drive doesn't think it has media. camcontrol inquiry cd0 root:~# /sbin/camcontrol inquiry cd0 -v pass6: HP C4324/C4325 1.27 Removable CD-ROM SCSI-2 device (pass6:ncr0:0:0:0): INQUIRY. CDB: 12 1 80 0 ff 0 (pass6:ncr0:0:0:0): ILLEGAL REQUEST asc:24,0 (pass6:ncr0:0:0:0): Invalid field in CDB sks:c0,2 - pass6: 3.300MB/s transfers | | | Looks like something is wrong here-- The only thing "wrong" is that your CDROM drive doesn't handle the serial number inquiry. Most don't, so it's nothing to worry about. the NCR driver compiles with warnings... Don't worry about the compile warnings too much. mount /dev/cd0a /mnt mount just hangs until a timeout and then gives: mount: Input/Output error Thanks for the help Ken. By the way, my machine is dual-boot with NT. The CD works fine with the other OS. It's hard to say what's wrong with your drive, although you do have one of those HP/Philips WORM drives that's known to be a bit screwy. If you boot without media in it, it'll probably take a long time for the probe message to show up, since the drive takes forever to return a read capacity command when it has no media. Just because the CD in question works fine with other OSes doesn't mean that FreeBSD's cd9660 code can handle it. If the test unit ready you issued above was done when there was media in the drive (i.e. the CD in question), then you've likely got a hardware problem of some sort. That's because the drive is telling you that it doesn't have any media. There's nothing the OS can do to affect that behavior, unless it's the result of some bizarre firmware bug that requires commands to be sent in some non-standard order. I doubt that's the case, though, since other people have identical drives that function just fine. If your drive is reporting medium not present when a CD is in the drive, there's probably something wrong with it. If it does the same with every CD you stick in it, that just makes the results more conclusive. Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
# camcontrol tur cd0 -v Unit is not ready (pass2:ahc0:0:4:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass2:ahc0:0:4:0): NOT READY asc:3a,0 (pass2:ahc0:0:4:0): Medium not present Well, there's your problem, for better or worse. it's even kinkier than that. despite dmesg of cd0 at ahc0 bus 0 target 4 lun 0 cd0: TEAC CD-ROM CD-532S 1.0A Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 16) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: YAMAHA CRW4416S 1.0f Removable CD-ROM SCSI-2 device cd1: 8.333MB/s transfers (8.333MHz, offset 31) cd1: cd present [270542 x 2048 byte records] i can put a mountable disk in the TEAC and it will mount only on cd1c (note the 1 not 0), and vice versa with cd0c. i.e. they are reversed in some way. and let's remember that the kernel config says disk cd0 at scbus0 target 4 unit 0 disk cd1 at scbus0 target 5 unit 0 and, if i put an audio cdrom in the teac and xmcd -dev /dev/rcd1c, it sees the cd, gets the title etc. from the database, looks like it plays, but no sound. i will play more after a bit more sleep. randy To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
I am having the same problem with the CD as Ken is. actually, it was ken helping me with my problem. and it turns out my problem was that the two drives had been physically swapped, and when jet-lag subsided the bleeping idiot pilot realized his stupidity. apologies to all. randy To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Randy Bush wrote... # camcontrol tur cd0 -v Unit is not ready (pass2:ahc0:0:4:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass2:ahc0:0:4:0): NOT READY asc:3a,0 (pass2:ahc0:0:4:0): Medium not present Well, there's your problem, for better or worse. it's even kinkier than that. despite dmesg of cd0 at ahc0 bus 0 target 4 lun 0 cd0: TEAC CD-ROM CD-532S 1.0A Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 16) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: YAMAHA CRW4416S 1.0f Removable CD-ROM SCSI-2 device cd1: 8.333MB/s transfers (8.333MHz, offset 31) cd1: cd present [270542 x 2048 byte records] i can put a mountable disk in the TEAC and it will mount only on cd1c (note the 1 not 0), and vice versa with cd0c. i.e. they are reversed in some way. and let's remember that the kernel config says disk cd0 at scbus0 target 4 unit 0 disk cd1 at scbus0 target 5 unit 0 That's bizarre. I suspect this might have something to do with the recent disk/slice changes. You might want to talk to Poul-Henning Kamp [EMAIL PROTECTED] and see if he has any idea, because we haven't changed anything in CAM that would cause this that I know of. What happens if you just don't hardwire the CDs? They should show up in the same order. and, if i put an audio cdrom in the teac and xmcd -dev /dev/rcd1c, it sees the cd, gets the title etc. from the database, looks like it plays, but no sound. This could be a different problem, depending on how your sound is routed. Are you listening to your CDROM drive via the internal sound cable, routed through your sound card? Or are you using the external headphone jack? If you're routing it through your soundcard, there have been some major changes to the sound card drivers over the past few days that could explain the problem. If not, I dunno what's up. I assume you've checked the volume control on the front of the drive? Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Rick Lotoczky wrote... I am having the same problem with the CD as Ken is. I also tried the suggested diagnostics with exactly the same results. Media is in the drive, but it is not being recognized. I've been building kernels since FBSD-0.9 so I think I got that right by now. This cropped up somewhat recently (in the past few weeks). My CD was working fine when I used it last month. I usually rebuild the entire system once a week. I think there is a problem in the software. Two different drives on two different machines (my CD is connected to an NCR SCSI controller) with the same problem. This sounds like it could be a different problem than Randy Busy is having. He has two CDROM drives, and it looks like they have been swapped somehow. It sounds like you've only got one CDROM drive in each machine. Please send the output of the following, with mountable media in the drive: camcontrol devlist -v camcontrol tur cd0 -v camcontrol inquiry cd0 mount /dev/cd0a /mnt Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Kenneth D. Merry wrote: This sounds like it could be a different problem than Randy Busy is having. He has two CDROM drives, and it looks like they have been swapped somehow. It sounds like you've only got one CDROM drive in each machine. Please send the output of the following, with mountable media in the drive: camcontrol devlist -v camcontrol tur cd0 -v camcontrol inquiry cd0 mount /dev/cd0a /mnt Ken, What ever change is causing the problem with SCSI CD drives, it went into the tree sometime last week. I'm seeing the same error reported about xmcd. My last "cvsup ; make world" was on Sep 1. I haven't updated xmcd to see if the problem goes away. troutmask:root[201] camcontrol devlist -v scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) scbus0 on ahc0 bus 0: SEAGATE ST34371N 0280at scbus0 target 0 lun 0 (pass0,da0) DEC DLT2000 8B37 at scbus0 target 1 lun 0 (pass1,sa0) QUANTUM LIGHTNING 730S 241E at scbus0 target 2 lun 0 (pass2,da1) PLEXTOR CD-ROM PX-12CS 1.00 at scbus0 target 6 lun 0 (pass3,cd0) at scbus0 target -1 lun -1 () troutmask:root[202] camcontrol tur cd0 -v Unit is ready troutmask:root[203] camcontrol inquiry cd0 pass3: PLEXTOR CD-ROM PX-12CS 1.00 Removable CD-ROM SCSI-2 device pass3: 10.000MB/s transfers (10.000MHz, offset 15) troutmask:root[204] mount /dev/cd0a /mnt mount: /dev/cd0a on /mnt: incorrect super block Note: it is an audio cd so I expect the mount to fail. -- Steve To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Steve Kargl wrote... Kenneth D. Merry wrote: This sounds like it could be a different problem than Randy Busy is having. He has two CDROM drives, and it looks like they have been swapped somehow. It sounds like you've only got one CDROM drive in each machine. Please send the output of the following, with mountable media in the drive: camcontrol devlist -v camcontrol tur cd0 -v camcontrol inquiry cd0 mount /dev/cd0a /mnt [ ... ] What ever change is causing the problem with SCSI CD drives, it went into the tree sometime last week. I'm seeing the same error reported about xmcd. My last "cvsup ; make world" was on Sep 1. I haven't updated xmcd to see if the problem goes away. troutmask:root[201] camcontrol devlist -v scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) scbus0 on ahc0 bus 0: SEAGATE ST34371N 0280at scbus0 target 0 lun 0 (pass0,da0) DEC DLT2000 8B37 at scbus0 target 1 lun 0 (pass1,sa0) QUANTUM LIGHTNING 730S 241E at scbus0 target 2 lun 0 (pass2,da1) PLEXTOR CD-ROM PX-12CS 1.00 at scbus0 target 6 lun 0 (pass3,cd0) at scbus0 target -1 lun -1 () troutmask:root[202] camcontrol tur cd0 -v Unit is ready troutmask:root[203] camcontrol inquiry cd0 pass3: PLEXTOR CD-ROM PX-12CS 1.00 Removable CD-ROM SCSI-2 device pass3: 10.000MB/s transfers (10.000MHz, offset 15) Okay, it looks like your passthrough devices etc., are functioning properly. troutmask:root[204] mount /dev/cd0a /mnt mount: /dev/cd0a on /mnt: incorrect super block Note: it is an audio cd so I expect the mount to fail. I would try recompiling xmcd. If that doesn't work, try starting xmcd with the -debug switch. It may give you some indication as to what's going on. There was a change that went into -current on August 16th that would cause xmcd and any other ports that use the passthrough device to stop functioning. So if you haven't rebuilt xmcd since then, it won't function properly. Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Hi Ken, Sorry, I'm really confused about who has the problem, but I *do know* my system isn't working properly. Also, it is different...I didn't know about the two drives until after I sent mail to you. Anyway...here goes-- On 04-Sep-99 Kenneth D. Merry said: Rick Lotoczky wrote... ...my stuff deleted It sounds like you've only got one CDROM drive in each machine. Please send the output of the following, with mountable media in the drive: camcontrol devlist -v root:~# /sbin/camcontrol devlist -v scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) scbus0 on ahc0 bus 0: SEAGATE ST32550W SUN2.1G 0416at scbus0 target 0 lun 0 (pass1,da0) IBM DCAS-34330W S65A at scbus0 target 1 lun 0 (pass2,da1) QUANTUM XP32275W LXY4at scbus0 target 2 lun 0 (pass3,da2) QUANTUM FIREBALL_TM2110S 300Xat scbus0 target 3 lun 0 (pass4,da3) MICROP 4743WS S168 at scbus0 target 4 lun 0 (pass5,da4) at scbus0 target -1 lun -1 () scbus1 on ncr0 bus 0: HP C4324/C4325 1.27 at scbus1 target 0 lun 0 (pass6,cd0) HP HP35480A T603 at scbus1 target 3 lun 0 (pass7,sa0) HP C2520A 3503 at scbus1 target 4 lun 0 (pass0,pt0) camcontrol tur cd0 -v root:~# /sbin/camcontrol tur cd0 -v Unit is not ready (pass6:ncr0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (pass6:ncr0:0:0:0): NOT READY asc:3a,0 (pass6:ncr0:0:0:0): Medium not present camcontrol inquiry cd0 root:~# /sbin/camcontrol inquiry cd0 -v pass6: HP C4324/C4325 1.27 Removable CD-ROM SCSI-2 device (pass6:ncr0:0:0:0): INQUIRY. CDB: 12 1 80 0 ff 0 (pass6:ncr0:0:0:0): ILLEGAL REQUEST asc:24,0 (pass6:ncr0:0:0:0): Invalid field in CDB sks:c0,2 - pass6: 3.300MB/s transfers | | | Looks like something is wrong here-- the NCR driver compiles with warnings... cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing -prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -no stdinc -I- -I. -I../.. -I../../../include -DKERNEL -include opt_global.h -elf ../../pci/ncr.c ../../pci/ncr.c: In function `ncr_log_hard_error': ../../pci/ncr.c:5327: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c: In function `ncr_exception': ../../pci/ncr.c:5464: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c: In function `ncr_int_ma': ../../pci/ncr.c:5767: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5771: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5795: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5802: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5810: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5815: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5825: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:5829: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c: In function `ncr_regtest': ../../pci/ncr.c:6797: warning: cast discards `volatile' from pointer target type ../../pci/ncr.c:6798: warning: cast discards `volatile' from pointer target type mount /dev/cd0a /mnt mount just hangs until a timeout and then gives: mount: Input/Output error Thanks for the help Ken. By the way, my machine is dual-boot with NT. The CD works fine with the other OS. Rick To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
Randy Bush wrote... i upgraded from mid-april to current and my cdrom drives went away. e.g. xmcd says CD audio: SCSI command fault on /dev/rcd0c: Status=0x16 # ls -lg /dev/cd* /dev/rcd* brw-r- 1 root operator6, 0 Sep 3 16:52 /dev/cd0a brw-r- 1 root operator6, 2 Sep 3 16:52 /dev/cd0c brw-r- 1 root operator6, 8 Sep 3 16:52 /dev/cd1a brw-r- 1 root operator6, 10 Sep 3 16:52 /dev/cd1c crw-r- 1 root operator 15, 0 Sep 3 16:52 /dev/rcd0a crw-r- 1 root operator 15, 2 Sep 3 16:52 /dev/rcd0c crw-r- 1 root operator 15, 8 Sep 3 16:52 /dev/rcd1a crw-r- 1 root operator 15, 10 Sep 3 16:52 /dev/rcd1c dmesg and kernel follow [ ... ] cd0 at ahc0 bus 0 target 4 lun 0 cd0: TEAC CD-ROM CD-532S 1.0A Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 16) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: YAMAHA CRW4416S 1.0f Removable CD-ROM SCSI-2 device cd1: 8.333MB/s transfers (8.333MHz, offset 31) cd1: cd present [270542 x 2048 byte records] Your CDROM drives look just fine to me. A lot has changed since mid-April. You need to recompile xmcd. If you're running -current, that's the first thing you should try when a port doesn't work. Interfaces in -current change much more often than in -stable. Ken -- Kenneth Merry [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: cds disappeared
i upgraded from mid-april to current and my cdrom drives went away. e.g. xmcd says CD audio: SCSI command fault on /dev/rcd0c: Status=0x16 # ls -lg /dev/cd* /dev/rcd* brw-r- 1 root operator6, 0 Sep 3 16:52 /dev/cd0a brw-r- 1 root operator6, 2 Sep 3 16:52 /dev/cd0c brw-r- 1 root operator6, 8 Sep 3 16:52 /dev/cd1a brw-r- 1 root operator6, 10 Sep 3 16:52 /dev/cd1c crw-r- 1 root operator 15, 0 Sep 3 16:52 /dev/rcd0a crw-r- 1 root operator 15, 2 Sep 3 16:52 /dev/rcd0c crw-r- 1 root operator 15, 8 Sep 3 16:52 /dev/rcd1a crw-r- 1 root operator 15, 10 Sep 3 16:52 /dev/rcd1c [ ... ] cd0 at ahc0 bus 0 target 4 lun 0 cd0: TEAC CD-ROM CD-532S 1.0A Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 16) cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ahc0 bus 0 target 5 lun 0 cd1: YAMAHA CRW4416S 1.0f Removable CD-ROM SCSI-2 device cd1: 8.333MB/s transfers (8.333MHz, offset 31) cd1: cd present [270542 x 2048 byte records] Your CDROM drives look just fine to me. yup. that's what really confuses me. A lot has changed since mid-April. You need to recompile xmcd. had done so. and reconfigured it too. 'nother clue # mount /cdrom cd9660: Device not configured with /etc/fstab having /dev/cd0c /cdrom cd9660 ro,noauto 0 0 randy To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message