1847256 Members
5210 Online
110263 Solutions
New Discussion

mounting cd-rom drive

 
Mark Vollmers
Esteemed Contributor

mounting cd-rom drive

I have an external cd-rom drive that is currently setup on one of our workstations. I want to move the cd-rom to another workstation so that I can easily get to it to switch disks. The mount command that we use is(mount -F cdfs -o ro,cdcase /dev/dsk/c0t4d0 /cdrom). I know that the set of numbers (c#t#d#) is specific to the station that it is mounted to. How do I find out what these would be for the workstation that I will be moving the drive to? Thanks.
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
8 REPLIES 8
Rick Garland
Honored Contributor

Re: mounting cd-rom drive

ioscan -fnCdisk will provide you with a listing of attached HW that matches disk, CDROM/DVD drives would be included.
Shannon Petry
Honored Contributor

Re: mounting cd-rom drive

The c#t#d# is NOT an assignment to a workstation. It is a disk device address.
c = controller
# = controller number assigned by system
t = target ID or SCSI address
# = address of the device
d = disk number. This is not used but abailable for multi-disk addressing. I.E. A system having two tape drives on address 4...
# = the disk number.
Remember that logical 0 is the first device or address, so d0 is the first disk, c0 is the first controller, etc...

If you are moving this disk to another system, depending on the model the controller number may differ. Make sure that the SCSI address is available or you will have severe problems. You can use /usr/sbin/ioscan to look for devices. You want to find your single ended controller number for a single ended device. I.E.
8/0.7.0 ctl Initiator
NOTE: Controllers are always at SCSI address 7!
make sure that no devices have the address 8/0.3.0 if your CD is at address 3.
If you dont have to change the address, and the system assigns the controller the same number then the c#t#d# will be identical to the other system.

FYI you can omit the ro option when using cdcase.
I.E.
>mount -o cdcase /dev/dsk/c#t#d# /cdrom
and
>mount -o ro,cdcase /dev/dsk/c#t#d# /cdrom
are the same. The cdcase option assumes a read only cdrom format.

Regards,
Shannon
Microsoft. When do you want a virus today?
Mark Vollmers
Esteemed Contributor

Re: mounting cd-rom drive

I tried your advice, Shannon, but ran into a snag. We have an internal cd on the server, and when I use the ioscan command, I think that it pulls that target id. The disk device address for the internal cd is c1t2d0, and the ioscan lists 8/16/5.2.0 disk Toshiba CD-rom. the initiator is at 8/16/5.7.0. How do I find both cd drives? Thanks.
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Patrick Wallek
Honored Contributor

Re: mounting cd-rom drive

How did you attach the CD to the 2nd machine? Did you shut down the machine, attach the CD and then boot the machine back up? If so, then HP-UX should have automatically generated the device files for the 2nd CD. If you just attached the CD to the back of the box, but did not reboot the machine, then an ioscan may or may not see the CD.

What is the SCSI address of the external CD? Is it conflicting with anything else? There should be a switch on the back of the CD that displays the SCSI ID.

Did you attach the CD to the appropriate SCSI interface on the machine. Most CDs are SE SCSI, but a lot of workstations and servers will a FWD SCSI, or Ultra LVD scsi in addition to the SE Scsi interface.

Just some things to check.
Shannon Petry
Honored Contributor

Re: mounting cd-rom drive

Well, if you plugged in the drive to an active system, then the device drivers need to be created. There are two ways to do this.
1. Reboot the system (as someone mentioned).
2. Run two commands.
> /sbin/insf -b
> /sbin/insf

These commands will create any missing device files.
Ooops, I just remembered a third. Run SAM. It will create device files for you as well. As long as you see the new c#t#d#, you know all is well!

Regards,
Shannon
Microsoft. When do you want a virus today?
Sergei Kazakov
Advisor

Re: mounting cd-rom drive

CD-ROMs you should make power cycling. then go to the SAM and check devices there. I used to do that when I installed IOMEGA JAZZ on my HP.
Usually, SAM creates this items (device files in "/dev/dsk") by itself.

Sincerely,
Sergei Kazakov.
Bill Hassell
Honored Contributor

Re: mounting cd-rom drive

Another thought: ioscan -fnC disk will scan and repot all current hardware with an actuall inquiry (SCSI id request). If you don't see the second CDROM drive, then it is not responding. You didn't mention which 9000 workstation you are using but there are several models with very different external SCSI interfaces.

If you connect the CDROM to a connector that says FWD-SCSI (fast-wide-differential) then it will never work. FWD is really HVFWD (high voltage, fast-wide-differential) and is electrically incompatible with all other standards (cables cannot convert). Newer workstations have a FWSE (fast-wide-single-ended) connection which should work with the appropriate cable. And of course, the external CDROM drive must have an unused SCSI address. ioscan -fnC disk will confirm a working drive.


Bill Hassell, sysadmin
Shannon Petry
Honored Contributor

Re: mounting cd-rom drive

Hi Bill!

Just a thought...
Did they ever make FWD Cd-Roms? I have never seen one, but that does not mean they dont exist...

Thanx!
Shannon
Microsoft. When do you want a virus today?