A situation analysis process that cannot delete a file
I am root, there is a folder, a cannot delete
- 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
- Find a-exec lsattr {} \;
- ---------------./a/a
- ---------------./a/b
- ---------------./a/c
The file is normal.
2 See if it is mounted as read-only.
- Mount
- /dev/mapper/a/A type ext3 (ro,relatime,errors=continue,barrier=1,data=journal)
Yes, I got it.
First Umount
- umount/a
- UMOUNT:A: Device is busy.
- (In some cases useful info about processes
- The device is found by lsof (8) or fuser (1))
Look who's using it.
- #fuser A
- #
No one's using it, Force point.
- 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