![]() |
![]() |
|
|
% mount /mnt/cdrom
Once the CD is mounted, the files can be accessed under the directory /mnt/cdrom. Note: this only mounts ISO9660 format disks (the most common type). If you need to mount something else then send mail to help@code.
To unmount the cd:
% umount /mnt/cdrom
Note: you cannot unmount any device if some process is using it. You will get a 'device busy' error in that case. if this happens, make sure you are not underneath the /mnt/cdrom directory in one of your shells or other programs. You can also use the program 'fuser' to try to determine which process is using the resource. Please unmount the CD when you are finished. The CD cannot be removed from the drive unless the filesystem has been unmounted. You can eject the CD using the command (or just press the button on the drive):
% eject
man mtools
To mount the floppy:
% mount /mnt/floppy
Once the floppy is mounted, the files can be accessed under the directory /mnt/floppy.
To unmount the floppy:
% umount /mnt/floppyMake sure you unmount the floppy before removing it or you may not have the changes recorded.
See the discussion above on unmounting CDs if you have trouble unmounting a floppy.
To create a tar file on the disk:
tar cvzf /dev/fd0 file1 file2 ...To extract the data (assuming it's compressed - that's the 'z' option):
tar xvzf /dev/fd0
Last modified: Thu Dec 3 16:29:46 PST