Главная » Linux » Best mount options for Windows/FAT32, NFS, CDROM, USB

Best mount options for Windows/FAT32, NFS, CDROM, USB

00:41

mount

This page REALLY is just for me to remember. When mounting a FAT32 partition, I prefer the options as in the following line found in /etc/fstab

/dev/hda1 /disks/C vfat rw,noatime,nosuid,nodev,noexec,nouser,async,iocharset=utf8,umask=0 0 0

This mounts the drive automatically at boot time and pretty much gives all users the ability to read/write to it. If I don't want the drive to be mounted at boot time but I want normal users to be able to mount it later, then I would add "noauto,user" instead of "auto,nouser" (auto is implicit in the above fstab entry). The "iocharset=utf8" option is important if you have filenames with international characters. This will make them show up appropriately (doesn't seem to be an issue with the reiserfs or ext3 as far as I have seen).

When mounting an NFS volume, I prefer

machine:directory localdirectory nfs noauto,noatime,user,rw,nosuid,hard,intr,sync 0 0

This DOESN'T automatically mount the volume a boot time, but it allows users to mount whenever they need to. The "hard,intr,sync" options are the important ones... I have had problems with "soft" and "async" while using NFS (the machine has locked up many times while using that).

For CDROMs, I like to have

/dev/cdrom /media/cdrom0 iso9660 ro,user,noauto 0 0

Floppies seem to work best using

/dev/fd0 /media/floppy0 auto rw,noatime,user,noauto 0 0

See this link for instructions on how to get your USB devices working in Linux

For a ReiserFS the following seems to work well

/dev/hdd1 /disks/hdd1 reiserfs rw,noatime 0 0

(c)