University of California at Berkeley Department of Electrical Engineering & Computer Sciences Instructional & Electronics Support Groups Oct 10 2008 /share/b/pub/Solaris.drives http://inst.eecs.berkeley.edu/share/b/pub/Solaris.drives CONTENTS: Using Removable Media on Instructional Workstations Which Computers Have Disk Drives? How to use Floppy Drives (on Macs, NT, Solaris) How to use Zip Drives (on NT, Solaris) How to use CD-ROM Drives (on NT, Solaris) How to play Audio CDs (on NT, Solaris) Using Removable Media on Instructional Workstations --------------------------------------------------- This document describes the media available - floppy disks, zip disks, CD-ROM disks and tape - to read, load or archive files on the computers supported by the Instructional & Electronics Support Groups. You can bring floppy disks, zip disks and tape and use them to run programs or archive files. You may also use your own CDs to run programs or listen to music. Which Computers Have Disk Drives? --------------------------------- All the PCs have floppy and CD-ROM drives. This includes the Macs and PCs in 199 Cory, 330 Soda and 349 Soda and the Solaris x86 machines in 275 Soda. How to use Floppy Drives ------------------------ On Macs ------- Insert the floppy disk. It becomes visible on the desktop. Double-click to open it. No machines running any flavor of the UNIX operating system can read Mac formatted diskettes. On Windows Workstations ----------------------- Insert the floppy disk. From the Start menu, single-click the right mouse button and single-click on Explore. Double-click the left mouse button on the A: drive. From the Start menu, using the left mouse button, open Programs/Windows NT Explorer/A:. Eject the disks manually using the button on the right hand side under the disk drive. On Solaris PCs -------------- The floppy drive reads both Solaris formatted and MS-DOS formatted disks; this section is geared toward MS-DOS users. The drive does not read Macintosh formatted disks. The floppy drive uses both double-density (740 KByte) and high-density (1.44 MByte) 3.5" floppy disks; they can be purchased at most computer and electronics stores. To insert a floppy disk, hold it horizontally with the label side up and place it into the floppy disk drive. You will hear a click and see the eject button pop up. Please do not force your disk into the drive. To format a floppy for use under MS-DOS and Solaris, type: % fdformat -d /vol/dev/rdiskette0 This formats a blank diskette so that files will be readable by MS-DOS. The fdformat manual page has several other options which may be useful. To mount a floppy disk use the programs 'volcheck' and 'eject'. The following is a sample session to demonstrate the use of a Solaris floppy drive. For more information read the 'volcheck' and 'eject' manpages. This sample session uses a diskette has already been formatted and has some MS-DOS files on it. % volcheck % cd /floppy % ls floppy0 no_name % cd no_name % ls atapi_cd.sys command.com mailbox.txt tmp/ autoexec.bat config.sys report.doc % cp report.doc ~/documents/ % rm mailbox.txt % rmdir tmp % eject /vol/dev/rdiskette0/no_name: Device busy % cd / % eject /vol/dev/rdiskette0/no_name can now be manually ejected The 'volcheck' program checks to see if there is a floppy present and mounts it under /floppy/[DOS disk label]. Since the above disk had no label, it mounted it under /floppy/no_name. Once the disk is mounted, it is accessed as a regular UNIX filesystem. Finally, the floppy should be ejected using 'eject' to write any unsaved data on the floppy and prevent data loss. If you get the "Device busy" error, change directory to /, close any programs that were started while you were accessing the floppy or reading in files on the floppy, and typing 'eject' again. While the disk drive is being accessed for reading or writing, the light in the lower left-hand corner will flash. Do not attempt to eject the floppy disk while this light is flashing; you may damage your disk and the drive itself. Once you have successfully run the 'eject' command, press the button on the right-hand side of the floppy drive to manually eject the floppy disk from the drive. How to use Zip Drives --------------------- On Windows Workstations ----------------------- Insert the Zip disk, label side up, into the drive. From the Start menu, single-click on the right mouse button, and choose Explore. When you see the removable disk, select it, and click once with the right mouse button; this will show you a menu. To format a zip disk, select Format from the menu revealed by single-clicking the right mouse button. Choose either the FAT or NTFS filesystem to be compatible with the machine you want to read the files. The format options allow a quick format that does not verify. You can enable compression. To open a file on the zip disk, double-click as for any other file. You can copy files to and from the zip disk by pointing and dragging. Eject the disk by choosing Eject from the menu revealed by the right mouse button. On Solaris PCs -------------- To format a zip disk (PC DOS format): % /usr/local/sbin/ziptool /dev/rdsk/c2t5d0s2 \$msdos When the disk is formatted, it will eject. To mount the disk for writing, insert the ZIP disk into the drive. Then type: % /usr/local/sbin/mount_zip % cd /zip To unmount the zip disk, cd out of the zip directory, and then type: % /usr/local/sbin/umount_zip For 'root', if you are having trouble ejecting the zip drive (this might work as a mortal user as well...) -brg: # eject /dev/dsk/c2t5d0p0 How to use CD-ROM Drives ------------------------ On NT Workstations ------------------ To insert a CD-ROM, press the lower right-hand button on the CD drive unit until the CD drawer opens. Place your CD label-up within the CD drawer. Make sure the CD is level and completely within the drawer, then press the left-hand button again to close the drawer. On Solaris PCs -------------- To insert a CD-ROM, press the lower right-hand button on the CD drive unit until the CD drawer opens. Place your CD label-up within the CD drawer. Make sure the CD is level and completely within the drawer, then press the left-hand button again to close the drawer. Once the CD-ROM is inserted, Solaris will automatically mount the cdrom under the directory /cdrom. The contents of the CD-ROM can then be read using regular UNIX commands. Once finished, the CD-ROM can be ejected using the 'eject' command. The following is a short sample session on using a CD-ROM. The session assumes that the CD-ROM has already been inserted into the drive. % cd /cdrom % ls cdrom0@ mech2/ % cd mech2 _setup.001* directx/ instmap1.bwd* mw2help.gid* smackw32.dll* _setup.003* dset.exe* keating/ mw2info.txt* sp16/ _setup.005* dsetup16.dll* license.txt* mw2net.cfg* start.exe* about.fts* en02star.bwd* mech2/ mystique.par* tech.hlp* about.gid* en03star.bwd* mek/ netlayer.dll* tmp.out* archjf.mw2* en06star.bwd* mw2.adv* readme.txt* wail32.dll* button.wav* eregreg2.dll* mw2.phx* setup.bmp* % cp button.wav ~/sounds/ % cd / % eject The last 'eject' command should open the drawer, at which time you can retrieve your CD-ROM. If you get the 'Device busy' error, try following the same steps for solving this error as if you were trying to access a floppy (see the above section on floppy drives). The CD-ROM drive will not eject the CD-ROM in response to pushing the left-hand button if the CD-ROM has not been unmounted by using the 'eject' command. If you want to mount a non-audio CD-ROM, you will need the help of the system administrators; contact inst@eecs.berkeley.edu for this. How to play Audio CDs --------------------- On Windows Workstations ------------------ Users who bring their own earphones and plug them in can play music CDs on the Windows machines in 330 Soda or 199 Cory. On Solaris PCs -------------- Currently not available at this time. If you have any questions or problems regarding the floppy disk, zip, or CD-ROM drives, please send email to inst@EECS.Berkeley.EDU with a clear description of your situation. EECS Instructional Support Group 386/384/378 Cory, 333 Soda inst@eecs.berkeley.edu