Ubuntu automatically hangs on NTFS to solve the problem that chmod fails to use NTFS.

Source: Internet
Author: User

Today I wrote a program in C language and found that I didn't have the execution permission when I was preparing to execute the E drive.

Then, the CHMOD 777 Hello command is used, and no command is successfully executed. Then, the permission to view with LS-L is not changed .. Very depressed ....

Through some searches. Think and organize .. Solve the problem ..

The solution is as follows:

1. view your own disk analysis information

UUID ugd GID Information

View the uuid as follows:

Ls-L/dev/Disk/by-uuidlrwxrwxrwx 1 Root 10 January 12 21:45 0001ac6d000973c1->.../sda5
Lrwxrwxrwx 1 Root 10 January 12 21:45 0003a300000d437f->.../sda6
Lrwxrwxrwx 1 Root 10 January 12 21:45 000aca5d000ce1c1->.../sda8
Lrwxrwxrwx 1 Root 10 January 12 21:45 000e08dd00019caa->.../sda7
Lrwxrwxrwx 1 Root 11 January 12 21:45 158c8fbb-a3d4-4cb9-a7a5-1ecf13586280->.../sda10
Lrwxrwxrwx 1 Root 10 January 12 21:45 18354ee2-3c44-405a-af87-7c2316c45983->.../sda1
Lrwxrwxrwx 1 Root 10 January 12 21:45 f233ebb4-8c6e-48ca-832c-08ceb567f928->.../sda9
Lrwxrwxrwx 1 Root 10 January 12 21:45 fe14e80014e7ba33->.../sda3
Lrwxrwxrwx 1 Root 10 January 12 21:45 fe3438fc3438ba0b->.../sda2

Check whether your disk is in SDA? You can use sudo fdisk-L to query. I recommend a graphical tool, gparted. You can see at a glance

2. Look at GID (group ID) and UID (User ID)

You can view this file

Vim/etc/passwd

2. Modify the/etc/fstab file to enable automatic mounting when the system starts)

Sudo gedit/etc/fstab

Umask is the blocking of permissions. 777-000 is your permission.

UID and Gia are the ID of the user ID group you queried above.

# windows ntfs  software DUUID=0001AC6D000973C1 /media/SoftWare          ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0# windows ntfs  student  EUUID=0003A300000D437F /media/Student           ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0# windows ntfs  Media  FUUID=000E08DD00019CAA /media/Medai             ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0# windows ntfs  Else   GUUID=000ACA5D000CE1C1 /media/Else             ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0

3. Save and restart.

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.