in /etc/fstab
file, add the following line to mount the usb disk automatically when you insert your USB disk:
/dev/sda1 /mnt/flash auto iocharset=gb2312,noauto,user 0 0
from the left to right, they respectively mean device mounted(sda1
means the first device of your serial disk), mount point, filesystem type [auto/ext3/ext2/vfat], Option (charset type[iocharset=], auto mount or not[noauto / auto], user mount or not[user], and you may add other options like "rw"), dump options (0), filesystem check options(0). When iocharset=gb2312
, Linux can display Chinese filename in the USB device or other devices if you change the first unit device mounted (e.g.: /dev/hda1).
If it does not work, please use the command with mount
plus the code line.
Non-specific Dope Here this offshoot