Re (2): Need script to loop fdisk



In article <ke1g89-u9p.ln1@xxxxxxxxxxx>, "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx> wrote:

On 2012-05-17, Chris F.A. Johnson wrote:
On 2012-05-16, NoHtmlMailsPlease wrote:
According to my logs, in Oct 2005 I used a method that was publicised on
these
groups, and it worked for me, and now I'm trying to remember how it worked.
It went something like this:-

A script which repeatedly calls `fdisk` while increasing the size of the
new-partition, and thus incrementally moving the partition "boundry" of
the new/next partition, and testing for
<yes that's where the previously lost boundry WAS>.

That sounds like something I wrote several years ago.

I can't find the script right now, but IIRC it looped with a new
call to fdisk (with changed parameters in a here document) in each
iteration.

I'll see if I can find it.

<http://compgroups.net/comp.os.linux.misc/need-ash-script-interesting-hack/563583>

Great, Thanks !! I don't have to describe what it's like 'recovering'?
You've got a good filing system.
IMO 'search' is the most important unappreciated facility of computing.
That's why google could control the world.

The hdx17 which was recovered was a big important partition,
and the following ones are just backups.
But IIRC previously I fixed a hdx26 and I thought 'the rest of the
chain was OK'. But that's not so simple, since as a linked list,
now, the recovered hdx17 has got a 'terminator'.

Knowing the size of hdx17, I could link it to hdx18, and then the
rest of the chain might be ok.

Normally one shouldn't mess with this stuff, but I've opened the
can-O-worms in connection with LILO & grub for a netbook
running on a Compact Flash, which won't boot; and I can't let it go.

Thanks a lot.





.



Relevant Pages

  • Re: FreeBSD 9: fdisk -It crashes kernel
    ... pager read error, pid 65 (fdisk) ... I'll fix my script to not do this, but it seems odd that fdisk -It can make the disk "go away". ... The script is intended only to work for drives other than the one containing the boot partition. ...
    (freebsd-stable)
  • Re: messed up partition table reinstalling windows 98
    ... I booted up her system using the 98 floppy, ran fdisk and deleted the ... Partition 1 as an Extended DOS partition 353 MB ... The Extended DOS Partition contains Logical DOS Drives ...
    (Ubuntu)
  • Re: Partition =?ISO-8859-1?Q?vergr=F6=DFern?=
    ... dem fdisk sehr wohl mit einer Partition und nicht mit einem ... Aufruf mit eine Partition. ... Der von einigen richtigerweise gemachte Einwand, fdisk könne nur auf der ganzen Platte arbeiten, scheinst Du ignorieren zu wollen. ...
    (de.comp.os.unix.linux.misc)
  • Re: fdisk: ERROR: failed to adjust; setting sysid to 0
    ... using fdisk to setup ... Should I ignore the warning re: "partition does not ... Figures below won't work with BIOS for partitions ... requirement that partition boundarys end on and begin ...
    (freebsd-questions)
  • Re: unregmp2.exe - Entry Point Not Found................
    ... running fdisk and deleting partitions will ensure you will ... drive out of the install machine, set it as a slave drive ... >delete the non-dos partition, create a primary dos ...
    (microsoft.public.windowsxp.general)