[Dorset] Files lost

2010-11-17 Thread Peter & Jill Harris
Hi All,

I seem to have really screwed things up!  I was trying to get rid of
some unwanted data from a Shotwell database and now all my folders are
empty and all icons have gone from the desktop.

The command I put in was  rm -rf  ~/ .shotwell/Examples

I got a message telling me it was busy and it seemed to do nothing.

I have tried restoring the last complete backup plus incrementals but
still no files to be found.  Can anyone help please?

Cheers,
Peter Harris


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-17 Thread Robert Bronsdon
On Wed, 17 Nov 2010 18:49:27 -, Peter & Jill Harris  
 wrote:



The command I put in was  rm -rf  ~/ .shotwell/Examples


I'm really hoping that is a joke or a typo

what you have done there is
rm -rf ~/
rm -rf .shotwell/Examples

I think what you wanted to do was rm -rf ~/.shotwell/Examples

If you did the former - then I hope your backup of ~ is recent ;)

--
Robert Bronsdon

--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-17 Thread John Cooper

On 17/11/10 18:49, Peter & Jill Harris wrote:

Hi All,

I seem to have really screwed things up!  I was trying to get rid of
some unwanted data from a Shotwell database and now all my folders are
empty and all icons have gone from the desktop.

The command I put in was  rm -rf  ~/ .shotwell/Examples

I got a message telling me it was busy and it seemed to do nothing.

I have tried restoring the last complete backup plus incrementals but
still no files to be found.  Can anyone help please?



You have deleted all your home directory. You could have tried booting 
from knoppix CD and running testdisk to try and undelete/recover the 
files. This may still be worth trying.


How have you restored the backup files?

I you are local to Poole could look at restoring them.

John.

--
--
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk
--

--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-17 Thread Sean Gibbins
On 17/11/10 18:49, Peter & Jill Harris wrote:
> I have tried restoring the last complete backup plus incrementals but
> still no files to be found.  Can anyone help please?

I guess the question to ask here is /where/ did you restore them to?

Depending on how you went about it they might be lurking elsewhere and
require copying across to your home directory.

What format are your backups in, and how did you restore them?

Sean

-- 
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-17 Thread Robert Bronsdon
On Wed, 17 Nov 2010 20:35:20 -, Sean Gibbins   
wrote:



I guess the question to ask here is /where/ did you restore them to?


Is the question not "_what_ have you restored?"

you won't be able to restore just ~/.shotwell/Examples You need to restore  
your whole ~


--
Robert Bronsdon

--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-17 Thread Sean Gibbins
On 17/11/10 20:40, Robert Bronsdon wrote:
> On Wed, 17 Nov 2010 20:35:20 -, Sean Gibbins
>  wrote:
>
>> I guess the question to ask here is /where/ did you restore them to?
>
> Is the question not "_what_ have you restored?"
>
> you won't be able to restore just ~/.shotwell/Examples You need to
> restore your whole ~
>

Well, that as well!

However, had Examples been restored to ~/.shotwell you'd surely expect
to find it there, and I am assuming that Peter in trying to delete
Examples wasn't especially keen to restore it!

That said, we all know what assumptions give birth to, so I guess the
important thing to do here is not to panic and to take one step at a time.

Sean

-- 
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-18 Thread Peter & Jill Harris
On Wed, 2010-11-17 at 19:08 +, Robert Bronsdon wrote:
> On Wed, 17 Nov 2010 18:49:27 -, Peter & Jill Harris  
>  wrote:
> 
> > The command I put in was  rm -rf  ~/ .shotwell/Examples
> 
> I'm really hoping that is a joke or a typo
> 
> what you have done there is
> rm -rf ~/
> rm -rf .shotwell/Examples
> 
> I think what you wanted to do was rm -rf ~/.shotwell/Examples
> 
> If you did the former - then I hope your backup of ~ is recent ;)
> 

Thanks for responses.  I'm sure it was rm -rf ~/ .shotwell/Examples.  I
restored /etc, /home and /usr/local in that order using Simple Backup,
the backups were on a separate hard disk.  Thanks for offer to assist if
I lived in the Poole area John but I live in Swanage.  If all else fails
I have copies of most of my folders on a separate hard disc but they are
not up to date and I would lose all the cataloguing from about 500
photos.

Cheers,
Peter Harris


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-18 Thread John Cooper

On 18/11/10 15:05, Peter & Jill Harris wrote:


Thanks for responses.  I'm sure it was rm -rf ~/ .shotwell/Examples.  I
restored /etc, /home and /usr/local in that order using Simple Backup,
the backups were on a separate hard disk.  Thanks for offer to assist if
I lived in the Poole area John but I live in Swanage.  If all else fails
I have copies of most of my folders on a separate hard disc but they are
not up to date and I would lose all the cataloguing from about 500
photos.



Peter, try Knoppix CD, it has Testdisk on it

http://www.cgsecurity.org/wiki/TestDisk

Which can recover lost files, but the more you write to the disk, the 
less chance of recovering the files.


ls ~/ will list your home directory, and as long as you are not root, 
shouldn't have touch /etc etc.


You often see

alias rm='rm -i'

in .bash_profile for a good reason, especially under root.

John.

--
--
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk
--

--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue


Re: [Dorset] Files lost

2010-11-18 Thread Peter & Jill Harris
On Thu, 2010-11-18 at 15:40 +, John Cooper wrote:
> On 18/11/10 15:05, Peter & Jill Harris wrote:
> 
> > Thanks for responses.  I'm sure it was rm -rf ~/ .shotwell/Examples.  I
> > restored /etc, /home and /usr/local in that order using Simple Backup,
> > the backups were on a separate hard disk.  Thanks for offer to assist if
> > I lived in the Poole area John but I live in Swanage.  If all else fails
> > I have copies of most of my folders on a separate hard disc but they are
> > not up to date and I would lose all the cataloguing from about 500
> > photos.
> >
> 
> Peter, try Knoppix CD, it has Testdisk on it
> 
> http://www.cgsecurity.org/wiki/TestDisk
> 
> Which can recover lost files, but the more you write to the disk, the 
> less chance of recovering the files.
> 
> ls ~/ will list your home directory, and as long as you are not root, 
> shouldn't have touch /etc etc.
> 
> You often see
> 
> alias rm='rm -i'
> 
> in .bash_profile for a good reason, especially under root.
> 
> John.
> 

Thanks John, I'll try it.

Cheers,
Peter'


--
Next meeting:  Somewhere quiet, Bournemouth, ???day 2010-12-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue