Copy and paste the following referenced content, Enter CTRL + O and return, save the file, Ctrl + X exit.
#!/bin/sh# #autowinfs Auto Mount Windows disks## Copyright (c) Jiahua Huang <jhuangjiahua@gmail.com># License: gplv2##/usr/bin/sutowinfs# used to automatically mount Windows partitions on the machine # 64 months 01:21:23 CST 2005mkdir-p/windows/rmdir/windows/* 1>/dev/ null# can save script content as/etc/rcs.d/s60autowinfs# plus executable permissions # so that you can mount the Windows partition automatically at boot time # for users who need to add or subtract hard disks, or hard disk partitions # This script is used for UTF-8 Locale # The individual fdisk-l cannot list the partitions very rarely, so take/dev/[hs]d[a-z] to find the NTFS partition, the new kernel's auto seems to have some problems, so now the NTFS and VFST separate to fdisk-l/dev/[hs]d[a-z] | grep ' NTFS ' | Cut-d ' Responsefilename | cut-d/-F3 | While read Wdisksdomkdir "/windows/$WDISKS" #mount/dev/$WDISKS/windows/$WDISKS-t NTFS user,nls=utf8,umask=0# <sup >^</sup> executing the above statement on Ubuntu 5.10 will make an error, with less "-O" mount/dev/$WDISKS/windows/$WDISKS-T Ntfs-o user,nls=utf8,umask= 0donefdisk-l/dev/[hs]d[a-z] | grep ' FAT ' | Cut-d ' Responsefilename | cut-d/-F3 | While read Wdisksdomkdir "/windows/$WDISKS" #mount/dev/$WDISKS/windows/$WDISKS-t vfat user,utf8,umask=0# <sup>^ </sup> executing the above statement on Ubuntu 5.10 will make an error, with less "-O" mount/dev/$WDISKS/windows/$WDISKS-T Vfat-o user,utf8,umask=0done
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.