Question

Solaris - Can't mount my cdrom

Asked by: barthalamu

This is actually a question that I have previously asked, but is a problem I am still having.  Thanks for any help.

I just ran the JASS(Solaris Security Toolkit) on my Solaris 8 box to harden it.  It stopped many services.  Now I am unable to mount my cdrom drive.  It used to mount automatically when a cd is placed in the drive, but now it does not.

I am under the impression that this functionality was because vold was running.  JASS renamed the /etc/vold.conf file to something else, but I have since renamed it to its original name.  I have also re-enabled vold at startup, but this does not seem to help.  
I have also tried to mount it manually, but have been unable to do so.

Actually, I really don't care that much about the automatic mounting of the drive.  I want to be able to mount it using the mount command.  I just can't seem to figure out my correct disk to mount it to and the right syntax to do it.

I have tried to mount my cdrom with the following syntax:

mount -F hsfs -o ro /dev/dsk/cxtxdxsx /cdrom

I have tried all of the disks on my system, which are:

# ls /dev/dsk
c0t0d0s0  c0t0d0s3  c0t0d0s6  c0t1d0s1  c0t1d0s4  c0t1d0s7  c0t2d0s2  c0t2d0s5
c0t0d0s1  c0t0d0s4  c0t0d0s7  c0t1d0s2  c0t1d0s5  c0t2d0s0  c0t2d0s3  c0t2d0s6
c0t0d0s2  c0t0d0s5  c0t1d0s0  c0t1d0s3  c0t1d0s6  c0t2d0s1  c0t2d0s4  c0t2d0s7


If someone could tell me how to find the correct disk and the right syntax to mount it with, I would really appreciate it.  Thanks.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-04-08 at 00:02:34ID20577861
Tags

solaris

,

cdrom

,

mount

Topics

Sun Solaris

,

Sun JDS

Participating Experts
14
Points
0
Comments
27

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Solaris 2.51 CDROM/sbus@1f,0 troubles
    I am a new system administrator on a Solaris 2.51 box. The box is on our network with a new name, IP address etc. All the drives and devices appear to functional except for the CDROM. I can't mount, can't eject, can't unmount. For example: > mount -r -F hsfs /dev/dsk/...
  2. Can't access cdrom on Ultra 10 with Solaris 8
    I'm a DBA (novice with UNIX) trying to install Oracle on an Ultra 10. I successfully installed Solaris 8 via cdrom, on an Ultra 10, which is a stand-alone test box. When I attempt to install the Oracle software, I cannot get the OS to recognize the cdrom. I have perused htt...
  3. I can't boot CDROM on solaris 8
    I got a Ultra 2 that runs Solaris 8. It is so far so good, but when I try add netscape 7 on it, I added a few patches on it. It make thing worse, I can't login from CDE and looks like system was demaged. When I login with root account (login console is good), system goes a lo...
  4. How do I mount a CDROM drive
    Hi I am new to Unix and am trying to mount a CDROM drive, I have attempted the following on Solaris 8 on sun4m sparc SUNW,SPARCstation-20 ls /dev/dsk/c0* /dev/dsk/c0t1d0s0 /dev/dsk/c0t1d0s4 /dev/dsk/c0t3d0s0 /dev/dsk/c0t3d0s4 /dev/dsk/c0t6d0s0 /dev/dsk/c0t6d0s4 /d...
  5. Solaris 9 9/04 on v210: Can't get CDROM to work
    Hi all I've just built a v210 using a Jumpstart image that I have used many times before on this hardware. I seem to be unable to use the CDROM If I try running the 'mount cdrom' command, I get the following message: "mount: mount point cannot be determined" If ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: OtetelisanuPosted on 2003-04-08 at 00:37:48ID: 8289875

As root :

drvconfig

and try again.


 

by: OtetelisanuPosted on 2003-04-08 at 00:40:08ID: 8289886

As root :

drvconfig

and try again.

The cdrom must on
and with cdrom medium

after try

eject -q  


 

by: yuzhPosted on 2003-04-08 at 01:38:50ID: 8290158

try:

mount -F hsfs -o ro /dev/dsk/c0t1d0s2 /cdrom

if your 2nd hd is /dev/dsk/c0t1d0  then:

mount -F hsfs -o ro /dev/dsk/c0t2d0s2 /cdrom

 

by: yuzhPosted on 2003-04-08 at 01:42:19ID: 8290174

or soemting like:
mount -F hsfs -o ro /dev/dsk/c0t1d0s0 /cdrom



 

by: barthalamuPosted on 2003-04-08 at 07:29:07ID: 8291974

Thanks for the help, but unfortunately, none of these suggestions worked.  Here is the output from some of them:

bash-2.03# drvconfig
bash-2.03# cd /cdrom
bash-2.03# ls
bash-2.03# cd /
bash-2.03# eject -q
No default media available
bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t1d0s2 /cdrom
mount: /dev/dsk/c0t1d0s2 is already mounted, /cdrom is busy,
        or allowable number of mount points exceeded
bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t2d0s2 /cdrom
hsfs mount: /dev/dsk/c0t2d0s2 is not an hsfs file system.
bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t1d0s0 /cdrom
mount: /dev/dsk/c0t1d0s0 is already mounted, /cdrom is busy,
        or allowable number of mount points exceeded

Thanks for the help.  Here is a look at what is mounted:

bash-2.03# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0    6191949 5263353  866677    86%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                  460552      16  460536     1%    /var/run
swap                  460896     360  460536     1%    /tmp
/dev/dsk/c0t0d0s3    7995933 7761914  154060    99%    /space
/dev/dsk/c0t2d0s6    39523340       9 39128098     1%    /oracle

 

by: SuryaGEPosted on 2003-04-08 at 08:54:48ID: 8292719

Try this ( Solaris servers )
drvconfig
Insert the CDROM into the drive
then try to stop/start the following service
/etc/init.d/volmgt stop/start

 

by: pchandarPosted on 2003-04-08 at 15:34:18ID: 8295550

ps -ef | grep vold  If vold process is running, stop and start the vold process

Stop the vold process by entering
kill -15 process_ID_number

Start the vold process by entering
/usr/sbin/vold &

Make sure vold process is running and /cdrom exists in root directory

Then execute the following command:
mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom/cdrom0



 

by: TintinPosted on 2003-04-08 at 17:21:50ID: 8296010

The default device for the cdrom is /dev/dsk/c0t6d0s2

 

by: yuzhPosted on 2003-04-08 at 19:08:00ID: 8296457

For barthalamu's system, the cdrom is
/dev/dsk/c0t0d0s2

I forgot to mention, if you need to mount the cdrom manualy, you need to STOP "vold" -volume manager, and make sure that the mount point is an empty dir

Try:

/etc/rc2.d/S92volmgt stop

mkdir /aa
mount -F hsfs -o ro /dev/dsk/c0t0d0s2

to make sure that a dir is not using by any process:

fuser -c -k /dir-name

 

by: barthalamuPosted on 2003-04-08 at 19:30:37ID: 8296558

Thanks pchandar and Tintin, but it did not work.  Here is the output.

ps -ef | grep vold
    root  1244  1237  5 18:47:36 pts/4    0:02 /usr/sbin/vold
    root  1247  1237  0 18:47:47 pts/4    0:00 grep vold

bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom/cdrom0
mount: mount-point /cdrom/cdrom0 does not exist.

bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom      
hsfs mount: /dev/dsk/c0t0d0s2 is not an hsfs file system.

bash-2.03# mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom
mount: No such device
mount: cannot mount /dev/dsk/c0t6d0s2

 

by: yuzhPosted on 2003-04-08 at 19:54:12ID: 8296662

A typing error on my previous command, the device should be:

/dev/dsk/c0t1d0s2

So try:

/etc/rc2.d/S92volmgt stop
mkdir /aa
mount -F hsfs -o ro /dev/dsk/c0t1d0s2

to make sure that a dir is not using by any process:

fuser -c -k /dir-name




 

by: barthalamuPosted on 2003-04-08 at 22:42:04ID: 8297343

I STILL can't mount my cdrom.  Thanks for all the help from everyone though.  Could my cdrom have gone physically bad?  It seems fine.  I may try swapping it out for another.

 

by: OtetelisanuPosted on 2003-04-08 at 23:55:15ID: 8297623

Perhaps the cd is wrong.

Put a new cd example with
Solaris 8

 

by: barthalamuPosted on 2003-04-09 at 06:49:49ID: 8299648

Otetelisanu:

Good thought, but I have tried it with several real cds.

 

by: cysurferPosted on 2003-04-09 at 18:57:28ID: 8304140

per the ls output of /dev/dsk and df -k, your cdrom appears to be on /dev/dsk/c0t1d0s2.  insert the cd into the drive and then su to root and run:  fstyp /dev/dsk/c0t1d0s2 - this will return the fstype of the cd.  With that information do:  mount -F <fstype> -o ro /dev/dsk/c0t1d0s2 /cdrom.  Replace <fstype> with the appropriate fstype.  You could also use /mnt instead of /cdrom.

 

by: k.kidambiPosted on 2003-04-11 at 13:15:12ID: 8315688

Try the following.

1. start volume management
   /etc/init.d/volmgt start
2. mount your CD on to the CD Drive
3. run "volcheck" command
   # volcheck
4. df -k should show that CD as mounted.

Please post your results.

 

by: rearls1Posted on 2003-04-11 at 14:15:18ID: 8316090

barthalamu,

From reading this thread, I'm not sure you know exactly what the device is for your CD-ROM. To get this, execute the following command:

# cfgadm -al | grep CD
c0::dsk/c0t1d0                 CD-ROM       connected

The data in column 1 is relative, so you must prefix it with /dev. For example, /dev/dsk/c0t1d0.  I don't know what type of system you have, so your results will probably be different.  Notice that we haven't specified a "slice" yet.

Once you have this device path, you need to try to mount slice 0 of the CD-ROM, not slice 2. If you try to mount slice 2, you get the "is not an hsfs file system" error.  Using the example above, just append "s0" to the device path. For example, /dev/dsk/c0t1d0s0.

"Yuzh" was correct that you need to make sure vold isn't running before you try this. Also, make sure you are not sitting in the /cdrom directory when you try to mount the CD-ROM.  Here are the steps.


Replace c#t#d#s0 with your correct device path:


# pkill vold
# cd /
# mount -F hsfs -o ro /dev/dsk/c#t#d#s0 /cdrom
# df -k


If this doesn't work, something else is very messed up. However, you can determine if your CD-ROM drive is still working by booting the system from the CD-ROM. For example, at the ok prompt:

ok boot cdrom

If the system boots from the CD-ROM, you kow the drive is still working properly.

I hope this helps.

 

by: cysurferPosted on 2003-04-11 at 20:34:59ID: 8317217

With a cdrom you need to mount slice 2 as this represents the entire disk, otherwise, you will receive an error.  man vold for more information.

 

by: guerriero33tPosted on 2003-04-14 at 06:04:39ID: 8326339

Bring your system down to the OK prompt then type
probe-scsi-all

If your disk is IDE then type
probe-ide-all

If your cdrom shows up with one of them then it may be good.

Find the target for the cdrom, insert a Solaris CD into it. You can then type "show-disks" to find the attached controllers for you system. Choose the one from your probe-ide or probe-scsi command. You then would type

boot ^y2,0:f -s

control y will insert the controller you want to boot off of. You then need to specify the target and slice to boot.

Here are two examples, one for scsi and one for ide.

boot /pci@1f,0/pci@1/scsi@3/disk@2,0:f -s

boot /pci@1f,0/pci@1,1/ide@3/disk@2,0:f -s

disk@2,0:f (2 is for the target, the 0 is for the LUN the :f tells it to boot the partition for an ultra. :d is for SPARC)

If your system boots after this then reply back to me. Otherwise replace your CDROM.


###NOTE###
The recommendation from barthalmu might work if you were trying to mount anything but a solaris cdrom.

S0 is HSFS
S1-S5 are all UFS. S2 is not the whole disk on a solaris cdrom.

mount -F hsfs -o ro /dev/dsk/c0t2d0s0 /cdrom

remember to turn off volmgt.

It is actually useless to mount slice 2 because it should only contain a link back to slice zero with the proper architecture identified (sun4m).





 

by: barthalamuPosted on 2003-04-14 at 07:14:03ID: 8326821

Thanks for the advise all...I don't have access to that machine for a few days.  I will try all the suggestions then.  Thanks.

 

by: barthalamuPosted on 2003-04-17 at 22:23:50ID: 8352653

Thanks for everyone who has tried to help me.  Here is the output from some suggestions:

cysurfer:

without vold running:
# fstyp /dev/dsk/c0t1d0s2
hsfs fstyp: cannot open </dev/dsk/c0t1d0s2>
/dev/dsk/c0t1d0s2: No such device or address
udfs fstyp: cannot open </dev/dsk/c0t1d0s2> errorno <6>
/dev/rdsk/c0t1d0s2: No such device or address
Unknown_fstyp (no matches)

with vold running:
# fstyp /dev/dsk/c0t1d0s2
hsfs fstyp: cannot open </dev/dsk/c0t1d0s2>
/dev/dsk/c0t1d0s2: Device busy
udfs fstyp: cannot open </dev/dsk/c0t1d0s2> errorno <16>
/dev/rdsk/c0t1d0s2: Device busy
Unknown_fstyp (no matches)


rearls1:

# cfgadm -al | grep CD
c0::dsk/c0t1d0                 CD-ROM       connected    configured   unknown

Without vold:
# ./volmgt stop
# ps -ef | grep vold
# mount -F hsfs -o ro /dev/dsk/c0t1d0s0 /cdrom_mount
mount: /dev/dsk/c0t1d0s0 no such device

With vold running:
# mount -F hsfs -o ro /dev/dsk/c0t1d0s0 /cdrom_mount
mount: /dev/dsk/c0t1d0s0 is already mounted, /cdrom_mount is busy, or allowable number of mount points exceeded

Also, I'm definately not in the /cdrom_mount directory.  I have not tried booting from the CDROM of this machine, as I don't have physical access to it for a little while.  I will try this though.

guerriero33t:

Thanks for the suggestion.  When I have physical access to the machine again, I will try this.


Again...thanks to all for the helpful advise.  I am still trying.

 

by: sanojaPosted on 2003-06-23 at 06:58:23ID: 8781581

It has been a while, so I do not know if you are still trying to mount the cdrom.

I also installed JASS and had a similar issue.  Here is how I solved it:

Make sure you vold is shutdown:  ps -ef | grep vold

If in the future you mount cdrom and floppies to be automounted you need to enable the vold daemon.



Do the following to determine where your cd is located:

iostat -En

You will get a response similar to this:

c0t0d0          Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE  Product: ST318203LSUN18G  Revision: 034A Serial No: LRK8328900007111
Size: 18.11GB <18110967808 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
c1t2d0          Soft Errors: 0 Hard Errors: 0 Transport Errors: 1
Vendor: TOSHIBA  Product: CD-ROM XM-7002Bc Revision: 1110 Serial No: 04/27/00
Size: 18446744073.71GB <-1 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

In my case as you can see, the CDROM was located at c1t2d0. To that I added slice s0 to mount it:

mount -F hsfs -o ro /dev/dsk/c1t2d0s0 /mnt/cdrom

Be careful with your 1 (one) and l (L) and 0 (zero) and o (O)'s.

Good luck

 

by: biggeorgePosted on 2003-06-27 at 09:01:38ID: 8814371

Hi barthalamu!

I head your same problem on my ultra10 with solaris 9...

Maybe you made my same mistake: I have been commented the line

# smserverd to support removable media devices
100155/1   tli   rcp/ticotsord   wait   root   /usr/lib/smedia/rpc.smserverd rpc.smserverd

in my /etc/inetd.conf.


If you run

rmmount -D -c /etc/rmmount.conf -d /dev/dsk/your_cdrom

I suppose you got an error message like

rmmount(some_number) VOLUME_ACTION was null

This mean vold can't connect to smmserverd service.

I hope you can fix your trouble!
Good luck!
biggeorge

P.S. Sorry for my horrible english... :o)

 

by: liddlerPosted on 2004-02-29 at 01:00:08ID: 10479308

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ and refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer

 

by: ampPosted on 2004-03-05 at 07:10:24ID: 10523305

PAQed, with points refunded (500)

amp
Community Support Moderator amp~at~experts-exchange.com

 

by: sagar24Posted on 2004-03-08 at 22:54:07ID: 10547831

hi
Hope this shud work
normally cdrom is attached as master ide device to the controller
then device name will be c0t0d0s0

mount -F hsfs -o ro /dev/dsk/c0t0d0s0  /cdrom

regards

sagar

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...