Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Recovering lost data

  • 04-08-2006 11:19pm
    #1
    Closed Accounts Posts: 437 ✭✭


    Is there any way of recovering files with Linux. I'm running Debian Sarge 3.1 with 2.6 kernel. The data is on an ext3 file system.

    It is just a case of rm * in a directory, any ideas?

    Thanks all!


Comments

  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    Unless some magic way of doing it easily has been found it's pretty much impossible on ext3. Unlike ext2, during an unlink on ext3 the block pointers in the inodes are zeroed. This is so an unlink can be safely completed based on the journal after a filesystem crash.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Yeah, unfortunately you're screwed. I did this myself a while back and checked around on the interweb. Damn the power of the rm command!


  • Closed Accounts Posts: 158 ✭✭The Shol'va


    Khannie wrote:
    Yeah, unfortunately you're screwed. I did this myself a while back and checked around on the interweb. Damn the power of the rm command!
    That was my data. If you'll now excuse me I'm off to shoot the bastard who thought it would be funny to type rm *


  • Registered Users, Registered Users 2 Posts: 1,421 ✭✭✭Steveire


    Holy crap.

    You'd expect some kind of confirmation for a simple destructive command like that.


  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    Probably why many people and distro's alias rm to rm -i


    nice read : http://linux.sys-con.com/read/117909.htm
    If you do intend on getting the data back: I hope you stopped using the HDD... TBH, I wouldn't bother unless the data is very important.


  • Advertisement
  • Closed Accounts Posts: 437 ✭✭Yook


    I used grep to regain as much of the files as possible. Now to look through the 528meg text file :p
    That was my data. If you'll now excuse me I'm off to shoot the bastard who thought it would be funny to type rm *

    He's actually not referring to me, i'm just the admin of the server. One of his dickhead friends decided to rm * a directory full of important data to be funny!


  • Registered Users, Registered Users 2 Posts: 4,864 ✭✭✭MunsterCycling


    I'll load the shotgun... Round up the posse.


  • Registered Users, Registered Users 2 Posts: 304 ✭✭PhantomBeaker


    Steveire wrote:
    Holy crap.

    You'd expect some kind of confirmation for a simple destructive command like that.

    Ah... well, this is where Unix-heads get ultra macho and say "Well, the rm command was written so that it avoids nasty questions like asking 'Are you sure?' all the time." while thumping their chest.

    In other words they wrote those utilities not to be fool-proof, but quite the opposite. They see the fools and they don't want them in their god-like presence, so they punish them... they shun and punish them by not asking them if they really meant it when they said "rm -rf /" while they were root.

    But alas they forget that not any mortal can be forever godlike, and that even the most erudite of unixphile will slip up now and then, and delete precious data.

    If you ask why it's still the case, and that this is why it puts newbies off unix, they'll pound their unix chests again and say "Well, you're quite welcome to write your own version of rm if you want.". I'm not sure what comes after that. They say it's a mating ritual but I believe that to be a myth. :D I reckon they probably do something more hardcore, like hand-compile all the packages in Gentoo... with their feet.

    Aoife (who actually does love *nix type stuff - but I don't pound my chest, it hurts.)


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Have to agree with the sentiment in the above post. I've noticed the introduction of the "wastebasket" in gnome for the mere mortal now though. Mostly I just find it annoying (as it leads to inappropriately reported free space, etc...so it needs more integration), though I must admit that I found the ol' recycle bin useful a few times when I used to use windows.


  • Registered Users, Registered Users 2 Posts: 15,815 ✭✭✭✭po0k


    Ah... well, this is where Unix-heads get ultra macho and say "Well, the rm command was written so that it avoids nasty questions like asking 'Are you sure?' all the time." while thumping their chest.

    In other words they wrote those utilities not to be fool-proof, but quite the opposite. They see the fools and they don't want them in their god-like presence, so they punish them... they shun and punish them by not asking them if they really meant it when they said "rm -rf /" while they were root.

    But alas they forget that not any mortal can be forever godlike, and that even the most erudite of unixphile will slip up now and then, and delete precious data.

    If you ask why it's still the case, and that this is why it puts newbies off unix, they'll pound their unix chests again and say "Well, you're quite welcome to write your own version of rm if you want.". I'm not sure what comes after that. They say it's a mating ritual but I believe that to be a myth. :D I reckon they probably do something more hardcore, like hand-compile all the packages in Gentoo... with their feet.

    Aoife (who actually does love *nix type stuff - but I don't pound my chest, it hurts.)
    Quoted for truth.

    It promotes a clear mind, focused on the tasks at hand. If you don't want to delete something, don't tell the machine to do so.

    Contrary to the old myth, computing is not for everyone. However, every jackass can be taught to click a mouse over the blinking banner ad. And then said jackass can be replaced with a script.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 990 ✭✭✭galactus


    Ah... well, this is where Unix-heads get ultra macho and say "Well, the rm command was written so that it avoids nasty questions like asking 'Are you sure?' all the time." while thumping their chest.

    In other words they wrote those utilities not to be fool-proof, but quite the opposite. They see the fools and they don't want them in their god-like presence, so they punish them... they shun and punish them by not asking them if they really meant it when they said "rm -rf /" while they were root.

    But alas they forget that not any mortal can be forever godlike, and that even the most erudite of unixphile will slip up now and then, and delete precious data.

    If you ask why it's still the case, and that this is why it puts newbies off unix, they'll pound their unix chests again and say "Well, you're quite welcome to write your own version of rm if you want.". I'm not sure what comes after that. They say it's a mating ritual but I believe that to be a myth. :D I reckon they probably do something more hardcore, like hand-compile all the packages in Gentoo... with their feet.

    Aoife (who actually does love *nix type stuff - but I don't pound my chest, it hurts.)

    A great post with a lot of truth. At least the sterotypes on User Friendly are funny.


  • Registered Users, Registered Users 2 Posts: 354 ✭✭AndrewMc


    But alas they forget that not any mortal can be forever godlike, and that even the most erudite of unixphile will slip up now and then, and delete precious data.

    Whereupon the unixphile will quietly, saying nothing and hoping nobody notices, restore from backup as fast as they can and hope nothing important happened since then :D


  • Registered Users, Registered Users 2 Posts: 1,865 ✭✭✭Syth


    AndrewMc wrote:
    Whereupon the unixphile will quietly, saying nothing and hoping nobody notices, restore from backup as fast as they can and hope nothing important happened since then :D

    Because the unixphile is probably using a versioned filesystem that they wrote themselves.


Advertisement