LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-05-2006, 04:15 AM   #1
Ichpuchtli
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
4.56 GB deleted without any consent. Random.


Help. I went on to my linux account the other day after repairing my system because KDE was not working. Now it worked and I was following these steps to install firefox from here. (sorry can not post link)

I will give teh code instead.
Code:
$ su
< password >
# mv firefox* /usr/local/bin/
# cd /usr/local/bin/
# tar -zxvf firefox*
and while listening to music over amarok I suddenly relised that the songs were not working niether was my background, it said all my files did not exist. I went back on today and true to it's word they were gone. All I had left was Trash. I do not even know how to begin recovering my files using shell. Any explaination and how to recover my files would be greatly appreicated. I lost a total of 4.56GB and I had some paid for files on it. DigitalBlasphemy pictures and music for one. I am extremely anoyyed at this.

Please if you need more details please tell me I will give them to you.

Thanks Andrew
 
Old 07-05-2006, 04:45 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
The code you posted above does not delete anything, it just moves every file and directory starting with the string "firefox" to /usr/local/bin (I would have used tab-completion, wildcards can be dangerous).
So have you checked that you did not mistype something and accidentally move *everything* in that directory to /usr/local/bin? Because otherwise, I don't see how this explains 4.56GB of missing data.
 
Old 07-05-2006, 04:51 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In addition to what JunctaJuvant wrote:
- I will give teh code instead. Instead you could get the real commands reading /root/.bash_history if Bash is the default shell. For that (and anything that follows) you would need to keep the system as untouched as possible. This means booting your distro's rescue CD or KNOPPIX(-derivative) and mount partitions read-only and then get the file.


Just in case /usr/local/bin doesn't have the files, and /root/.bash_history shows you actually did something else, have a look at these questions:
- Did you, between "deleting" files and noticing it, reboot the system or/and logged in or do anything?
- If the box was powered on all the time between deletion and your post, was it running in a runlevel other than 1?
- What is the filesystem type the files resided on?
- Do you have another physical disk (could be external) with sufficient free space on it?
 
Old 07-05-2006, 06:12 PM   #4
Ichpuchtli
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I will try checking in there. I will also pull up the history, I working on windows writing this because I am slightly reluctent to go back on. I will also post a history of what I typed.

Is there anyway to recover the files if they have being lost?
 
Old 07-05-2006, 06:57 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I working on windows writing this because I am slightly reluctent to go back on.
I can imagine that. If you learn from your mistakes however and implement a good backup scheme chances you'll ever have to go through this again will become much smaller.


I will also post a history of what I typed.
Yes, that could definately help.


Is there anyway to recover the files if they have being lost?
The only sane answer one can give without more information is "it depends". We can help you try to recover part of it, but don't expect flawless results. Meanwhile try to answer any previous questions we asked if you can. If you don't understand something: just ask.

[edit]Here's what I posted recently on ext3 recovery[/edit]

Last edited by unSpawn; 07-06-2006 at 05:01 AM. Reason: //add redirect to recent "ext3 recovery" post
 
  


Reply

Tags
help, recovery


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Microsoft's Calling Home Problem: It's a Matter of Informed Consent LXer Syndicated Linux News 3 06-15-2006 01:16 PM
Kmail crashes when deleted mail is deleted dufferin Slackware 0 03-21-2005 03:23 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM
Creating random numbers from shell with /dev/random khermans Linux - General 1 07-13-2004 12:12 PM
cursor jumps to mouse location without my consent Myron Linux - Hardware 1 02-08-2004 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration