Results 1 to 5 of 5

Thread: Can not erase Directory via terminal

  1. #1

    Thumbs down Can not erase Directory via terminal

    I have tried to erase a directory (as root) wit the command rm -r it says the directory ir read only
    When I try to change permissions with the command chmod -R 777 it says the directory can not be changed .Has anyone an idea what is going on?
    The directory to be erased is located in a portable Disk, NTSF formatted

    Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,580
    Blog Entries
    14

    Default Re: Can not erase Directory via terminal

    Quote Originally Posted by jcaser1948 View Post
    I have tried to erase a directory (as root) wit the command rm -r it says the directory ir read only
    When I try to change permissions with the command chmod -R 777 it says the directory can not be changed .Has anyone an idea what is going on?
    The directory to be erased is located in a portable Disk, NTSF formatted

    Thanks
    We always like to see real output, posted between CODE tags. Please show us the output of
    Code:
    mount
    ls -ld /media/*
    with the portable disk mounted.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: Can not erase Directory via terminal

    On 2013-03-07, jcaser1948 <jcaser1948@no-mx.forums.opensuse.org> wrote:
    >
    >I have tried to erase a directory (as root) wit the command rm -r

    > it says the directory ir read only
    > When I try to change permissions with the command chmod -R 777 it says
    > the directory can not be changed .Has anyone an idea what is going on?
    > The directory to be erased is located in a portable Disk, NTSF
    > formatted


    I assume you mean NTFS, and I assume you can delete the directory as root. Linux-style file/directory permissions for
    NTFS partitions do not work like they do on ext4 partitions and security for non-root access to NTFS partitions are
    specified in /etc/fstab, so without seeing the contents of you fstab, I cannot 100% sure that's the cause. If you're
    happy to enable read/write for all users, you can blank the optional fstab specifications for the relevant partition in
    /etc/fstab (i.e. uid=xxx, gid=xxx) - this can is most safely done within YaST's bootloader configuration dialog box if
    you're not familiar with editing /etc/fstab files.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Can not erase Directory via terminal

    On 2013-03-07 11:56, jcaser1948 wrote:
    >
    >> I have tried to erase a directory (as root) wit the command rm -r

    > it says the directory ir read only
    > When I try to change permissions with the command chmod -R 777 it says
    > the directory can not be changed .Has anyone an idea what is going on?
    > The directory to be erased is located in a portable Disk, NTSF
    > formatted


    Verify mount permissions.

    Verify that NTFS filesystem in Windows.

    chmod can not change most permissions of an VFAT or NTFS filesystem,
    unix and windows permissions are not the same. Instead fake permissions
    are assigned at mount time, for the entire filesystem (ie, al files get
    the same permissions).

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  5. #5

    Default Re: Can not erase Directory via terminal

    NTFS was not O.K
    Thaks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •