REDHAT认证学习资料Chapter4.doc

  1. 1、本文档共36页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Mounting Floppy Disks and Removable Media To read floppy disks and other removable media with Red Hat Linux, you need to mount the device, just as you would any other file system. Red Hat has created mount points in the /mnt directory for just this purpose. The subdirectory, /mnt/floppy, is for mounting a single floppy disk at a time, while /mnt/cdrom is used to mount a single CD-ROM at a time. To mount an MS-DOS-formatted floppy, you would run: # mount -t msdos /dev/fd0 /mnt/floppy Recall that the -t option to the mount command specifies the type of file system were mounting. The device, /dev/fd0, is the first floppy disk device. If you have a second floppy disk, the second device would be /dev/fd1. To mount both the first and second floppy at the same time would require another directory, such as /mnt/floppy2, as the mount point. The final argument tells mount which mount point to use. After you have mounted the floppy disk, any reads or writes you perform in /mnt/floppy happen on the floppy disk. The device for your CD-ROM is normally /dev/cdrom. To mount an IS09660 CD-ROM, run: # mount -t iso9660 /dev/cdrom /mnt/cdrom Now you can read the contents of /mnt/cdrom as if it were a normal file system on your system. To unmount a floppy or CD-ROM, use the unmount command with the mount point as an argument. The following commands unmount both our floppy and CD-ROM: # umount /mnt/floppy # umount /mnt/cdrom It is important you unmount floppy disks before removing them. Because of the way UNIX caches information before writing to disk, there is a good chance youll lose data by simply removing a floppy without unmounting it. One system has a Zip drive of 100MB. The device is /dev/hdd and it was formatted as a Linux Native (Extended 2 File System) on the one partition /dev/hdd1. The directory /mnt/zip was created and a permanent entry in /etc/fstab was added to mount the device at every reboot. The command to manually mount the Zip drive was: # mount /dev/hdd1 /m

文档评论(0)

gangshou + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档