open.itworld.com
  Search  
Security Home Page Security Webcasts Security White Papers Security Newsletters Security News Open Topics Careers ITworld Voices ITwhirled The Security site of ITworld.com

Unix Tip: Sharing DVD drives

ITworld.com 12/05/2006

Sandra Henry-Stocker, ITworld.com

Send in your Unix questions today! | See additional Unix tips and tricks

While only the newer Sun systems and higher-end PCs today are equipped with DVD drives, application software is beginning to arrive on DVDs because of the tremendous increase in storage capacity. Your typical CD holds about 700 MB of data. That was a lot of data when system disks were only a couple of gigabytes in size. DVDs, on the other hand, may hold 4.3 or 4.7 GB -- and that's just a starting point. If the multi-layer storage capacity of DVDs is ever fully employed, DVDs will hold nearly 16 GB of data. With less overhead for data integrity and more area, it's no wonder that Solaris is being shipped on DVDs only.

So what do you do if you need to install software that is only available on a DVD on a system which has only a CD drive? One answer is to mount and share the DVD from a system with a DVD reader. Since I had to do that just last week, I'll run through the steps in today's column.

First, to share a DVD, you must insert it into a system that can read it. Sharing a DVD is essentially the same as sharing a CD. In fact, DVDs will automount under the same mount point as CDROMs, /cdrom, if vold is running on a Solaris system.

bash# ls /cdrom
big_app_install  cdrom0
To share the mounted drive, we use the share command. Notice we share the directory containing the data, not the /cdrom mount point:
bash# share -o ro -d base_ade_netra /cdrom/base_ade_netra
I've used the read-only option (-o ro) and the description option (-d ) to share the DVD above. And I always check a file system after I've shared it to see that my sharing has worked:
bash# share
-               /cdrom/big_app_install   ro   "big app install"
To mount the drive on the target system, I use the mount command. If you run into a "program not registered" error like that shown below, your NFS server is not running the NFS processes. If so, you can start them with the S15nfs.server script but, unless your /etc/dfs/dfstab file contains share entries, you will run into a second error, also shown below.
bash# mount -o ro fserver:/cdrom /cdrom
nfs mount: fserver: : RPC: Program not registered
nfs mount: retrying: /cdrom
# ./S15nfs.server start
NFS service was not started because /etc/dfs/dfstab has no entries.
When your /etc/dfs/dfstab file contains at least one share command, you can start NFS services and then verify that your file systems were shared.
bash# ./S15nfs.server start
bash# share
-               /cdrom/big_app_install   ro   "big_app_install"
To mount the file system on your file server, use the mount command along with the read-only option. You can mount using the /mnt directory or create a /dvd directory if that makes more sense for you.
bash#  mount -o ro fserver:/cdrom/big_app_install /mnt
When you have extracted or otherwise finished with the data on your mounted DVD, you should unmount the drive on the client before attempting to eject it on the file server.
bash# umount /mnt
If you won't be mounting the same DVD again, you may want to remove the sharing command from the server and then unmount the drive. If you are depending on the services of vold, you can unmount the DVD using just the eject command. If you manually mounted the DVD, you should manually unmount it as well.
bash# unshare /cdrom/big_app_install
bash# eject
The move from CDs as the standard for software installation to DVDs may take a while, but it's as predictable as the move from diskettes to CDs that occurred many years ago and for the same reason. The capacity of double-sided diskettes was only 1.44 MB. The 700 MB CD ROMs hold more than 650 times as much data and are comparably priced.

DVDs have roughly six times the capacity of CD ROMs and are not significantly more expensive. When you consider how much time is saved if you can install from one platter instead of six, the future is clear. CD ROM drives that are *only* CD ROM drives and not also DVD readers are on their way out.

On this topic

 

Sandra Henry-Stocker has been administering Unix systems for more than 18 years. She describes herself as "USL" (Unix as a second language) but remembers enough English to write books and buy groceries. She currently works for TeleCommunication Systems, a wireless communications company, in Annapolis, Maryland, where no one else necessarily shares any of her opinions. She lives with her second family on a small farm on Maryland's Eastern Shore. Send comments and suggestions to bugfarm@gmail.com.




Sponsored Links

Sign up for a Microsoft Dynamics® CRM WEBCAST
Hear globally recognized leaders in customer strategy discuss the importance and evolution of CRM.
TRY NEW SUN SERVERS FREE for 60 Days!
Test The Latest Sun Servers In Your Environment BEFORE YOU BUY. Pay Nothing, Not Even Shipping.
Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.
Sign up for a FREE NETWORK RISK ASSESSMENT!
MORE THAN 70% OF NETWORKS ARE INFECTED by hidden Malware. Find out if your network is infected now!
Enterprise IP Goes Mobile
To maximize full productivity, companies must integrate their mobile applications with the IP network.
» Buy a link now

Advertisements
Sponsored links
Top 5 Reasons to Combine App Performance and Security
Locate Hidden Software on business PCs with this free tool
KODAK i1400 Series Scanners stand up to the challenge
Bring harmony to your mix of UNIX-Linux-Windows computing environments
 Home   Open source  Operating systems  Unix
www.itworld.com    open.itworld.com     security.itworld.com     smallbusiness.itworld.com
storage.itworld.com     utilitycomputing.itworld.com     wireless.itworld.com

 
Contact Us   About Us   Privacy Policy    Terms of Service   Reprints  

CIO   Computerworld   CSO   GamePro   Games.net   IDG Connect   IDG World Expo   Infoworld   ITworld   JavaWorld   LinuxWorld  MacUser   Macworld   Network World   PC World   Playlist  

Copyright © Computerworld, Inc. All rights reserved

Reproduction in whole or in part in any form or medium without express written permission of Computerworld Inc. is prohibited. Computerworld and Computerworld.com and the respective logos are trademarks of International Data Group Inc.