Can't change the owner of a folder

15,771

Solution 1

As commented by user7547272 and oldfred, I disabled Fast Startup and hibernation on Windows 10, ran chown and chmod. Then I followed what was written in this post and my problem was solved.

Solution 2

It sounds as though the directory is mounted as Read Only, instead of Read Write. Unmount the directory, remount it as R/W Review the man pages on mount for further details.

Share:
15,771

Related videos on Youtube

Apoorv Potnis
Author by

Apoorv Potnis

Second-year BS-MS student at IISER Bhopal.

Updated on September 18, 2022

Comments

  • Apoorv Potnis
    Apoorv Potnis over 1 year

    I want to change the owner of a folder. The path to to that folder is /mnt/8A30AA8B30AA7DB7/Books. I want to take the ownership of that folder to change the permissions. The folder currently belongs to root. I tried the following connamds but none seem to work.

    1. chown apoorv_potnis -R Books
    2. sudo chown apoorv_potnis:apoorv_potnis -R Books
    3. sudo chown apoorv_potnis:apoorv_potnis -R /mnt/8A30AA8B30AA7DB7/Books
    4. sudo chown -R apoorv_potnis: /mnt/8A30AA8B30AA7DB7/Books

    The terminal displays chown: changing ownership of '/mnt/8A30AA8B30AA7DB7/Books': Read-only file system and other files in the folder but does not actually change the ownership. Whenever I check the properties of that folder or the sub-folders, the owner is shown to be root and I cannot change the permissions or delete any file of that folder. How can I take the ownership of the folder? I'm using Ubuntu 18.04 with dual boot Windows 10.

    • damadam
      damadam about 6 years
    • Apoorv Potnis
      Apoorv Potnis about 6 years
      @damadam When I typed sudo fsck -Af -M in my terminal, it displayed fsck from util-linux 2.31.1. I don't know what that means as I'm new to Ubuntu.
    • damadam
      damadam about 6 years
    • insaneinvader
      insaneinvader about 6 years
      I've encountered similar problem on auto-mounted partition. The answer of Greg Kramida helped me a lot, you can find it here askubuntu.com/a/958491/830248
    • Soren A
      Soren A about 6 years
      Clue: Read-only file system .. you can not update or delete from a Read-only file system.
    • oldfred
      oldfred about 6 years
      Is this NTFS, not a Linux format. You can only use chown on Linux formats. Windows formats get default permissions only from mount. And if NTFS and read only probably Windows fast start or hibernation. See: askubuntu.com/questions/843153/… & askubuntu.com/questions/145902/…