Warning while trying to recover a deleted directory with extundelete
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Warning while trying to recover a deleted directory with extundelete
hi,
I am using Fedora 28. My Desktop environment is LDXE. I accidentally deleted a directory with subdirectories and about 7gb data files. I am trying to recover them with extundelete utility but getting warning. I unmounted the filesystem, where the directory was, right away with
Code:
sudo umount /dev/mapper/fedora-home
when I try the command:
Code:
/ sudo extundelete --restore-directory /home/milhan/Desktop/path/directory /dev/mapper/fedora-home
NOTICE: Extended attributes are not restored.
WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set.
The partition should be unmounted to undelete any files without further data loss.
If the partition is not currently mounted, this message indicates
it was improperly unmounted, and you should run fsck before continuing.
If you decide to continue, extundelete may overwrite some of the deleted
files and make recovering those files impossible. You should unmount the
file system and check it with fsck before using extundelete.
Would you like to continue? (y/n)
n
/ sudo fsck /home
fsck from util-linux 2.32.1
e2fsck 1.44.2 (14-May-2018)
/dev/mapper/fedora-home is in use.
e2fsck: Cannot continue, aborting.
Run "df -hP /home" when you think it is unmounted. If it still shows the filesystem as /home instead of just / then it isn't unmounted.
The umount told you it was busy. You can see what is busying out a filesystem by running lsof on it e.g:
lsof /home
Since it is /home and you logged in as yourself it may be your own login that is busying out /home because you're in your home directory. You'd need to at least cd out of /home (e.g. cd /tmp) so you're not sitting in it.
"umount -l" is lazy unmount. It really should only be used for unmounting shared filesystem (e.g. NFS mounts) from other server to this one. Even then it should only be done if the mount has gone stale such as when the server that exported the share got shutdown or lost networking for some reason.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.