The current way to edit a disk sector would be something like:

dd if=/dev/hda1 skip=1234 count=1 of=/tmp/filename
hexedit /tmp/filename
dd if=/tmp/filename of=/dev/hda1 seek=1234 count=1

I suppose I need to write a shell script or awk to automate it,
the pieces are all there but it is a bit more manual and error
prone than would be ideal.  I doubt I'll put a specialized
program such as lde onto it, it is actually a fairly rare
thing to need.  But, it does have to be there in some form.

I'll copy this to the tomsrtbt mailing list, perhaps someone
can volunteed to combine dd, tomshexd, and vi with a script
or an awk in such a way as to be a rudumentary diskeditor,
using only a couple of hundred bytes.

-Tom

On Tue, 2 May 2000, Cowboy wrote:

> Date: Tue, 2 May 2000 16:42:27 -0400 (EDT)
> From: Cowboy <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: tomsrtbt-1.7.185
> 
> 
>  First, THANK YOU !!
> 
>  What a great thing !
> 
>  Second ...
> 
>  My motivation is, as you say...
> 
>  rescue recovery panic & emergencies
> 
>  tools to keep in your shirt pockets
> 
>  ... and...
> 
>  "Tell me what problems you have and what you would like added."
> 
>  so ....
> 
>  I'ld REALLY like some version of lde ( the linux disk editor ) or equivalent
>  in the system.
>  That way, it becomes the defacto toolkit for crashed hard drives of any
>  stripe, linux, windows, NT, whatever, and I no longer need to move
>  hard drives to other machines to work on them.
> 
>  I went looking for "customizations" to try and add it meself, but failed
>  miserably when mount ram2 failed, and flat ran out of time before
>  being sent on this trip.
> 
>  Can you help, or tell me what I need to do to do it myself ??
> 
>  Again, MANY thanks.
>  ( from more than just me )
> 
> --
> Cowboy
> 
> How apt the poor are to be proud.
>               -- William Shakespeare, "Twelfth-Night"
> 
> 
> 

Reply via email to