[ Pobierz całość w formacie PDF ]
.You can, for example, change the original fstabentries to/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user 0 0/dev/hdb /mnt/cdrom iso9660 noauto,ro,user 0 0You ll now be able to mount CD-ROMs without having to be the root operator, by using# mount /dev/cdromor# mount /mnt/cdromThis will automatically mount your CD-ROM s filesystem at the /mnt/cdrom path.You llalso be able to switch your disks with the umount command, for example:# umount /dev/cdromor# umount /mnt/cdromAlthough you should enable this type of convenience only if you re using Linux on astandalone computer, and only for certain types of filesystems, such as CD-ROMs, it isconvenient, especially for removable filesystems.Another type of removable filesystem is thevenerable floppy drive.The next section discusses floppy drives, and is followed by adiscussion of a package of floppy utilities that can make life easier when dealing with floppiesunder Linux.2 1318 Hour 21Formatting a FloppyThis section introduces you to three programs you might need to format a floppy under Linuxand takes you step-by-step through the process.You might find this information useful if youwant to back up files or use the floppy to install and test new software.You ll also learn howto format and then mount your floppy in Linux native format using the ext2 filesystem (usedfor your Linux partition, and the root, or /, directory).The floppy devices are located under the /dev directory, and there are quite a few of them.You ll find a device corresponding to just about any type of floppy device ever made.You canlook at the /dev directory for floppy devices as follows:# ls /dev/fd*/dev/fd0 /dev/fd0H1722 /dev/fd0h1600 /dev/fd1E3200 /dev/fd1H830/dev/fd0CompaQ /dev/fd0H1743 /dev/fd0h360 /dev/fd1E3520 /dev/fd1d360/dev/fd0D1040 /dev/fd0H1760 /dev/fd0h410 /dev/fd1E3840 /dev/fd1h1200/dev/fd0D1120 /dev/fd0H1840 /dev/fd0h420 /dev/fd1H1440 /dev/fd1h1440/dev/fd0D360 /dev/fd0H1920 /dev/fd0h720 /dev/fd1H1600 /dev/fd1h1476/dev/fd0D720 /dev/fd0H360 /dev/fd0h880 /dev/fd1H1680 /dev/fd1h1494/dev/fd0D800 /dev/fd0H720 /dev/fd1 /dev/fd1H1722 /dev/fd1h1600/dev/fd0E2880 /dev/fd0H820 /dev/fd1CompaQ /dev/fd1H1743 /dev/fd1h360/dev/fd0E3200 /dev/fd0H830 /dev/fd1D1040 /dev/fd1H1760 /dev/fd1h410/dev/fd0E3520 /dev/fd0d360 /dev/fd1D1120 /dev/fd1H1840 /dev/fd1h420/dev/fd0E3840 /dev/fd0h1200 /dev/fd1D360 /dev/fd1H1920 /dev/fd1h720/dev/fd0H1440 /dev/fd0h1440 /dev/fd1D720 /dev/fd1H360 /dev/fd1h880/dev/fd0H1600 /dev/fd0h1476 /dev/fd1D800 /dev/fd1H720/dev/fd0H1680 /dev/fd0h1494 /dev/fd1E2880 /dev/fd1H820This section concentrates on the more common device for 3.5-inch, 1.44MB floppies.These are/dev/fd0 Drive A/dev/fd1 Drive BA number of supported floppy formats are listed in the fdprm, or floppy drive parameter file,under the /etc/ directory.Take a look at a portion of the file:# /etc/fdprm - floppy disk parameter table# Common disk formats.Names are of the form# actual media capacity/maximum drive capacity# (Note: although 5.25" HD drives can format disks at 1.44M, they re listed# as 1200 because that s the common maximum size.)# size sec/t hds trk stre gap rate spec1 fmt_gap360/360 720 9 2 40 0 0x2A 0x02 0xDF 0x501200/1200 2400 15 2 80 0 0x1B 0x00 0xDF 0x54360/720 720 9 2 40 1 0x2A 0x02 0xDF 0x50720/720 1440 9 2 80 0 0x2A 0x02 0xDF 0x50720/1440 1440 9 2 80 0 0x2A 0x02 0xDF 0x50360/1200 720 9 2 40 1 0x23 0x01 0xDF 0x50720/1200 1440 9 2 80 0 0x23 0x01 0xDF 0x501440/1440 2880 18 2 80 0 0x1B 0x00 0xCF 0x6C.2 1Handling Files 319The format you ll most likely be interested in is the 1440/1440 description of today s 3.5-inch high-density drives
[ Pobierz całość w formacie PDF ]