Automatically mount NTFS at startup of ubuntu-solve the problem that chmod fails to use NTFS

Source: Internet
Author: User
Automatically mount NTFS at startup of ubuntu-solve the problem that chmod fails to use NTFS. today, I am writing a program in C language. I found that I have no permission to execute the program when I prepare to run the e-disk. Then run chmod777hello without the command to execute... information & nbsp automatically mount NTFS when ubuntu is started-solve the problem that chmod fails to use NTFS. today, I am writing a program in C. I found that the program was not executed when I was preparing to run the Drive E. permission. 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 .... Www.2cto.com. Think and organize .. Solve the problem .. The solution is as follows: 1. view your own disk analysis information uuid ugd gid information. for example, check the UUID below ls-l/dev/disk/by-uidlrwxrwxrwx 1 root 10 January 12 21:45 0001AC6D000973C1-> .. /.. /sda5lrwxrwxrwx 1 root 10 January 12 21:45 0003A300000D437F-> .. /.. /sda6lrwxrwxrwx 1 root 10 January 12 21:45 000ACA5D000CE1C1-> .. /.. /sda8lrwxrwxrwx 1 root 10 January 12 21:45 000E08DD00019CAA-> .. /.. /sda7lrwxrwxrwx 1 root 11 January 12 21:45 158c8fbb-a3d4-4cb 9-a7a5-1ecf13586280-> .. /.. /sda10lrwxrwxrwx 1 root 10 January 12 21:45 18354ee2-3c44-405a-af87-7c2316c45983-> .. /.. /sda1lrwxrwxrwx 1 root 10 January 12 21:45 f233ebb4-8c6e-48ca-832c-08ceb567f928-> .. /.. /sda9lrwxrwxrwx 1 root 10 January 12 21:45 FE14E80014E7BA33-> .. /.. /sda3lrwxrwxrwx 1 root 10 January 12 21:45 FE3438FC3438BA0B-> .. /.. /sda2 www.2cto.com check if 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. check GID (group ID) and UID (user ID). you can view the vim/etc/passwd file in this file. 2. modify the/etc/fstab File (enable automatic mounting when the system starts) sudo gedit/etc/fstab where umask is the permission blocking. 777-000 is your permission. uid and gia are the user ID group ID you queried above [html] # windows ntfs software d uuid = 0001AC6D000973C1/media/SoftWare ntfs defaults, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 # windows ntfs student e uuid = 0003A300000D437F/media/Student ntfs defaults, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 # windows ntfs Media f uuid = 000E08DD00019CAA/media/Medai ntfs ULTS ults, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 # windows ntfs Else g uuid = 000ACA5D000CE1C1/media/Else ntfs ULTS ults, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 3 save and restart
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.