All of lore.kernel.org
 help / color / mirror / Atom feed
* Erased start of voulme...
@ 2005-01-14  1:03 Louis Erickson
  2005-01-14  7:14 ` Sander
  2005-01-14 12:25 ` Alex Zarochentsev
  0 siblings, 2 replies; 7+ messages in thread
From: Louis Erickson @ 2005-01-14  1:03 UTC (permalink / raw)
  To: reiserfs-list


I don't know how it happened, but the start of the /var partition of one 
of the machines I run has gotten itself zeroed out.  Only the first little 
bit - 4k or so - is nulls, then a large amount of very plausible data 
appears.

I can't get reiserfsck to even think this is a reiserfs volume - the 
program doesn't think this is a reiserfs volume any more.

Is there any chance of getting the data back off of this disk?  Can 
reiserfsck be told to look harder and recover more deeply or something?  
Or is this a lesson in why backups are important?

Any suggestions you can give are welcome.

I'm currently running dd from the mangled partition to a file to be able 
to try some things without losing my only copy of the data.  If there's 
anything special I have to do to make that work, please let me know.

Thank you!

-- 
Louis Erickson - lerickson@rdwarf.net - http://www.rdwarf.com/~wwonko/

Oh Dad!  We're ALL Devo!

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Erased start of voulme...
@ 2005-01-14 16:23 Louis Erickson
  2005-01-15  2:49 ` E.Gryaznova
  2005-01-15 11:51 ` Sander
  0 siblings, 2 replies; 7+ messages in thread
From: Louis Erickson @ 2005-01-14 16:23 UTC (permalink / raw)
  To: reiserfs-list


Wow, thanks for the fast responses, everyone.  I'll try and consolidate 
them all in to one reply, in the order I got them here.

Silly me forgot to start ssh on the afflicted box, so I can't get to it 
until I get home.  I do have another near-identical machine that I've 
checked versions and such on, and can use to build tools if need be.

On Fri, 14 Jan 2005, Sander <sander@humilis.net> wrote:

> What arguments did you use?

reiserfsck --check /dev/md2

> What version of reiserfsck?

How do I find that out?  It isn't in the help or visible as an option.  
If I ask mkfs.reiserfs it tells me it's 3.x.1b (2002).  I suspect it's 
quite old.

Should I build new tools (on another similar machine) and use those 
instead?

> And what filesystem?

It's /dev/md2, mounting on /var.  Linux is unhappy without it, although it 
does come up to single user mode.  Much of the important data is on /home, 
and I can therefore get off if I have to completely rebuild, but there's a 
couple of things (/var/mail, for instance) that would be good to rescue.  
I'd like to try and get a gander at /var/log too, to see if I can suss out 
what happened.

All of this is running on software raid, but the volumes are all up and 
good, and the raid component isn't complaining at all.

Or is that not the question you're asking?

> _And_ it is a lesson why backups are important :-)

Yes it is.  It is past time to fix this astonishing lack in our 
infrastructure.

On Fri, 14 Jan 2005, Alex Zarochentsev <zam@namesys.com> wrote:

> reiserfsck --rebuild-sb can re-create the super block.

I saw that, but it looked dangerous, and I didn't want to try it until my 
copy had finished.

On Fri, 14 Jan 2005, E.Gryaznova <grev@namesys.com> wrote:

> I would prefer to do the following :
> dd if=/dev/problem_partition of=/dev/sparedevice
> sparedevice can be usual disk partition

I don't have a spare partition large enough in this system.  I have done:

dd if=/dev/problem_partition of=/home/scratch/rescue.dat

I'll then use the loopback file system to create a device entry for that 
file, and work on that.  It was a suggestion made earlier on this very 
mailing list, and it sounded like a wise one to me.  If the loopback 
doesn't work, I'll fiddle around with hardware to make a spare partition 
large enough available.

> then
> reiserfsck --rebuild-sb /dev/sparedevice
> reiserfsck --check /dev/sparedevice

The help screen for --rebuild-sb says that a --rebuild-sb will require a 
--rebuild-tree afterwards.  Should I try that, or the --check?  Or will 
--check do the --rebuild-sb as needed?

Also, there's a -S/--scan-whole-partition option... should I use that to 
make sure no files are missed, or would it best not to add that?

Again, thank you all for your quick replies.  It's been very helpful, and 
very positive to hear there are things I can at least try, rather than 
that I am simply hosed.

-- 
Louis Erickson - lerickson@rdwarf.net - http://www.rdwarf.com/~wwonko/

"The human brain is like an enormous fish -- it is flat and slimy and
has gills through which it can see."
		-- Monty Python

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-15 11:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14  1:03 Erased start of voulme Louis Erickson
2005-01-14  7:14 ` Sander
2005-01-14 12:25 ` Alex Zarochentsev
2005-01-14 12:32   ` E.Gryaznova
  -- strict thread matches above, loose matches on Subject: below --
2005-01-14 16:23 Louis Erickson
2005-01-15  2:49 ` E.Gryaznova
2005-01-15 11:51 ` Sander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.