Tuesday 26 November 2013

To mount a CD-ROM in different OS.

Using CD-ROMs during installation

WebSphere Application Server is installed from CD-ROM. (Fixpaks are available via download .) The information provided here will be helpful when dealing with CD-ROMs in these various configurations, since each operating system handles CD-ROMs differently.

AIX

In AIX, a CD-ROM must be logically mounted before it can be accessed by the system for installation.
To mount a CD-ROM in AIX:
  1. Insert the CD-ROM into the CD-ROM drive.
  2. Log in as user ROOT or type su - root to login using the root profile.
  3. Create a /cdrom directory by entering mkdir /cdrom.
  4. Enter smit to add a CD-ROM file system.
  5. Select System Storage Management (Physical & Logical Storage) -> File Systems -> Add/Change/Show/Delete File Systems -> CDROM File Systems -> Add a CDROM File System.
  6. Select a device name, such as cd0. CD-ROM file system device names must be unique.
  7. Type /cdrom to get the Mount Point prompt.
  8. Select OK, or press Enter if using the smit ASCII interface, returning to the previous smit level, System Storage Management (Physical & Logical Storage).
  9. Select File Systems -> Mount a File System.
  10. For file system name, select /dev/cd0.
  11. For directory over which to mount, select /cdrom.
  12. For type of file system, select cdrfs.
  13. For Mount as a READ-ONLY system, select Yes.
  14. Select OK, or press Enter if using the smit ASCII interface.
  15. Exit smit.
To install WebSphere Application Server from CD-ROM using tar files:
  1. Add and mount the CD-ROM, following the steps above.
  2. Log in with root authority.
  3. Change the directory to /cdrom.
  4. Invoke ./install.sh by following the standard installation instructions.
  5. When the installation is complete, dismount the CD-ROM by typing: cd .. umount /cdrom.
  6. Eject the CD.

Solaris

If Volume Management is running on Solaris, the operating system will logically mount the CD-ROM as soon as it is inserted into the drive. If Volume Management is not running, you will need to logically mount the CD-ROM.
To mount a CD-ROM on Solaris:
  1. Login as root.
  2. Start the Volume Management daemon by executing the commands: /etc/init.d/volmgt start
    ps -ef | grep vold

    Process /usr/sbin/vold should then be started.
To install WebSphere Application Server from CD-ROM using tar files:
  1. Insert the CD-ROM into the CD-ROM drive and mount, if necessary. The CD-ROM will be mounted, for example, as /cdrom/was350. When a CD-ROM is inserted as root, a File Manager window will be started. Do not kill it. You need this window to eject the CD-ROM. If you kill the window, an orphan process will be using the CD-ROM, resulting in "device busy" errors when you try to eject the CD.
  2. Log in as root and run the CD by typing: cd /cdrom/was350
  3. Invoke ./install.sh by following the standard installation instructions.
  4. When the installation is complete, dismount the CD-ROM by typing: cd eject cdrom.
To detect if a CD-ROM is already in the drive, use the volcheck command. For example: $ volcheck -v /cdrom. If no CD-ROM is present, the message /cdrom has no media will display.

HP-UX

In HP-UX, a CD-ROM must be logically mounted before it can be accessed by the system for installation.
To mount a CD-ROM on HP-UX:
  1. Insert the CD-ROM into the CD-ROM drive.
  2. Log in as user ROOT or type su - root to login using the root profile.
  3. Issue the mount command to determine if the CD-ROM file system is already mounted and operational by verifying that /cdrom is listed. If it is, then you may install the contents of the CD. If not, then you need to create a file system and then logically mount the CD-ROM by continuing with the remaining steps.
  4. Create a directory for the CD-ROM, by typing: mkdir /cdrom.
  5. Type: sam &
  6. Select Disks -> File Systems -> Disk Devices -> CDFS (for CD-ROM File System).
  7. From the menu bar, select Actions -> View more information -> Show Device Files.
  8. Do not select raw devices such as /dev/rdsk/c0t2d0. Make a note of the value for Device File. For example, in HP-UX 10, it might be: /dev/dsk/c0t2d0.
  9. Close the windows and exit sam.
  10. Logically mount the CD-ROM drive manually with the command: mount /dev/dsk/c0t2d0 /cdrom
  11. Issue the mount command again and verify that /cdrom is listed.
The normal mount in HP-UX is sometimes unable to handle very long file names, which may hinder the installation of DB2. To overcome this:
  1. Mount the CD-ROM with the command: pfs_mountd & pfsd 4& pfs_mount /CDROM
  2. Proceed with the installation as normal.
  3. When you have finished using the CD, unmount the CD usith the command: pfs_umount /CDROM
Always unmount the CD before logging out of the session to avoid shutdown problems or the need to reboot.

Windows

Windows recognizes the CD-ROM drive during boot and treasts it as a read-only drive.