Re: undo rm -r??
Re: undo rm -r??
- Subject: Re: undo rm -r??
- From: //aSaM// <email@hidden>
- Date: Thu, 6 Nov 2003 23:34:55 +0200
Hi, I did something really stupid and need to
try to recover my home folder after a rm -r
"rm -ri" said the cat.
<snip convoluted description> :-)
then I logged back in my normal user account
and everything was fine. I went to terminal.app
and under sudo -s did a rm -r .asam
BUT something went wrong :((((((((((((((((( and
my recovered /users/asam got deleted as well
I suspected the answer already, but I just tried
it for grins with a test directory, and rm -r
.asam would not have removed asam unless asam
was in .asam. So you must have done (or not
done) something else. Personally, I find that I
do not often make a command line mistake. What I
do find though, is that through other mistakes
or just plain lazy ignorance, I do a command
which has no target. IOW, my presupposition
about what was there to begin with has been
wrong. This can have consequences.
Sorry I wrote very quickly and exact sequence of events as follows:
1. kill -9 diskmounter (can't remember exact name
coz my file vault off now so can't try - but
basically the app that mounts file vault images)
2. ls -l and system made /users/.asam (invisible file)
3. logged off asam, logged in root
4. duplicated /users/.asam which contained
library and asam-file vault encrypted image -
changed name of .asamcopy to asam-recover
5. logged off root, logged in as asam - mounted
/users/asam-recover/asam (file vault image),
entered password, decrypted and mounted image on
desktop - copied user files to /users/asam-new
6. turned off file vault , logged off user asam, logged in root
7. rm -r /users/.asam
8. rm -r /users/asam
9. rm -r asam-recover
10 changed name asam-new to asam
11. logged off root, logged in asam
12. did a sudo -s and ls -l in /users and saw my
/users/asam was there and intact and recovered to
my relief, BUT THERE WAS ANOTHER FOLDER THERE
called /users/asam 1 - I never made this and
don't know where it came from so did a rm -r
/users/asam\ 1
13. then did a ls -l again and to my horror
/users/asam was gone again, the one I just
recovered !!
14. few seconds later, finder had already made a new /users/asam
15. shutdown, rebooted on back up system on other partition
so basically it was when I deleted the
/users/asam 1 file which I don't know where it
came from - I remember exactly because I couldn't
remember how to put a space in the file name and
dragged and dropped the asam 1 folder from the
finder into terminal.app- since I could see it in
finder it wasn't .asam 1 and also I couldn't see
inside it coz it had a red no entry label on the
icon. At that point I could see the recovered
/users/asam file and its recovered contents
file names may have changed above but exact
sequence of events - I could see my /users/asam
and all the files in it at that time, but after I
did rm -r /users/asam\ 1 both /users/asam and
/users/asam 1 where gone
--
\______\\ currently running a _eta preview of reality \\________________\
<http://homepage.mac.com/asam/> ICQ:13706065 * ask for public PGP key
PGP fingerprint: B8C8 B78F F664 2DC8 2BA6 B5D4 5025 22D3 680C 4B96
[Mobile Athens: +306976394692 ]
\-------------->\\__________ | Meme Dealer) |_____________\\<----\
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.