Re: recovering data from a truncated vn-file possible?

From: Joshua Oreman (oremanj_at_webserver.get-linux.org)
Date: 07/06/03

  • Next message: Terry Lambert: "Re: RFC: Change to sys_errlist"
    Date: Sun, 6 Jul 2003 09:17:54 -0700
    To: Terry Lambert <tlambert2@mindspring.com>
    
    

    On Sun, Jul 06, 2003 at 09:06:23AM -0700 or thereabouts, Terry Lambert wrote:
    > Josh Brooks wrote:
    > > Long story short, I have a 4gig vn-backed filesystem. The file backing it
    > > is now missing the last 750megs ... I can vnconfig it, but when I fsck it
    > > I see:
    >
    > Probably the first thing you'll want to do is write a small program
    > to open the file and write a zero at the offset of the 750M to make
    > the "device" the right size. Most of the recovery tools, including
    > fsck, go into convulsions if the device size shrinks on them. So the
    > first thing you want to do is change the size back to what it should
    > be.

    He said it used to be 4gigs, so one would have to write a zero at 4gigs.
    Or do this (slower, but it works):
    $ dd if=/dev/zero bs=1m count=750 >> myfile

    -- Josh

    >
    > -- Terry
    > _______________________________________________
    > freebsd-hackers@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Terry Lambert: "Re: RFC: Change to sys_errlist"

    Relevant Pages

    • Re: J4 - presentation/discussion on "Future of the COBOL Standard"
      ... I ask why WOULD it be slower? ... the extra instruction is small compared to the time to execute the move. ... Micro Focus' efficiency advice is exactly the same on every platform, ... becomes zero, rather than incrementing the counter from zero to n. ...
      (comp.lang.cobol)
    • Re: J4 - presentation/discussion on "Future of the COBOL Standard"
      ... iteration showing that the PERFORM structure used more time than the ... might have changed either the subscript or the DO item, so it recomputes the subscript for ... I ask why WOULD it be slower? ... becomes zero, rather than incrementing the counter from zero to n. ...
      (comp.lang.cobol)
    • Re: simple functions smaller than Log(n) ?
      ... thus drawing the ratio to 0. ... If the zero is zero then f is oand ... Apply the digit counting twice )) and you are ... To get something that grows even slower, ...
      (comp.theory)
    • Re: memset or not ?
      ... a specified region to a specified value, which is usually zero. ... will declare and zero an array of int. ... That is likely slower than assigning in a loop. ... in addition to possibly saving the registers first, ...
      (comp.dsp)
    • Re: Cobol Myth Busters
      ... Do you think adding 5 is slower than adding 1? ... *subtracting* 5 from a register is certainly slower than subtracting 1 ... Intel has an INC instruction to add 1. ... the other is decrementing the counter to zero. ...
      (comp.lang.cobol)