Linux is automatically mounting the partition author under Windows. The first hard disk is loaded with Windowsme. The second quickly installed WIN2000 and Fedora 1. In the Windows environment, the author divided four partitions, each time in Linux If you want to see the content of these four districts, you have to enter a lot of commands. It is very troublesome. Recently I learned shell programming and thought of a solution. I wrote it out to share with you. First, under / mnt, you There must be several directories for WinME Temp Win2000 Share. Then enter the virtual terminal, enter vi mymount, then press the INSERT button, enter the following code: #! / Bash case $ 1 in m) mount -t vfat -o iocharset = UTF8, umask = 000 / dev / hdc1 / mnt / Win2000 Mount -t vfat -o iocharset = utf8, umask = 000 / dev / hdc2 / mnt / share mount -t vfat -o iocharset = utf8, umask = 000 / dev / hda5 / mnt / winme mount -t vfat -o iocharset = UTF8, umask = 000 / dev / hda6 / mnt / temp ;; u) umount -t vfat / dev / hda5 / mnt / winme umount -t vfat / dev / hda6 / mnt / temp umount -t vfat / dev / hdc1 / MNT / Win2000 Umount -t vfat / dev / hdc2 / mnt / share ;; ESAC Press ESC input: WQ Enter is possible. Let me explain these code. The first line #! / bin / bash specified with Bash SHELL performs this file. Case $ 1 in is the command line parameter taken. If M is mounted, if you uninstall it, if the UMASET = UTF8, umask = 000 can display the Chinese name.-t vfat is the specified file The system type is the FAT file system under Windows .WINME TEMP WIN2000 and Share are subdirectory under the directory / MNT. Ok, the program has been written. But it has not yet implemented rights. We can enter the following command. CHMOD u x mymount huh, you can use it when you enter ./mymountm, you can mount. However, the author is too lazy, I think this is more troublesome. So I will ask some masters, I finally solved this problem. Oh. Enter sh ./root/mymount m in the /etc/rc.d/rc.local file. Restart your computer, enter Linux to see if it is automatically mounted. Hehe. Pen It's very easy, you don't need to enter so many commands. Cool.
============================================================================================================================================================================================================= ==========
You can also mount the partition under Windows by modifying FSTAB. But here is not described in detail.