sean finney on 16 Apr 2005 16:00:51 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] undo mkfs?


hi art,

On Fri, Apr 15, 2005 at 06:46:48AM -0400, Art Alexion wrote:
>      $ lazarus
>     Can't open

you need to pass it a filename, like your partition.  you also
need to run it as root, or set things up so you have privileges
to read the raw disk and write the reports to the correct directory.

so try:

$ sudo lazarus /dev/hde1 (or whatever partition the data could start at)

however, in my tests it doesn't seem that lazarus knows anything about
the ogg-vorbis/flac filetypes, so this may be a wasted effort anyway.
however, if you're feeling adventurous, you could always try to home-
roll yourself a small c program that does the work.  do something like

block number = 0
open(file)
while(!end of file)
	read next $filesystem_blocksize of data into buffer
	if buffer looks like the beginning of an ogg/flac file
		print block number
	block number ++

then, you've built yourself the same type of map that lazarus would
have generated, and you can try some creative uses of dd/bvi (plus
reading about the ogg/flac file structure) from there to piece things
together.  and yes, i've had to do this :(


	sean

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug