| Summary: | strange dev assignment with multiple scsi cdrom drives | ||
|---|---|---|---|
| Product: | Base System | Reporter: | bauer <bauer> |
| Component: | misc | Assignee: | Kenneth D. Merry <ken> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
bauer
2000-04-20 07:10:01 UTC
On Wed, Apr 19, 2000 at 23:02:58 -0700, bauer@genprofile.com wrote: > >Organization: > GenProfile AG > >Environment: > FreeBSD dav 3.3-RELEASE FreeBSD 3.3-RELEASE #9: Thu Apr 20 07:12:45 CEST 2000 bauer@dav:/usr/src/sys/compile/DB i386 > >Description: > messages report drive as cd0 but in fstab must be mounted ad cd1. > > from /var/log/messages: > Apr 20 07:23:52 dav /kernel: wdc1: unit 0 (atapi): <CD-524EA-B/1.0A>, removable, accel, ovlap, dma, iordis > Apr 20 07:23:52 dav /kernel: acd0: drive speed 4134KB/sec, 128KB cache > Apr 20 07:23:52 dav /kernel: acd0: supported read types: CD-R, CD-RW, CD-DA, packet track > Apr 20 07:23:52 dav /kernel: acd0: Audio: play, 256 volume levels > Apr 20 07:23:52 dav /kernel: acd0: Mechanism: ejectable tray > Apr 20 07:23:52 dav /kernel: acd0: Medium: no/blank disc inside, unlocked > Apr 20 07:23:52 dav /kernel: Waiting 15 seconds for SCSI devices to settle > Apr 20 07:23:52 dav /kernel: changing root device to wd0s2a > Apr 20 07:23:52 dav /kernel: cd0 at ahc0 bus 0 target 5 lun 0 > Apr 20 07:23:52 dav /kernel: cd0: <PIONEER DVD-ROM DVD-303 1.10> Removable CD-ROM SCSI-2 device > Apr 20 07:23:52 dav /kernel: cd0: 10.000MB/s transfers (10.000MHz, offset 8) > Apr 20 07:23:52 dav /kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present > Apr 20 07:23:52 dav /kernel: cd1 at ahc0 bus 0 target 6 lun 0 > Apr 20 07:23:52 dav /kernel: cd1: <HP CD-Writer+ 9200 1.0c> Removable CD-ROM SCSI-4 device > Apr 20 07:23:52 dav /kernel: cd1: 10.000MB/s transfers (10.000MHz, offset 15) > Apr 20 07:23:52 dav /kernel: cd1: Attempt to query device size failed: NOT READY, Medium not present > > from /etc/fstab: > /dev/acd0c /cdrom cd9660 ro,noauto 0 0 > /dev/cd1c /cdrom1 cd9660 ro,noauto 0 0 > > With this fstab entry a DVD in the Pioneer DVD ROM drive is mounted > correctly. But I do not understand why the boot messages report this > as cd0 and it must be mounted as cd1. > > Also a 'sh MAKEDEV cd1' does not do anything. No error but also no new > device. I had to create it manually with mknod. When you make CD devices with MAKEDEV, it makes the number of devices you specify on the command line. Specifying 'cd1' makes 1 device, cd0. You want to type 'sh MAKEDEV cd2' to make cd0 and cd1 devices. > Maybe the mixture of ATAPI and SCSI cdrom confuses the system. > The systems unit numbering is not reflected correctly in the messages. I suspect your device nodes may be messed up. Can you send the output of: camcontrol devlist -v ls -l /dev/*cd* Make sure you CC your reply to FreeBSD-gnats-submit@FreeBSD.ORG so it goes into the audit log for this PR. Ken -- Kenneth Merry ken@kdm.org Hi, thanks for the fast response. Here are the additional informations you requested: "Kenneth D. Merry" wrote: > > Maybe the mixture of ATAPI and SCSI cdrom confuses the system. > > The systems unit numbering is not reflected correctly in the messages. > > I suspect your device nodes may be messed up. Can you send the output of: > > camcontrol devlist -v scbus-1 on xpt0 bus 0: < > at scbus-1 target -1 lun -1 (xpt0) scbus0 on ahc0 bus 0: <PIONEER DVD-ROM DVD-303 1.10> at scbus0 target 5 lun 0 (pass0,cd0) <HP CD-Writer+ 9200 1.0c> at scbus0 target 6 lun 0 (pass1,cd1) < > at scbus0 target -1 lun -1 () > ls -l /dev/*cd* br--r--r-- 1 root operator 19, 0 18 Mär 07:24 /dev/acd0a brw-rw-rw- 1 root operator 19, 2 18 Mär 07:24 /dev/acd0c brw-r----- 1 root operator 6, 0 20 Apr 06:54 /dev/cd0a brw-r----- 1 root operator 6, 2 20 Apr 06:54 /dev/cd0c brw-r--r-- 1 root wheel 6, 0 20 Apr 07:08 /dev/cd1a brw-r--r-- 1 root wheel 6, 2 20 Apr 07:07 /dev/cd1c lrwxr-xr-x 1 root wheel 10 19 Mär 19:39 /dev/cdrom -> /dev/acd0c brw-r----- 1 root operator 17, 0 18 Mär 07:24 /dev/matcd0a brw-r----- 1 root operator 17, 2 18 Mär 07:24 /dev/matcd0c brw-r----- 1 root operator 17, 128 18 Mär 07:24 /dev/matcd0la brw-r----- 1 root operator 17, 130 18 Mär 07:24 /dev/matcd0lc brw-r----- 1 root operator 7, 0 18 Mär 07:24 /dev/mcd0a brw-r----- 1 root operator 7, 2 18 Mär 07:24 /dev/mcd0c crw-r----- 1 root operator 69, 0 18 Mär 07:24 /dev/racd0a crw-r----- 1 root operator 69, 2 18 Mär 07:24 /dev/racd0c crw-r----- 1 root operator 15, 0 20 Apr 06:54 /dev/rcd0a crw-r----- 1 root operator 15, 2 20 Apr 06:54 /dev/rcd0c crw-r----- 1 root operator 46, 0 18 Mär 07:24 /dev/rmatcd0a crw-r----- 1 root operator 46, 2 18 Mär 07:24 /dev/rmatcd0c crw-r----- 1 root operator 46, 128 18 Mär 07:24 /dev/rmatcd0la crw-r----- 1 root operator 46, 130 18 Mär 07:24 /dev/rmatcd0lc crw-r----- 1 root operator 29, 0 18 Mär 07:24 /dev/rmcd0a crw-r----- 1 root operator 29, 2 18 Mär 07:24 /dev/rmcd0c crw-r----- 1 root operator 45, 0 18 Mär 07:24 /dev/rscd0a crw-r----- 1 root operator 45, 2 18 Mär 07:24 /dev/rscd0c lrwxrwxr-x 1 root wheel 6 18 Mär 07:24 /dev/rwcd0a -> racd0a lrwxrwxr-x 1 root wheel 6 18 Mär 07:24 /dev/rwcd0c -> racd0c brw-r----- 1 root operator 16, 0 18 Mär 07:24 /dev/scd0a brw-r----- 1 root operator 16, 2 18 Mär 07:24 /dev/scd0c lrwxrwxr-x 1 root wheel 5 18 Mär 07:24 /dev/wcd0a -> acd0a lrwxrwxr-x 1 root wheel 5 18 Mär 07:24 /dev/wcd0c -> acd0c David. -- Dr. David Bauer GenProfile AG, Robert-Roessle-Str. 10, D-13125 Berlin, Germany Tel:+49-30-94892165, Fax:+49-30-94892151 On Thu, Apr 20, 2000 at 10:39:37 +0000, David Bauer wrote: > Hi, > thanks for the fast response. Here are the additional informations you > requested: > > "Kenneth D. Merry" wrote: > > > Maybe the mixture of ATAPI and SCSI cdrom confuses the system. > > > The systems unit numbering is not reflected correctly in the messages. > > > > I suspect your device nodes may be messed up. Can you send the output of: > > > > > camcontrol devlist -v > scbus-1 on xpt0 bus 0: > < > at scbus-1 target -1 lun -1 (xpt0) > scbus0 on ahc0 bus 0: > <PIONEER DVD-ROM DVD-303 1.10> at scbus0 target 5 lun 0 (pass0,cd0) > <HP CD-Writer+ 9200 1.0c> at scbus0 target 6 lun 0 (pass1,cd1) > < > at scbus0 target -1 lun -1 () > > > ls -l /dev/*cd* > br--r--r-- 1 root operator 19, 0 18 Mär 07:24 /dev/acd0a > brw-rw-rw- 1 root operator 19, 2 18 Mär 07:24 /dev/acd0c > brw-r----- 1 root operator 6, 0 20 Apr 06:54 /dev/cd0a > brw-r----- 1 root operator 6, 2 20 Apr 06:54 /dev/cd0c > brw-r--r-- 1 root wheel 6, 0 20 Apr 07:08 /dev/cd1a > brw-r--r-- 1 root wheel 6, 2 20 Apr 07:07 /dev/cd1c > lrwxr-xr-x 1 root wheel 10 19 Mär 19:39 /dev/cdrom -> > /dev/acd0c cd1{a,c} and cd0{a,c} both have the same minor numbers. That is why you were able to mount cd0 as cd1. As for why you couldn't mount cd0 -- were you root when you tried to mount it? Try re-making your CD devices, like this: sh MAKEDEV cd4 That will make cd0->cd3. Ken -- Kenneth Merry ken@kdm.org "Kenneth D. Merry" wrote: > cd1{a,c} and cd0{a,c} both have the same minor numbers. That is why you > were able to mount cd0 as cd1. OK! But even with this setup I could not mount cd0c but only cd1c. > > As for why you couldn't mount cd0 -- were you root when you tried to mount > it? Yes. If not I get the message: 'cd9660: Operation not permitted.' But what I got was 'Device not configured' > > Try re-making your CD devices, like this: > > sh MAKEDEV cd4 > > That will make cd0->cd3. This cleanup solved the problem. But it is exactly what I have done before but only with MAKEDEV cd1. There are only 2 SCSI CDROMS (0 and 1). What I have changed in the meantime were the SCSI IDs because in messages the cd1 was probed before cd0. But now if I change it back it also works. So no idea what was the reason. Many thanks !. David. -- Dr. David Bauer GenProfile AG, Robert-Roessle-Str. 10, D-13125 Berlin, Germany Tel:+49-30-94892165, Fax:+49-30-94892151 State Changed From-To: open->closed PR submitter says his problem was fixed when he re-made his CD device nodes. The original problem was likely pilot error of some sort. Responsible Changed From-To: freebsd-bugs->ken I'm closing this pr. |