Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sd6 Cdrom device help needed 3

Status
Not open for further replies.

gallows

Technical User
Joined
Jun 12, 2004
Messages
223
Location
US
Below is the output of iostat on a Solaris 9 system. I need to mount a cdrom and cannot use vold, autofs etc. I have to mount it manually. Normally, the cdrom on our systems are on c6t0d0s0. What is this sd6 and what command would I use to mount a cdrom?

# iostat -En
sd6 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-M1711 Revision: 1005 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0

Thanks,
Fred
 
mount -F hsfs /dev/dsk/c6t0d0s0 /mnt should do the trick. "hsfs" stands for High Sierra File System.

Annihilannic.
 
gallows;

just to double check this. If your cdrom is c6t0d0s0 than it is externally attached to the system through a scsi controller correct.

If it is internal than it is targeted as c0t6d0s0 most likely since this is Suns default for cdroms.

Thanks

CA
 
>> Normally, the cdrom on our systems are on c6t0d0s0
sure? usually they are c0t6d0s0

>> mount -F hsfs
I would add a "-o ro" after that; check "man mount_hsfs" for more info

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Thank you all for the great responses.
This is for an internal cd/dvd drive on a sun 280R.

If the device address is c0t6d0s0, why doesn't that show up in the iostat -En and sd6 does? Is there a way I can verify the correct address? This is a production server and I don't want to hose anything up.

Regards,
gallows
 
iostat -En normally displays the names in c0xxx format
iostat -E doesn't and displays sdxx. Are you sure you're using the n option. If not try it without
 
Thanks marrow. Yes I am sure I used the -En. My original post is copied/pasted. I tried the other options as well along with the -i.

Regards,
Gallows
 
>> why doesn't that show up in the iostat -En and sd6 does?
hmm, not sure why it shows sd6

to get realy "good answers" which device is what you better use a scsi inquire program. I usually used the inquire from Legato Networker/Solstice Backup (install at least SUNWsbus2 - you will not need a license to do so)
# grep inquire /var/sadm/install/contents
/etc/LGTOuscsi/inquire f none 0555 root bin 680640 20066 1069888559 SUNWsbus2

you will get things like that:
# /etc/LGTOuscsi/inquire
scsidev@0.6.0:TOSHIBA DVD-ROM SD-M14011009|CD-ROM, /dev/rdsk/c0t6d0s2
scsidev@2.0.0:ATL P1000 62200701. |Autochanger (Jukebox)
.....
#

I have installed Version 6.1, which is pretty old...
# pkginfo -l SUNWsbus2
PKGINST: SUNWsbus2
NAME: Solstice Backup (Backup/Recover) Device Drivers
CATEGORY: system
ARCH: sparc
VERSION: 6.1,REV=Build.186
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
PSTAMP: gelato010622054128
INSTDATE: Dec 22 2004 10:45
STATUS: completely installed
FILES: 46 installed pathnames
44 executables
44898 blocks used (approx)

#

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Thanks Franz. Unfortunately I am at a gov site and cannot install anything without an Act from Congress:))
I will get it and see if I can put it in out lab.

Gallows
 
If you have Veritas Volume Manager installed /usr/lib/vxvm/diag.d/vxdmpinq is similar to the Legato utility.

Annihilannic.
 
gallows;

attached is the scsi bus paths for the 280R.

run ls -al /dev/dsk/c0t6d0s0 and you will see the path for the cdrom. Check this against the path list I attached and you can be sure of what you are looking at.

Sun Blade[TM] 1000/2000, Sun Fire[TM] 280R, Netra[TM] 20
PCI Slot 1 /pci@8,600000/pci@1,* 33/66mhz-32/64bit-3.3V
PCI Slot 2 /pci@8,700000/pci@3,* 33mhz-32/64bit-5V
PCI Slot 3 /pci@8,700000/pci@2,* 33mhz-32/64bit-5V
PCI Slot 4 /pci@8,700000/pci@1,* 33mhz-32/64bit-5V
Internal Drives /pci@8,600000/SUNW,glc@4/fp@0,0/ssd@<WWN>
Internal SCSI bus /pci@8,700000/scsi@6/<device>
DVD/CDROM /pci@8,700000/scsi@6/sd@6,0
Tape Drive /pci@8,700000/scsi@6/st@4,0
External FCAL /pci@8,600000/SUNW,glc@4/fp@0,8/<device>
External SCSI Port /pci@8,700000/scsi@6,1/<device>
External USB /pci@8,700000/usb@5,3/<device>

thanks

CA
 
gallows;

I also ran this command that seems to give you what you are looking for.

ls -al /dev/sd6*

Thanks

CA
 
Thanks CA. Here is what I got.

# ls -al /dev/dsk/c0t6d0s0
lrwxrwxrwx 1 root root 42 Jan 24 20:53 /dev/dsk/c0t6d0s0 -> ../../devices/pci@8,700000/scsi@6/sd@6,0:a

So that confirms sd6 is the cdrom. I also checked /dev/dsk
and it contains my 2 internal hard drives along with c0t6d0s0 so I feel better.:))

Yes, it works. I can mount it.
Many thanks CA and Annihilannic, Franz, and Marrow.
I appreciate you alls help very much.

Regards,
Gallows
 
Uh oh. I do not have a /dev/sd6. In fact, I did a search on sd6* and can't find it anywhere.
That's ok though because I can now use the cd.

Thanks again CA for all your help.
 
To find the device path for sd6 is not so straightforward, this is the command I use (I actually have a wrapper script to make ie easier to type!):

[tt]awk '$3 =="\"sd\"" && $2 == 6' /etc/path_to_inst[/tt]

Annihilannic.
 
Try 'cfgadm -al' thats the best ways to say where CDROM is connected.

Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 CD-ROM connected configured unknown
c1 scsi-bus connected configured unknown
c1::dsk/c1t0d0 disk connected configured unknown
c1::dsk/c1t1d0 disk connected configured unknown
c2 scsi-bus connected configured unknown
c2::rmt/0 tape connected configured unknown
usb0/1 unknown empty unconfigured ok
usb0/2 unknown empty unconfigured ok



Thanks
Sunny D'Souza
 
>> Thanks Franz. Unfortunately I am at a gov site and cannot install anything without an Act from Congress:))

ups, I see. Ok, you COULD run the inquire without installing the package on the host but burn the files on a CD and set LD_LIBRARY_PATH to this dir.
But just ask the guys in Langley if it is realy safe... :-)

Thanks for the star!

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top