deleted all files - rm *


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users deleted all files - rm *
# 1  
Old 12-08-2009
deleted all files - rm *

Hi All,

I am using Fedora Core and Windows Xp. I deleted all the files from root
directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots of data in XP OS.

Please help me


i used
# rm *
# 2  
Old 12-08-2009
I don't think you can recover the files which got deleted from rm* unless you have a backup..
# 3  
Old 12-08-2009
I don't think so either. Sorry, it's lost.

rm stands for remove and the star fits every file --> everything is gone

There's nothing you can do except reinstall.
# 4  
Old 12-08-2009
Ah, you mean WinXP. I don't think Win is gone though. But you have to boot it from grub then? Maybe take a look at grub manual?
GNU GRUB Manual 0.97
# 5  
Old 12-08-2009
re: rm -rf *

But i deleted the files from fedora core OS.

How it deleted files from Windows Xp

---------- Post updated at 01:42 PM ---------- Previous update was at 01:33 PM ----------

when i am restarting the machine, it is showing GNU GRUB and grub > command prompt

---------- Post updated at 02:54 PM ---------- Previous update was at 01:42 PM ----------

I read the manual of GRUB. But i'm not getting the exact solution.
# 6  
Old 12-08-2009
imposible to delete windows files its different format
# 7  
Old 12-08-2009
grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot


it resolves the issue.

---------- Post updated at 03:07 PM ---------- Previous update was at 03:05 PM ----------

Thanks fisfia. Thanks a lot, realy it's good mannual.

---------- Post updated at 03:23 PM ---------- Previous update was at 03:07 PM ----------

when i'm trying to reboot my machine, the GRUB grub> shell comes everytime.

Every time i need to write this command mannualy. Is there any solution ?
grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Who deleted my files

Just looking for some guidance on how to figure out who might have deleted some files off one of my systems. These files are not root owned files so could be deleted by a handful of folks in the group responsible for these files besides the root users. Anyway I have been tasked with trying to... (1 Reply)
Discussion started by: juredd1
1 Replies

2. Linux

Need help with deleted files

Hello. I am having a problem and I was wondering if I could get some help from here. I changed into a directory with the cd command and I wanted to delete a folder and all of its subdirectories, so I went ahead and did a rm --recursive * in my current directory to realize that I was in the wrong... (3 Replies)
Discussion started by: jonnydadesigner
3 Replies

3. UNIX for Dummies Questions & Answers

Any way to retrieve deleted files?

:eek: I accidently removed some files using 'rm'. Is there any way to retrieve these files if they were deleted through 'rm'? (1 Reply)
Discussion started by: orahi001
1 Replies

4. Shell Programming and Scripting

how to restore the deleted files

hi, if i delete a file from /home/san/abc.cpp in linux/unix and i want to restore it back how to do that ? (3 Replies)
Discussion started by: mail2sant
3 Replies

5. UNIX for Dummies Questions & Answers

Retrieving deleted files

I mistakenly deleted a script from the UNIX server. Is there any command i can type that i will retrieve my script? (3 Replies)
Discussion started by: manna
3 Replies

6. Shell Programming and Scripting

Finding deleted files

One of the files got deleted and i want to find who deleted that file. I think we can get the list using history command. Could you please let me know how to get the list of rm commands from history and who previously logged in and did that? Any other suggestions other than history also... (2 Replies)
Discussion started by: Krrishv
2 Replies

7. AIX

recover deleted files

How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies

8. UNIX for Dummies Questions & Answers

restoring deleted files

I had a user run, by accident, the following line command on our UNIX server: rm -f /usr/* This apparently deleted some needed files on your system. Having very limited knowledge in UNIX, I thought I would ask the group if anyone knows how I can recover these file? The version of UNIX is... (3 Replies)
Discussion started by: mikem
3 Replies

9. UNIX for Dummies Questions & Answers

Retrieval of deleted files

We have a situation in a large dept of programmers where critical accounting data files were deleted. Is there any way in UNIX to trace deletions and or possibly retrieve the deleted file? (14 Replies)
Discussion started by: cgardiner
14 Replies
Login or Register to Ask a Question