To mount a Windows partition manually
Edit the Mount script Autowinfs by executing the following command.
sudo http://www.aliyun.com/zixun/aggregation/19512.html ">nano/usr/sbin/autowinfs
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
Run the command again
sudo chmod +x/usr/sbin/autowinfssudo/usr/sbin/autowinfs
, Windows partitions will be mounted under/windows/.
If you need to mount the partition after restarting, use
Sudo/usr/sbin/autowinfs
Command mount.