Automatic mount and uninstalling of various partitions under Linux.

xiaoxiao2021-03-06  111

There are two ways to implement partition automatic mount / unloading (I know), one is supermount, one is automount, supermount to recompile the kernel, and unstable, here is not introduced. I introduced Automount. How to use: First confirm that your Linux has installed this package. If you don't want to start the AutoFs service every time you turn it on, run Setup, select Autofs in System Services. Edit /etc/auto.master, 把 # / Misc /etc/auto.misc - Timeout = 60 This line ## is removed. Edit /etc/auto.misc photo below Add to the partition you want to automatically mount. (Don't just with me, I just give a Example) Name Partition Type Equipment Name CDROM -FSTYPE = Auto: / Dev / CDROM FLOPPY -FSTYPE = Auto: / dev / fd0 c -fstype = auto, IoCharset = cp936: / dev / hda1 d -fstype = auto, iocharset = cp936 : / dev / hda5 hda7 -fstype = auto: / dev / hda7... Iocharset = CP936 is for Windows partitions, Linux partitions do not add this modification, restart AutoFS service, method /etc/init.d/ Autofs Restart now you can easily access any partition, including the optical drive, floppy drive. For example, enter CD / Misc / C in the terminal, then the system will automatically put the / dev / hda1 partition mount to / Misc / c directory On .CD / Misc / CDROM can access the optical drive. If you have no access to the partition on the automatic mount, the system will automatically drop it. / Misc directory CDROM, Floppy, C .... The directory is the system automatic. These directory will be automatically deleted after umount. Do not manually build any directory or files in the / Misc directory. To avoid the automatic Mount partition conflict in the fstab, put / etc / fstab / dev / CDROM / MNT / CDROM ISO9660 NOAUTO, OWNER, KUDZU, RO 0 0 / DEV / FD0 / MNT / FLOPPY Auto Noauto, Owner, Kudzu 0 0 This two lines are removed. Now you can build some shortcuts on the desktop. Key, let it link to / Misc / xxx, you can easily access each partition.

转载请注明原文地址:https://www.9cbs.com/read-98415.html

New Post(0)