The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Usb Device tomjones SUN Solaris 10 05-13-2008 09:15 AM
the device name bondoq SUN Solaris 2 07-04-2006 03:36 AM
LOM device bubba112557 SUN Solaris 2 09-12-2005 11:39 PM
device - > slot s93366 UNIX for Advanced & Expert Users 3 03-20-2003 11:52 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-2005
Registered User
 

Join Date: Apr 2005
Posts: 13
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
cd rom device

Hi All,

I would like to mount a cd device on a sun using the mount command.
But i do not know what device the cd drive is ie /dev/sr0 or /dev/cdrom0 bla bla. I need this info to run the command...
mount /dev/blah /mnt/cdrom

so i can access the cd. but i dont know what blah in the above is.
(I have tried looking in /dev but cant see any obvious possibilities)

Is there an obvious way to find this out?

Many thanks

Rkap

ps. I also did a probe-ide at the ok prompt and this picked up the ATAPI cd drive as device 2
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-23-2005
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 705
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
solaris handle cdroms with the same ids like harddisks, so you will find your cdrom in /dev/dsk/ with c*t*d*s*. if you know the bus-id, you can mount it with that target id and slice 0.
an easy way to see which of this devices is a cdrom, you can have a look at your device classes in the io management with iostat
for example on my mashine:
root@blade # uname -a
SunOS blade 5.10 Generic_118822-02 sun4u sparc SUNW,Sun-Blade-1000
root@blade # iostat -En
c2t6d0 Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-M1401 Revision: 1007 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
c1t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0309W0V**0
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: DK32EJ72FSUN72G Revision: 2Q09 Serial No: 0309W0V**8
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

you see? one device is called a DVD-ROM and you can see the vendor. first thing on each output for each device is the device-id. so mine would be c2t6d0.....

to mount it type:
mount -F hsfs -o ro /dev/dsk/c2t6d0s0 /directory

greetings PRESSY
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102