The Ubuntu system mounts Windows partitions automatically

Source: Internet
Author: User
Keywords Ubuntu windows partition
Tags aliyun content copy etc exit file http save

Automatically mount Windows partitions

Mount the Windows partition automatically executes the following commands, editing the Mount script Autowinfs.

sudo gedit/usr/sbin/autowinfs

Copy and paste the following referenced content, save the file, and exit.

Mkdir-p/windows/rmdir/windows/* 1>/dev/http://www.aliyun.com/zixun/aggregation/19527.html ">nullgrep-v"/ windows/' fstab >/etc/fstab.swpfdisk-l/dev/[hs]d[a-z | grep ' NTFS ' | Cut-d ' Responsefilename | cut-d/-F3 | While read wdisksdo echo "/dev/$WDISKS/windows/$WDISKS NTFS auto,user,nls=utf8,umask=0,exec 0 0" >>/etc/ Fstab.swpmkdir "/windows/$WDISKS" Donefdisk-l/dev/[hs]d[a-z] | grep ' FAT ' | Cut-d ' Responsefilename | cut-d/-F3 | While read wdisksdo echo "/dev/$WDISKS/windows/$WDISKS vfat auto,user,utf8,umask=0,exec 0 0" >>/etc/ Fstab.swpmkdir "/windows/$WDISKS" Donemv/etc/fstab.swp/etc/fstabmount-aexit 0

To run the command again:

sudo chmod +x/usr/sbin/autowinfssudo/usr/sbin/autowinfs

On it, Windows partitions will be mounted under/windows/

Ubuntu version 9.10 Windows partition automatically hangs in (NTFS format)

Edit the Fstab file $sudo gedit/etc/fstab pop-up geidt text edit box, add the following at the end of the file:

1. Use the FDISK command to view the disk's Uuid$sudo FDISK-L/DEV/SDA1 * 1 851 6835626-linux/dev/sda2 852 4039 25607610 F W95 Ext ' d (LBA)/dev/sda5 945 2135 9566676 7 hpfs/ntfs/dev/sda6 2136 4039 15293848+ 7 hpfs/ntfs2. The NTFS partition adds the following and restarts to automatically mount the NTFS partition. /dev/sda6/media/my ntfs-3g DEFAULTS,LOCALE=ZH_CN. UTF-8 0 0/dev/sda5/media/tools ntfs-3g defaults,locale=zh_cn. UTF-8 0 03. Software can also be implemented, that is, simple and quick: $sudo apt install ntfs-config after installation is completed, enter $sudo Ntfs-config

Then pops up a dialog box, select the partition you want to mount, click Apply, and then select "Enable internal device write support" to get it done. Try it again.

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.