View previous topic :: View next topic |
Author |
Message |
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Mon Aug 19, 2002 2:53 pm Post subject: emergency: human factor deleted everything... |
|
|
Hi,
while trying to use rsync locally to make a backup of important data to another harddisk (exchangeble) I deleted my whole system.
This is really shocking, friends.
Simple question: Is there a way to recover data which was deleted with rm?
Here is in detail what I have done:
- inserted my second hard disk (exchangable)
- started computer and gentoo
- mounted the second harddisk to /mnt/backup/
- did rsync -[some options] /home/myself/* /mnt/backup/home-myself/
- then saw that the data in /mnt/backup/home-myself/ did not arive proproperly due to wrong options
- cd /mnt/backup/home-myself/
- wanted to delete the stuff again: rm -r ./*
- this somehow started to delete files not only on the backup-harddisk but on the main harddisk, too! WHY?
- the system can't be started again
- I started with my gentoo installation CD
- mounted the drives
- saw that /mnt/backup/home-myself/ is deleted but also /etc, and /usr, and /home ...
Setting up again the system is not the problem, but:
Please, if you have any idea to get my /home/myself/ back...
'bye
Felix |
|
Back to top |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Mon Aug 19, 2002 4:30 pm Post subject: |
|
|
Me again,
first, let me add that the fs was ext3.
I found out that grep works on whole drives. Of most importance is a single text file openoffice (my thesis!) I lost.
When I boot with the gentoo installation CD Code: | grep -b 'McKeown' /dev/hda3 | really finds something and says 'binary file matching'.
I am not very used to the command 'grep'. Could you help me find the right options to extract some text starting with 'McKeown' to a file on a nother partition?
That would be great!
Felix |
|
Back to top |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Mon Aug 19, 2002 5:18 pm Post subject: |
|
|
.... and again:
I guess that what I wrote about grep is a bad idea since the files made by openoffice are compressed, right?
|
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Mon Aug 19, 2002 9:53 pm Post subject: |
|
|
there are undelete type programs out there for ext2, which should also work for ext3. |
|
Back to top |
|
|
xorbe n00b
Joined: 19 Jul 2002 Posts: 46 Location: near San Jose, CA
|
Posted: Tue Aug 20, 2002 5:43 am Post subject: Re: emergency: human factor deleted everything... |
|
|
f.kater wrote: | - wanted to delete the stuff again: rm -r ./*
- this somehow started to delete files not only on the backup-harddisk but on the main harddisk, too! WHY? |
Because you probably typed "rm -r .*" which deletes . and ..! |
|
Back to top |
|
|
|