Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
Cd rom mounting cdro-ms on solaris
1. Softpanorama
May the source be with you, but remember the KISS
principle ;-)
Search
Contents Bulletin Scripting in shell and
Perl
Network
troubleshooting History Humor
Mounting CDROMs on Solaris
News Recommended Links Reference Bootable CDs and CD
burining on Solaris Installation
Using vold Direct mounting using
mount command Sharing CDROM Unmounting the CD-ROM
Drive
Booting Oracle T4 server
from CD or DVD Solaris Tips History Humor Etc
Unix in general and Solaris in particular has the propensity to make simple tasks complex and mounting CDROM
is one of such cases. There are two main ways of mount CDROM on Solaris
Using vold daemon
Direct mounting using mount command
Using vold
The simplest way to mount CDROM on Solaris is use vold
daemon. The vold daemon in Solaris manages the CD-ROM
device and automatically performs the mounting similar
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
2. to how Windows manages CDROMs (but not as transparent
or reliable). If CD is detected in drive its should be
automatically mounted to the /cdrom/cdrom0 directory. If you
are running File Manager, a separate File Manager window
displays the contents of the CD-ROM.
If the /cdrom/cdrom0 directory is empty because the CD-ROM
was not mounted, or if File Manager did not open a
window displaying the contents of the CD-ROM the first step is to verify the vold daemon is running using the
command:
# pgrep vold
If vold is running, the system displays the process identification number of vold. If the system does not display
anything, restart the daemon by entering the following command:
# /usr/sbin/vold &
If the vold daemon is running but did not mount the CD-ROM, stop the vold daemon process and then restart the
daemon. To stop the vold process, you must know the process identification number. you can get it by entering
this command:
# pgrep vold
Restart the vold process by entering the following command:
# pkill vold && /usr/sbin/vold &
Using direct mount command
If approach based on vold does not work you do try to do it via direct mount command. The first step is to determine the device which
corresponds to the CDROM drive on you server or workstation.
CDROM on Solaris is usually linked to device /dev/sr0. You can determine the name of the device by entering the following command:
ls -al /dev/sr* |awk '{print "/" $11}'
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
3. This command returns the name(s) of the CD-ROM devices on the server. For example, the command can return the string
/dev/dsk/c0t6d0s2.
You can also get the device name in cxtydzsn format, associated with the CD drive:
% iostat -En
c1t0d0 Soft Errors: 149 Hard Errors: 0 Transport Errors: 0
Vendor: MATSHITA Product: CDRW/DVD UJDA740 Revision: 1.00 Serial No:
Size: 0.56GB <555350016 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 149 Predictive Failure Analysis: 0
Here
-E displays all device error statistics & -n shows the names in descriptive format. We are interested in only the logical device name
though.
slice 0 is the default
After you determined the name of device for CDROM drive you can use mount command (if mounting directory for example /cdrom does
not exit you need to create it mkdir /cdrom; chmod a+rwx /cdrom ):
mount -F hsfs -r /dev/sr0 /cdrom
or
mount -F hsfs -o ro /dev/dsk/c1t0d0s0 /cdrom
to mount it (I would like to stress it again that directory /cdrom should exist and have proper permissions for operation to succeed).
After then you can check the results using df command, for example
/ (/dev/dsk/c0d0s0 ):11467100 blocks 959851 files
... ... ...
/cdrom (/dev/dsk/c1t0d0s0 ): 0 blocks
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
4. If you want to simplify the mount process, you can add an entry to the /etc/vfstab file. Edit the /etc/vfstab file and add the following entry:
/dev/dsk/cൈt6dൈs2 - /cdrom hsfs - no ro
If you have UFS CDROM you can specify multiple entries, one for each typr of the filesystem, for example:
/dev/dsk/cൈt6dൈs2 - /cdrom-hsfs hsfs - no ro
/dev/dsk/cൈt6dൈs2 - /cdrom-ufs ufs - no ro
Sharing CDROM mounted on Remote server/workstation
Use a text editor to create an /etc/dfs/dfstab file, if one does not exist. Add the following line to the /etc/dfs/dfstab file:
share -F nfs -o ro /cdrom/cd1
Ensure your remote machine is enabled as an NFS server by entering the following command:
# ps -ef | grep nfs | grep -v grep
This indicates whether the following daemons are running: /usr/lib/nfs/nfsd and /usr/lib/nfs/mountd.
If these daemons are not running, you need to enable your machine as an NFS server by entering the following command:
# /etc/init.d/nfs.server start
If your machine is enabled as an NFS server, enter one of the following commands:
# share
or
# shareall
Log on as superuser on target machine. Then create a /cdrom directory, if one does not already exist, by entering the following command:
# mkdir -p /cdrom/cd1
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
5. Now you can mount the remote CD-ROM as NFS filesystem using command
# /usr/sbin/mount -r remote_machine_name:/cdrom/cd1 /cdrom/cd1
Unmounting the CD-ROM Drive
You need to move out of the CDROM directory to successfully unmount it:
# cd / && umount /cdrom/cdrom0
If CDROM is mounted via NFS from remote computer you need unmount it in two places.
mments
The typical problem is that some process is still using the mounted filesystem. The fuser utility lists processes using a file or files in a
filesystem. To determine what processes may be preventing a filesystem's amount, the -c switch should be used:
fuser -c /cdrom
This command will list the process ids of processes with open files in the filesystem mounted under /mnt. The characters following the pid
provide additional information about the file:
c - the process is using the file as its current working directory
m - the file is mapped with mmap
o - the process is using it as an open file
r - the file is the root directory of the process
t - the process is accessing the file as a text file
y - this file is the controlling terminal for the process
Add a comment
Add to:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
6. Before unmounting a filesystem, Solaris checks to ensure that no files are open to prevent loss of
data. The following are steps that can be followed when a filesystem won't unmount.
The fuser utility lists processes using a file or files in a filesystem. It's To determine what processes may be preventing a filesystem's
umount, the -c switch must be used as running this command as root:
fuser -c /mnt
/mnt: 19504tm 19492tm 19460tm
This command will list the process ids of processes with open files in the filesystem mounted under /mnt. The characters following the
pid provide additional information about the file:
c - the process is using the file as its current working directory
m - the file is mapped with mmap
o - the process is using it as an open file
r - the file is the root directory of the process
t - the process is accessing the file as a text file
y - this file is the controlling terminal for the process
A useful option for fuser is -u which adds the username owning the process to the display:
fuser -cu /mnt
/mnt: 19504tm(root) 19492tm(root) 19460tm(qmchenry)
If you feel comfortable killing the processes reported by fuser, you can do it in one quick blow with the -k option:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
7. fuser -ck /mnt
This sends the SIGKILL signal to each process which is the same as running kill pid to each process.
However, before you go to this extreme, perhaps the most common reason a filesystem won't unmount is because you (or a previous
shell you used) has its current working directory in that filesystem.
Top updates
[Aug 11, 2014] Corruption of Regulators
[Aug 10, 2014] Understanding Micromanagers and Control Freaks : Toxic Managers : Borderline Psychopaths :
Divorcing Borderline Psychopath
[Aug 09, 2014] Labyrinth of Software Freedom. Ch 2 Social Dynamics of Free Software Licenses in the the context of
the Program Life Cycle
[Aug 08, 2014] Serial Console on Solaris : Solaris Mount Tutorial : Setting up Oracle ILOM on Sparc T4 server
[Aug 07, 2014] System Activity Reporter (sar) : Linux implementation of sar
[Aug 06, 2014] Linux route command
[Aug 05, 2014] Teraterm : TeraTerm Macros
Bulletin Latest Past week Past month
Google Search
Search
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
8. Old News
SUMMARY howto mount a cdrom in solaris
Brent Bailey mrb at bmyster.com
Wed May 19 17:36:33 EDT 2004
again.. i want to thank the following people Bhavesh Shah and Debbie for
giving a clue to my question..
QUESTION: how do you mount a cdrom in solaris
SUMMARY:
Bhavesh Shah said:
1) just make sure automountd daemon is running - if not start it from
/etc/init.d - /etc/init.d/autofs start
then mount insert the cdrom and it will be automatically mounted.
2) mount -F hsfs /dev/dsk/cxtxdxs2 /mnt
Debbie said:
If you have vold running (via /etc/init.d/volmgt) it will
mount automatically. To have it mount immediately, you
can run "volcheck" (or "volcheck -v" for more information).
Then to eject it, type "eject cdrom" at the prompt (the
button on the device won't work). Also, if it's a
CDW or CDRW, you need to turn off vold before trying
to write (or even run "cdrecord --scanbus").
again ,,,thank you
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
9. Recommended Links
Softpanorama Top Visited
Softpanorama Bulletin, Vol 25, No.12 (December, 2013) Rational Fools vs.
Efficient Crooks: The efficient markets hypothesis : Corruption of Regulators
: Slightly Skeptical View on University Education : Programmable
Keyboards : Perl Wiki as System Administrator Tool : Requests for non-existing
web pages : eMail Security : Female Sociopaths : Cloud providers
as intelligence collection hubs
Invisible Hand Hypothesys: The Theory of Self-regulation of the Markets : if
statements in shell : Corruption of Regulators : Cron and Crontab commands
: Groupthink : Fifty glorious years (1950-2000): the triumph of the US
computer engineering : Borderline Psychopaths : PHP probes : iLO 3 -- HP
engineering fiasco : The Most Comprehensive Collection of Editor-related
Humor : Unemployment Bulletin, 2010 : Measurement Threshold Policies :
Teraterm : String Operations in Shell : Troubleshooting HPOM agents :
Solaris Mount Tutorial : TeraTerm Macros : Greenspan humor : Education
Humor : Real Insights into Architecture Come Only From Actual
Programming : VIM Humor
Network Bandwidth
Monitor
solarwinds.com/Bandwidth
See Which Users, Apps & Protocols
Are Consuming Bandwidth- Learn
More
Softpanorama Recommended
IBM/Mounting the CD-ROM (Solaris Operating Environment)
Mounting Solaris CDROMs. If you do not have CDROM burner you can mount ISO images directly
Mounting and Unmounting the Essentials CD-ROM on Solaris
Mounting a CD Brief chet car for mounting CDROMs on different flavours of Unix.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
10. Reference
docs.sun.com System Administration Guide Devices and File Systems
Index
Book Information
Preface
1. Managing Removable Media (Overview)
2. Managing Removable Media (Tasks)
3. Accessing Removable Media (Tasks)
4. Writing CDs and DVDs (Tasks)
5. Managing Devices (Overview/Tasks)
6. Dynamically Configuring Devices (Tasks)
7. Using USB Devices (Overview)
8. Using USB Devices (Tasks)
9. Using InfiniBand Devices (Overview/Tasks)
10. Accessing Devices (Overview)
11. Managing Disks (Overview)
12. Administering Disks (Tasks)
13. SPARC: Adding a Disk (Tasks)
14. x86: Adding a Disk (Tasks)
15. Configuring Solaris iSCSI Initiators (Tasks)
16. The format Utility (Reference)
17. Managing File Systems (Overview)
18. Creating UFS, TMPFS, and LOFS File Systems (Tasks)
19. Mounting and Unmounting File Systems (Tasks)
20. Using The CacheFS File System (Tasks)
21. Configuring Additional Swap Space (Tasks)
22. Checking UFS File System Consistency (Tasks)
23. UFS File System (Reference)
24. Backing Up and Restoring File Systems (Overview)
25. Backing Up Files and File Systems (Tasks)
26. Using UFS Snapshots (Tasks)
27. Restoring Files and File Systems (Tasks)
28. UFS Backup and Restore Commands (Reference)
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
11. 29. Copying UFS Files and File Systems (Tasks)
30. Managing Tape Drives (Tasks)
Etc
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks
: Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as
Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian
Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin :
Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham :
Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain
Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 :
Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical
Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) :
Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 :
Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware
Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November,
2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method :
Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
12. Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science
: Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor :
History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development :
Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander :
Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer
Programming : The Elements of Programming Style : The Unix Haterൈs Handbook : The Jargon file : The True Believer : Programming
Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo
Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all
nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related
Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real
Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor :
Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor :
Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor :
Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering
Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor :
Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least
Copyright ൈ 1996-2014 by Dr. Nikolai Bezroukov. www.softpanoram a.org was cre ate d as a se rvice to the UN Sustainable De ve lopm e nt Ne twork ing Program m e (SDNP) in the
author fre e tim e . This docum e nt is an industrial com pilation de signe d and created exclusively for educational use and is distribute d unde r the Softpanoram a C onte nt
Lice nse . Site use s AdSe nse so you ne e d to be aware of Google privacy policy. O riginal m ate rials copyright be long to re spe ctive owne rs. Quotes are made for educational
purposes only in compliance with the fair use doctrine. This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language.
Gram m ar and spe lling e rrors should be e x pe cte d. The site contain some broken links as it develops like a living tree...
You can use PayPal to m ak e a contribution, supporting hosting of this site with diffe re nt provide rs to distribute and spe e d up acce ss. C urre ntly
the re are two functional m irrors: softpanoram a.info (the faste st) and softpanoram a.ne t.
Disclaimer:
The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and
former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
13. Last modified: August 05, 2013
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com