Automatically mount windows and Linux drive letters on Ubuntu

Source: Internet
Author: User
Tags manual writing
Ntfs-config is an easy-to-use graphical automatic Mount tool for installation: aot-getinstallntfs-config input in the terminal: ntfs-config the following error is reported: Traceback (mostrecentcalllast ): file "/usr/bin/ntfs-config", line102, in & lt; module & gt;

Ntfs-config is a good graphical automatic mounting tool.

Installation:

Aot-get install ntfs-config

Enter at the terminal:

Ntfs-config

The following error is reported:

Traceback (most recent call last ):

File "/usr/bin/ntfs-config", line 102, in

Main (args, opts)

File "/usr/bin/ntfs-config", line 75, in main

App = NtfsConfig ()

File "/usr/lib/pymodules/python2.6/NtfsConfig. py", line 56, in _ init __

OS. mkdir (HAL_CONFIG_DIR)

OSError: [Errno 2] does not have that file or directory: '/etc/hal/fdi/Policy'

Vim/usr/lib/pymodules/python2.6/NtfsConfig. py

Modify OS. mkdir (HAL_CONFIG_DIR) to OS. makedirs (HAL_CONFIG_DIR) in row 56th)

OS. makedirs ():

To generate a multi-layer recursive directory. For more information, see the Python OS module.

Enter ntfs-config on the terminal again.

Select automatic configuration. In this way, the mount parameters are automatically added to the system's/etc/fstab without manual writing to/etc/fstab.

Note:

Learn about the features of linux mounting before modification. Pay attention to the format in/etc/fstab. Otherwise, you will be at your own risk. Back up data before modification.

/Dev/sda12/media/LINUX ext4 defaults 0 1

In this case, the mounted icon will be displayed on the desktop and may not like it very much. Continue with the following operations:

Enter at the terminal:

Gconf-editor

Then, locate/apps/nautilus/desktop/volumes_visible to cancel the selection.

# Sudo cat/etc/fstab displays the Mount drive letter

#/Etc/fstab: static file system information.

#

#

Proc/proc nodev, noexec, nosuid 0 0

# Entry for/dev/sda10:

UUID = 4873f761-b06a-4cde-b1a3-fda-303021c/ext4 errors = remount-ro 0 1

# Entry for/dev/sda8:

UUID = f8a1edf3-034f-4192-82c0-127384b34a0c/boot ext4 defaults 0 2

# Entry for/dev/sda11:

UUID = 3767f0ba-e725-4be7-b09f-6c9ac8fff52a/home ext4 defaults 0 2

# Entry for/dev/sda7:

UUID = D258075958073C2B/media/DATA ntfs defaults, nls = utf8, umask = 0222 0 0

# Entry for/dev/sda12:

UUID = 27687de4-f4a3-4194-9fa6-55c5e748029c/media/LINUX ext4 defaults 0 1

# Entry for/dev/sda6:

UUID = 0005A155000E925B/media/Rua ntfs-3g defaults, nosuid, nodev, locale = zh_CN.UTF-8 0 0

# Entry for/dev/sda5:

UUID = 2AAC2311AC22D75B/media/SETUP ntfs-3g defaults, nosuid, nodev, locale = zh_CN.UTF-8 0 0

# Entry for/dev/sda1:

UUID = 5A1CDE761CDE4D1F/media/SYSTEM ntfs defaults, nls = utf8, umask = 0222 0 0

# Entry for/dev/sda9:

UUID = f0700647-d936-4442-8697-f5625e61ed47 none swap sw 0 0

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.