You are not logged in.

#1 2009-03-26 10:36:23

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

ext4 undelete

Hi,

I acceidently delete an important file on my ext4 file system roll
Can I do something about it?

Thanks!
Nathan

Offline

#2 2009-03-26 10:55:25

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

Re: ext4 undelete

Well what important file was it? Do u happen to know? It would be very helpful if u did know as we could trace / solve the problem fast

Edit: Does the system boot? From the way ur message is written i suppose it doesn't tongue
If that's the case then the best solution probably would be to mount the partition with a Live CD and do a base installation
pacman -Sy base

Last edited by jedimastermaniac (2009-03-26 11:08:08)

Offline

#3 2009-03-26 11:48:54

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: ext4 undelete

Hi,

Sorry, I was very unclear in my post.
I did not delete a system file but a private file.
The filesystem is mounted to /home.
I am looking for something like a file recovery tool for ext4!

Thanks!
nathan

Offline

#4 2009-03-26 11:56:20

jedimastermaniac
Member
Registered: 2008-05-23
Posts: 14

Re: ext4 undelete

no idea for this one then tongue
Did u also empty the trash can? yikes or deleted it with rm ?
No knowledge on file recovery tbh tongue

Offline

#5 2009-03-26 12:27:30

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: ext4 undelete

Unmount the filesystem, or remount it ro. The more writes you make, the worse it will be..
Maybe try aur/ext3undel, but I don't know if it works for ext4. They're similar, so worth a shot.

Offline

#6 2009-03-26 12:28:39

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: ext4 undelete

Well now - unix is kinda unforgiving this way:

windoze:
are you sure you want to delete this file (y/n)? Y
really? let me phrase this another way. If you delete it it's gone.
are you really, really sure you want to delete it (y/n)? Y
OK, but if you still want it, it can be found in your trashcan for ever and ever and ever ...

unix/linux:
you asked for it - you've got it!

Offline

#7 2009-03-26 12:46:44

japetto
Member
From: Chicago, IL US
Registered: 2006-07-02
Posts: 183

Re: ext4 undelete

You can try Daenyth's suggestion, but you might want to check out this entry in the Ext4 FAQ:

http://ext4.wiki.kernel.org/index.php/F … in_Ext4.3F

Offline

#8 2009-03-26 13:52:20

Spy
Member
Registered: 2009-02-26
Posts: 78

Re: ext4 undelete

install test-disk from repos  and try it or photorec (the same package, diffrent tool)

Offline

#9 2009-03-26 14:02:35

bwalk
Member
Registered: 2007-03-21
Posts: 177

Re: ext4 undelete

Of course you have a backup. Just use this...

Offline

#10 2009-03-26 14:14:21

abesto
Member
From: Hungary
Registered: 2009-03-05
Posts: 49
Website

Re: ext4 undelete

This is of course no help or consolation in the current case, but you might want to set up libtrash for future accidents. It's basically a trashcan for rm.


Linux user #476135 || Dotfiles hosted by GitHub

Offline

Board footer

Powered by FluxBB