A situation analysis process that cannot delete a file

Source: Internet
Author: User

A situation analysis process that cannot delete a file

I am root, there is a folder, a cannot delete

    1. RM-RF A
      Rm:cannot remove ' A ': Read-only file system

1 View the folder and internal file advanced properties to see if this file or the internal file for this folder has special properties set

    1. Find a-exec lsattr {} \;
    2. ---------------./a/a
    3. ---------------./a/b
    4. ---------------./a/c

The file is normal.
2 See if it is mounted as read-only.

    1. Mount
    2. /dev/mapper/a/A type ext3 (ro,relatime,errors=continue,barrier=1,data=journal)

Yes, I got it.

First Umount

    1. umount/a
    2. UMOUNT:A: Device is busy.
    3. (In some cases useful info about processes
    4. The device is found by lsof (8) or fuser (1))

Look who's using it.

    1. #fuser A
    2. #

No one's using it, Force point.

    1. Fusermount-u-z/a

OK, uninstall, of course, you want to delete the exact same does not exist

A situation analysis process that cannot delete a file

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.