[ Pobierz całość w formacie PDF ]
.Note that there are no spacesbetween the commas and the options.Techno Talk:Each line in the /etc/fstab file has the following format:device mountpath fstype options dump_order check_order" device specifies the name of the device file that represents the disk.UNIX devices such as your floppy disk are represented by device files.These are special files, and when accessed, they actually interact withyour hardware.Device files reside in the /dev directory.When aprogram needs to use the device, it reads or writes to it as if it was aregular file.This simplifies the way programs talk to different hardware.For floppy disks, device filenames begin with /dev/fd.A number at theend of the filename allows for multiple devices of the same kind.YourCD-ROM will typically be /dev/cdrom, which is really a link to a morespecific file, depending on whether your CD-ROM drive is an IDE drive,a SCSI drive, or some other type of drive." mountpath specifies where the device is mounted.Typically, thiswill be /mnt/floppy or /mnt/cdrom for your floppy and CD-ROMdrives respectively." fstype specifies the format of the file system.If you specify auto,the system will attempt to detect the type of disk for you." options specifies a list of comma-separated options that tell thesystem how to handle the device.For example, there are options that tellthe system the following: whether certain bits on the files should beinterpreted, whether users should be able to mount the device, whetherthe device should be auto mounted at startup, or whether the deviceshould be mounted read-write or read only.To read about all the options,you can use kdehelp (discussed in Chapter 4, Working withApplications ) or the man command (Chapter 15, Help Please ) andsearch the UNIX manual pages for fstab and mount.http://www.itknowledge.com/reference/standard/078971826x/ch07/069-072.html (3 of 4) [1/27/2000 5:49:59 PM]Complete Idiot's Guide to Linux:Working with Disks" dump_order specifies the order in which file systems should bedumped by the dump program, a program used for backing up your filesystem to tape (see Chapter 19, Backups: Safeguarding Your Work )." check_order provides information for fsck (file system check)that specifies the order in which disks are checked.If your system is shutdown inappropriately, the next time you boot your system, your diskswill be checked for any errors.The number specified by this option tellsthe system in what order to perform the check.For more information onfsck, use the man command (Chapter 15).Previous Table of Contents NextProducts | Contact Us | About Us | Privacy | Ad Info | HomeUse of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.All rights reserved.Reproduction whole or in part in any form or medium without express written permission of EarthWeb isprohibited.http://www.itknowledge.com/reference/standard/078971826x/ch07/069-072.html (4 of 4) [1/27/2000 5:49:59 PM]Complete Idiot's Guide to Linux:Working with DisksTo access the contents, click the chapter and section titles.Complete Idiot's Guide to Linux(Publisher: Macmillan Computer Publishing)Author(s): Manuel RicartGo!ISBN: 078971826xPublication Date: 12/22/98KeywordBrief FullAdvancedSearch this book:SearchSearch TipsGo!Previous Table of Contents Next-----------To enable regular users to mount a floppy in /mnt/floppy, you need to adda comma (,) and then the user option to the list of options for the floppydevice.To enable use of the CD-ROM by regular users, you ll need to modify theentry that contains both the text /mnt/cdrom and the file system type iso9660.In my case, the entry for my IDE CD-ROM begins with /dev/hdd.To allowregular users to mount the CD-ROM drive, add a comma (,) and then the useroption to the list of options for the CD-ROM device, like this:/dev/hdd /mnt/cdrom auto ro,noauto,user 0 0After you have completed your modifications, save the file and exit KEdit andthe root KFM window.Creating kdelnk Files for the Floppy and CDAfter you make your CD and floppy drives accessible to all users, you willwant to easily access the device through an icon.This will allow you to mountthe volume using your mouse instead of having to use command line tools.KDE has special files whose names have a.kdelnk extension.These filesare used for several purposes, including to relate devices to icons.Althoughcreating one of these files is a bit awkward, it is not difficult to do, especially ifwe use the device template that is built into the KDE.To create an icon for your floppy drive, begin by right-clicking on the desktop.On the popup menu that appears, select New, and then Device.A window willappear, asking for a file name for your icon.Replace the default namehttp://www.itknowledge.com/reference/standard/078971826x/ch07/073-076.html (1 of 4) [1/27/2000 5:50:01 PM]Complete Idiot's Guide to Linux:Working with Disks Device.kdelnk with a name to represent your floppy drive, such as Floppy.kdelnk. A new icon will appear on your desktop; the icon will be aquestion mark to indicate that the new device is not yet configured.To configure the device, right-click on the icon and select Properties from thepopup menu.This will cause KFM to display its window for configuring.kdelnk files.Select the Device tab at the top of the window to displayoptions pertaining to mounting.In the box labeled Device, type /dev/fd0, butdon t press Enter yet.Don t enter anything into the Mount Point orFilesystems boxes.The new device icon must be configured before it will work.Since it hasn tbeen configured yet, it appears as a question mark.KFM uses a special window to configure.kdelnk files.To configure a device icon:" Select the Device tab at the top of the window." Enter the device filename in the Device box [ Pobierz caÅ‚ość w formacie PDF ]
zanotowane.pl doc.pisz.pl pdf.pisz.pl odbijak.htw.pl
.Note that there are no spacesbetween the commas and the options.Techno Talk:Each line in the /etc/fstab file has the following format:device mountpath fstype options dump_order check_order" device specifies the name of the device file that represents the disk.UNIX devices such as your floppy disk are represented by device files.These are special files, and when accessed, they actually interact withyour hardware.Device files reside in the /dev directory.When aprogram needs to use the device, it reads or writes to it as if it was aregular file.This simplifies the way programs talk to different hardware.For floppy disks, device filenames begin with /dev/fd.A number at theend of the filename allows for multiple devices of the same kind.YourCD-ROM will typically be /dev/cdrom, which is really a link to a morespecific file, depending on whether your CD-ROM drive is an IDE drive,a SCSI drive, or some other type of drive." mountpath specifies where the device is mounted.Typically, thiswill be /mnt/floppy or /mnt/cdrom for your floppy and CD-ROMdrives respectively." fstype specifies the format of the file system.If you specify auto,the system will attempt to detect the type of disk for you." options specifies a list of comma-separated options that tell thesystem how to handle the device.For example, there are options that tellthe system the following: whether certain bits on the files should beinterpreted, whether users should be able to mount the device, whetherthe device should be auto mounted at startup, or whether the deviceshould be mounted read-write or read only.To read about all the options,you can use kdehelp (discussed in Chapter 4, Working withApplications ) or the man command (Chapter 15, Help Please ) andsearch the UNIX manual pages for fstab and mount.http://www.itknowledge.com/reference/standard/078971826x/ch07/069-072.html (3 of 4) [1/27/2000 5:49:59 PM]Complete Idiot's Guide to Linux:Working with Disks" dump_order specifies the order in which file systems should bedumped by the dump program, a program used for backing up your filesystem to tape (see Chapter 19, Backups: Safeguarding Your Work )." check_order provides information for fsck (file system check)that specifies the order in which disks are checked.If your system is shutdown inappropriately, the next time you boot your system, your diskswill be checked for any errors.The number specified by this option tellsthe system in what order to perform the check.For more information onfsck, use the man command (Chapter 15).Previous Table of Contents NextProducts | Contact Us | About Us | Privacy | Ad Info | HomeUse of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.All rights reserved.Reproduction whole or in part in any form or medium without express written permission of EarthWeb isprohibited.http://www.itknowledge.com/reference/standard/078971826x/ch07/069-072.html (4 of 4) [1/27/2000 5:49:59 PM]Complete Idiot's Guide to Linux:Working with DisksTo access the contents, click the chapter and section titles.Complete Idiot's Guide to Linux(Publisher: Macmillan Computer Publishing)Author(s): Manuel RicartGo!ISBN: 078971826xPublication Date: 12/22/98KeywordBrief FullAdvancedSearch this book:SearchSearch TipsGo!Previous Table of Contents Next-----------To enable regular users to mount a floppy in /mnt/floppy, you need to adda comma (,) and then the user option to the list of options for the floppydevice.To enable use of the CD-ROM by regular users, you ll need to modify theentry that contains both the text /mnt/cdrom and the file system type iso9660.In my case, the entry for my IDE CD-ROM begins with /dev/hdd.To allowregular users to mount the CD-ROM drive, add a comma (,) and then the useroption to the list of options for the CD-ROM device, like this:/dev/hdd /mnt/cdrom auto ro,noauto,user 0 0After you have completed your modifications, save the file and exit KEdit andthe root KFM window.Creating kdelnk Files for the Floppy and CDAfter you make your CD and floppy drives accessible to all users, you willwant to easily access the device through an icon.This will allow you to mountthe volume using your mouse instead of having to use command line tools.KDE has special files whose names have a.kdelnk extension.These filesare used for several purposes, including to relate devices to icons.Althoughcreating one of these files is a bit awkward, it is not difficult to do, especially ifwe use the device template that is built into the KDE.To create an icon for your floppy drive, begin by right-clicking on the desktop.On the popup menu that appears, select New, and then Device.A window willappear, asking for a file name for your icon.Replace the default namehttp://www.itknowledge.com/reference/standard/078971826x/ch07/073-076.html (1 of 4) [1/27/2000 5:50:01 PM]Complete Idiot's Guide to Linux:Working with Disks Device.kdelnk with a name to represent your floppy drive, such as Floppy.kdelnk. A new icon will appear on your desktop; the icon will be aquestion mark to indicate that the new device is not yet configured.To configure the device, right-click on the icon and select Properties from thepopup menu.This will cause KFM to display its window for configuring.kdelnk files.Select the Device tab at the top of the window to displayoptions pertaining to mounting.In the box labeled Device, type /dev/fd0, butdon t press Enter yet.Don t enter anything into the Mount Point orFilesystems boxes.The new device icon must be configured before it will work.Since it hasn tbeen configured yet, it appears as a question mark.KFM uses a special window to configure.kdelnk files.To configure a device icon:" Select the Device tab at the top of the window." Enter the device filename in the Device box [ Pobierz caÅ‚ość w formacie PDF ]