220 Part II . Getting Around in Linux (Fedora web server)

220 Part II . Getting Around in Linux storage media, remember that the system treats fixed and removable devices equally. When a device has been mounted it is available for use until it has been unmounted or removed. /dev/hda8 / ext2 defaults 1 1 /dev/hda5 /boot ext2 defaults 1 2 none /dev/pts devpts mode=0620 0 0 /dev/hdb1 /fun ext2 defaults 1 2 /mnt/cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom 0 0 /mnt/cdrom2 /mnt/cdrom2 supermount fs=iso9660,dev=/dev/cdrom2 0 0 /mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0 /dev/hda1 /mnt/win_c vfat user,exec,umask=0 0 0 /dev/hda7 /mnt/win_d vfat user,exec,umask=0 0 0 none /proc proc defaults 0 0 /dev/hda9 swap_upgrade swap defaults 0 0 For example, the line /dev/hda8 / ext2 defaults 1 1indicates that partition 8 of hard drive A is mounted in the root (/) directory. The file system is type ext2, and the default options are used for this device. Some of the options available for use are noauto, which specifies that the device should not be automatically mounted, and user, which specifies that the devices are user mountable. The file 0 0 field is used to determine which devices need to be dumped. A value of 0 here specifies that no dump should be performed. The user option here is very important and careful attention should be given to this option. It specifies that a file system is user mountable. This privilege is useful for devices such as removable media devices, allowing users to mount and unmount devices so that the media can be changed. Because this privilege allows users to mount and unmount devices it should not be granted to key file systems. Checking mounted file systems with /etc/mtab The /etc/mtab file contains a listing of the file systems currently mounted by the system. Below is an example of the /etc/mtab file. As you can see the device name is listed along with the mount point. The fields in this file correspond with the fields used in the /etc/fstabfile. The file system type and access is also displayed here. /dev/hda8 / reiserfs rw 0 0 proc /proc proc rw 0 0 /dev/hda5 /boot ext2 rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/hdb1 /fun ext2 rw,noexec,nosuid,nodev 0 0 0 /mnt/cdrom2 /mnt/cdrom2 supermount fs=iso9660,dev=/dev/cdrom2 0 0 /mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0 /dev/hda1 /mnt/win_c vfat user,exec,umask=0 0 0 /dev/hda7 /mnt/win_d vfat user,exec,umask=0 0 0 none /proc proc defaults 0 0 /dev/hda9 swap_upgrade swap defaults 0 0
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Leave a Reply