Automatically mount NTFS at startup of ubuntu-solve the problem that chmod fails to use NTFS. Today, I am writing a program in C and I find that I have no permission to execute it when I prepare to run 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 .... 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, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 # windows ntfs Else g uuid = 000ACA5D000CE1C1/media/Else ntfs ults, nls = utf8, umask = 000, uid = 1000, gid = 1000 0 0 3 save and restart