Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I just installed e2fsprogs-1.41.4 and want to know more about the e2undo feature.The manual states can be used to undo a failed operation by an e2fsprogs program via an "undo_log".
(eg.) e2undo undo_log device
Does any one know where & how this "undo_log" gets made? I came across two
interesting optional entries in the mke2fs.conf.5 manual that seem to related to e2undo & its required "undo_log".
(eg.) Default [stanza]
<option> <value>
force undo true (or) false
undo dir none (or) path to existing directory
If value=none, mke2fs will not create an undo file.
Unfortunately that is all I have found out about e2undo. I am thinking that the mke2fs "Undo_log" is made by default given that you can have a value=none for the "undo dir" option shown above. But, even if it is made by default, I will still need to know it's path name when running e2undo.
If anyone can explain exactly how to use e2undo I would appreciate the help. My end is to be able to recover from a failed fsck.ext4 operation. Thank You.
I don't think e2undel & e2undo are the same thing. I think e2undel is for file recovery & e2undo is used to recover from a failed EXT4 filesystem operation.
Let's say I do a fsck.ext4 -v -f -y /dev/sda1 & for some reason my system refuses to boot after this operation. I believe the utility e2undo
can restore the EXT4 filesystem to its former state.
Here is what the e2fsprogs-1.41.4 manual for e2undo states:
DESCRIPTION
e2undo will replay the undo log undo_log for an ext2/ext3/ext4 filesystem found on device. This can be used to undo a failed operation by an e2fsprogs program.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Hmm. That's new to me. Anyway, when you create a journal during operation of an ext2 (to create an ext3) the documentation states that the journal will be an invisible (.dot)(?) file until the next reboot and vanish after that.
So just maybe you could find a .undo_log file but more probably it is hidden in some inode. Possibly you could get information using dump2fs... (I have no ext4, so I can't try).
<edit> That implies that the undo_log is created by default and no naming necessary or even possible, so you can probably simply run e2undo since you didn't mention switching the logging off. Why don't you clone the partition ("dd") and give it a go... </edit>
Unfortunately, I haven't got the Ext4 filesystem up & running on my Linux
box yet. I am waiting for the "stable" Mandriva-2009.1 (Spring) distribution to be released & then I'll give EXT4 & KDE4 a test run. It
should be out in May 2009.
Right now, I'm just trying to find out as much as I can about EXT4 so I can avoid & fix future problems. So, if anyone has experience using EXT4
& the e2undo utility, your reply would be appreciated. Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.