Ubuntu10.10 automatically mounts NTFS partitions

Source: Internet
Author: User
Remember Linux has long supported NTFS partition, so when installing Ubuntu10.10, just the system partition format Ext-4 format, did not format the D disk, but after installing Ubuntu10.10 found, double-click the NTFS drive letter to manually mount the NTFS partition and install NTFS-Config. During the operation, a window exists. Then, enter sudontfs-config under Terminal to find the following alarms: traceback (mostr

Remember Linux has long supported NTFS partition, so when installing Ubuntu 10.10, just the system partition format Ext-4 format, did not format the D disk, but after installing Ubuntu 10.10 found that, double-click the NTFS drive letter to manually mount the NTFS partition and install NTFS-Config. During the operation, a window is flashing, and then enter

Sudo ntfs-config

The following alarms are detected:

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] No such file or directory: '/etc/hal/fdi/Policy'
After searching on the Internet, this may be a system Bug, and there is a temporary solution: '/etc/hal/fdi/policy' folder, I use

Sudo mkdir/etc/hal/fdi/policy error:

Mkdir: cannot create directory '/etc/hal/fdi/Policy': No such file or directory

Therefore, manually create the following:

Sudo mkdir/etc/hal

Sudo mkdir/etc/hal/fdi

Sudo mkdir/etc/hal/fdi/policy

Then execute sudo ntfs-config and configure it.

Sudo nano/etc/fstab view the modified content: proc/proc nodev, noexec, nosuid 0 0
/Dev/sda1/ext4 errors = remount-ro 0 1
/Dev/sda5/media/D ntfs-3g defaults, locale = en_US.UTF-8 0 $
/Dev/sda6 none swap sw 0 0
(NTFS is an extended partition)

For more information, see:

"Modify/usr/lib/pymodules/python2.6/NtfsConfig. py file, modify 56 lines, that is, "OS. change mkdir (HAL_CONFIG_DIR) to "OS. makedirs (HAL_CONFIG_DIR )". Run ntfs-config with Root User Permissions

Some people mentioned that hal should be installed, but I didn't install hal, But I just created a folder.

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.