Ubuntu system mounts Windows partitions manually

Source: Internet
Author: User
Keywords Ubuntu windows Partition manual mount
Tags aliyun content copy exit file html http nano

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.