LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-29-2009, 10:20 PM   #1
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
EXT4 e2undo & mke2fs.conf


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.
 
Old 04-02-2009, 03:16 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
You know this and the links shown there...?

http://e2undel.sourceforge.net/

If that doesn't help come back for links concerning data-recovery tools. Umm, no, please come back anyway and report results in any case .
 
Old 04-06-2009, 07:20 AM   #3
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
e2fsprogs-1.41.4 & e2undo

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.

SYNOPSIS
e2undo [ -f ] undo_log device
 
Old 04-06-2009, 07:51 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
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>

Last edited by JZL240I-U; 04-07-2009 at 02:54 AM.
 
Old 04-07-2009, 10:05 AM   #5
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Original Poster
Rep: Reputation: 16
Ext4 & e2undo

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE copy&paste your /etc/X11/xorg.conf file IF you use Intel 965GM &. Balarabay1 Linux - Software 3 10-06-2008 05:33 PM
need examples of squid.conf & dansguardian.conf jocast Linux - Software 1 05-11-2006 04:47 PM
Gentoo make & make.conf & emerge Trouble geagon Linux - Newbie 5 10-28-2005 06:33 PM
xorg.conf - video && touchpad problem * (Dell C640) Pear-i Linux - Laptop and Netbook 2 07-27-2005 08:12 AM
httpd.conf & ssl.conf kevinm2 Linux - Security 12 08-31-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration