Bug 6941 - Update candidate: extundelete, working ext4 file undelete utility
Summary: Update candidate: extundelete, working ext4 file undelete utility
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://extundelete.sourceforge.net/
Whiteboard: has_procedure mga2-64-ok mga2-32-ok
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-08-03 13:48 CEST by Morgan Leijström
Modified: 2013-05-25 21:32 CEST (History)
3 users (show)

See Also:
Source RPM: extundelete-0.2.4-1.mga2.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2012-08-03 13:48:56 CEST
extundelete worked great for me.
Compiled with no problem.
See given URL
Comment 1 Manuel Hiebel 2012-08-07 17:05:14 CEST
(spec available at mdv or fc)

Summary: Working ext4 file undelete utility => extundelete, working ext4 file undelete utility
Source RPM: (none) => extundelete
Whiteboard: (none) => spec

Damien Lallement 2012-08-11 22:04:53 CEST

CC: (none) => mageia
Assignee: bugsquad => mageia

Comment 2 Damien Lallement 2012-09-09 23:50:48 CEST
extundelete-0.2.0-1.mga3 is now available in Cauldron.

Status: NEW => ASSIGNED

Comment 3 Damien Lallement 2012-09-09 23:51:10 CEST
I will do a update_testing soon as it was in Mandriva.
Comment 4 Morgan Leijström 2012-11-25 15:04:05 CET
Thank you Damien :)
Will it become available in mga2?
Comment 5 Morgan Leijström 2012-11-29 13:55:08 CET
New version 0.2.1 fixes segmentation faults and recovers more files.
Comment 6 Damien Lallement 2013-05-07 12:07:42 CEST
Please test extundelete-0.2.4-1.mga2 for "core/updates_testing".
Comment 7 Morgan Leijström 2013-05-13 01:44:20 CEST
Thank you Damien
Simple test full OK on current mga2 x86_64.

I copied a folder tree, then deleted it, unmounted that partition.
(and for unknown reason i had to reboot to free it completely)
then ran this extundelete and it found the whole tree, (and failed some remnants of eariler deleted files)

Please make for mga3 too :)
Comment 8 Damien Lallement 2013-05-13 11:12:50 CEST
Don't worry, it's already in Mageia 3. ;-)
Thanks for the test.
Let me write an update request for this package in 2.
Comment 9 Damien Lallement 2013-05-13 17:18:14 CEST
Advisory:
This update adds extundelete package which was present in Mandriva 2010.2 but
missing in Mageia 2.

SRPM package:
- extundelete-0.2.4-1.mga2.src.rpm

How to test:
- Install Mageia 2
- Install extundelete from "core/updates_testing"
- Copy a folder tree on a ext* partition you can unmount
- Delete it (the folder tree)
- Unmount the partition where was the folder tree
- Use extundelete to recover the files

Assignee: mageia => qa-bugs
Summary: extundelete, working ext4 file undelete utility => Update candidate: extundelete, working ext4 file undelete utility
Source RPM: extundelete => extundelete-0.2.4-1.mga2.src.rpm
Whiteboard: spec => (none)

Comment 10 claire robinson 2013-05-23 13:01:19 CEST
Thankyou Morgan. Adding mga2 64 ok from your test.

Whiteboard: (none) => mga2-64-ok

Comment 11 claire robinson 2013-05-23 18:36:31 CEST
Testing mga2 32 with an ext4 partition

# mkdir /mnt/test
# mount /dev/sdb1 /mnt/test
# cp -r /usr/share/doc/zip /mnt/test

# ls /mnt/test
lost+found/  zip/

# rm -rf /mnt/test/zip
# ls /mnt/test
lost+found/

# umount /mnt/test
# extundelete --restore-directory 'zip' /dev/sdb1
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 16 groups loaded.
Loading journal descriptors ... 23 descriptors loaded.
Searching for recoverable inodes in directory zip ...
1 recoverable inodes found.
Looking through the directory structure for deleted files ...
1 recoverable inodes still lost.
No files were undeleted.

# ls
drakx/  RECOVERED_FILES/  tmp/

# ls RECOVERED_FILES/

# rm -rf RECOVERED_FILES/
# extundelete --restore-all /dev/sdb1
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 16 groups loaded.
Loading journal descriptors ... 23 descriptors loaded.
Searching for recoverable inodes in directory / ...
1 recoverable inodes found.
Looking through the directory structure for deleted files ...
0 recoverable inodes still lost.

# ls RECOVERED_FILES/

Seems nothing is being recovered. Am I doing something wrong?
claire robinson 2013-05-23 18:37:35 CEST

Whiteboard: mga2-64-ok => has_procedure feedback

claire robinson 2013-05-23 18:40:09 CEST

Whiteboard: has_procedure feedback => has_procedure mga2-64-ok feedback

Comment 12 Morgan Leijström 2013-05-24 09:31:42 CEST
Hi Claire
You should try path /test/zip instead;
the full path to directory to undelete, excluding its mount point

Now on mga3-64, test pass:
Using my my /boot as it is a separate /ext4 partition i can unmount:

# mkdir /boot/test
# cp -r /usr/share/doc/zip /boot/test  
# rm -rf /boot/test/zip
# umount /boot
# extundelete --restore-directory /test/zip/ /dev/sda1
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 18 groups loaded.
Loading journal descriptors ... 138 descriptors loaded.
Searching for recoverable inodes in directory /test/zip/ ... 
9 recoverable inodes found.
Looking through the directory structure for deleted files ... 
1 recoverable inodes still lost.
# ls RECOVERED_FILES/
test/
# ls RECOVERED_FILES/test/
zip/
# ls RECOVERED_FILES/test/zip
BUGS  CHANGES  INSTALL  LICENSE  README  TODO  WHATSNEW  WHERE
Comment 13 claire robinson 2013-05-24 11:35:42 CEST
Thanks Morgan

Testing complete mga2 32

Validating

Advisory & SRPM in comment 9

Could sysadmin please push from 2 core/updates_testing to core/Updates

Thanks!

Keywords: (none) => validated_update
Whiteboard: has_procedure mga2-64-ok feedback => has_procedure mga2-64-ok mga2-32-ok
CC: (none) => sysadmin-bugs

Comment 14 Thomas Backlund 2013-05-25 21:32:49 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2013-0023

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.