----- Original Message ----- 
From: "Steve Burtchin" <[EMAIL PROTECTED]>
To: "adrian15" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2007 11:51 PM
Subject: Re: How To Write Extended Partition Tables from GRUB?


>
> ----- Original Message ----- 
> From: "adrian15" <[EMAIL PROTECTED]>
> To: "sburtchin" <[EMAIL PROTECTED]>
> Cc: <[email protected]>
> Sent: Thursday, February 01, 2007 12:52 PM
> Subject: Re: How To Write Extended Partition Tables from GRUB?
>
>
> > sburtchin escribió:
> > > Another situation deals with data recovery.  If the partition tables
> happen
> > > to become corrupted, fixing these errors can be the first and best
step
> to
> > > data recovery.  There are tools for doing this, but a much quicker
> approach
> > > would be to add a "Restore All Partition Tables" selection to the GRUB
> menu.
> > > This is easily scripted in "menu.lst" using a combination of "partnew"
> and
> > > "eptedit" commands.
> > >
> > This restore All Partition Tables selection how would it be
implemented...
> >
> You would first have to get the information about your partitions.
> PowerQuest's PARTINFO will create a text file for you.  I created a
> spreadsheet because I have a lot of partitions (see attached image - the
> highlighted primary partitions are for the standard MPT, the rest can be
> swapped for the standard ones to boot other os's).  Then copy the data
into
> menu.lst and insert "partnew" and "eptedit" at the appropriate places (I
> would suggest converting partinfo.txt to a spreadsheet.  Then you can
select
> just the columns you need to put into menu.lst --- saving yourself a lot
of
> unnecessary editing).
>
> After a minimal amount of editing, my "Restore All Partition Tables"
section
> of menu.lst would be as in the attached text file.  Starting with the
> information from the spreadsheet, this took me about 15 minutes to create
> (first time), but now that I know how to do it, I could probably do it in
5.
>
> Selecting this boot item in the GRUB menu would do exactly what it says!
>
> > on the running system you run an script that saves all your partition
> > data into a menu.lst that uses that eptedit command and then...
> >
> You run a free (or other) program like PARTINFO and then you edit the
> information as explained above to create the boot item in menu.lst.
>
> > you can burn this menu.lst into a grub cdrom so that you can use
> >
> Yes!!! - if you can't access the menu.lst on the HDD.
>
> > FOR ONLY your computer in a future ?
> >
> Not exactly - Suppose you are managing an IT department and you want to
roll
> out 200 new computers all with identical HDD's.  You could partition all
of
> them in the time it takes to boot to CD and hit enter!  I know there are
> other ways of doing this (multicasting), but if later - any one of these
200
> computers would have its partition tables corrupted, you could restore all
> the partition tables just as fast.  I'm not aware of any other tools that
> would do it this fast.
>
> > Is that your idea ?
> >
> >
> > adrian15
> >
> That was not my idea at all originally, but I am excited to see that my
new
> function has a purpose that would interest others.  I actually only
thought
> of using it this way as an afterthought while I was explaining what I
wanted
> it for back on November 18.  Serendipity at work!
>
> I would definitely want to use it as in the attached text file if my
> partition tables were ever corrupted, but I originally wanted it so I
could
> define extended partitions with the same starting cylinder, but with
> different ending cylinders (because some older os's can only see the first
> 1024 cylinders - ref. my November 18 reply).
>

Attachment: GRUB_demo_playstuff.png
Description: PNG image

title Restore All Standard Partition Tables & Boot Floppy0
partnew (hd0,0) 0x06 63 514017
partnew (hd0,1) 0xBB 5110560 6153840
partnew (hd0,2) 0x0F 11264400 137108160
partnew (hd0,3) 0xBF 148372560 40960080
eptedit (hd0,4) c 0x07 745 1 1 880 239 63 63 2056257
eptedit (hd0,4) n 0x05 881 0 1 1023 239 63 2056320 2162160
eptedit (hd0,5) c 0x07 881 1 1 1023 239 63 63 2162097
eptedit (hd0,5) n 0x05 1023 0 1 1023 239 63 4218480 4717440
eptedit (hd0,6) c 0x07 1023 1 1 1023 239 63 63 4717377
eptedit (hd0,6) n 0x05 1023 0 1 1023 239 63 8935920 1028160
eptedit (hd0,7) c 0x07 1023 1 1 1023 239 63 63 1028097
eptedit (hd0,7) n 0x05 1023 0 1 1023 239 63 9964080 6153840
eptedit (hd0,8) c 0x07 1023 1 1 1023 239 63 63 6153777
eptedit (hd0,8) n 0x05 1023 0 1 1023 239 63 16117920 5337360
eptedit (hd0,9) c 0x07 1023 1 1 1023 239 63 63 5337297
eptedit (hd0,9) n 0x05 1023 0 1 1023 239 63 21455280 5231520
eptedit (hd0,10) c 0x07 1023 1 1 1023 239 63 63 5231457
eptedit (hd0,10) n 0x05 1023 0 1 1023 239 63 26686800 5125680
eptedit (hd0,11) c 0x07 1023 1 1 1023 239 63 63 5125617
eptedit (hd0,11) n 0x05 1023 0 1 1023 239 63 31812480 6758640
eptedit (hd0,12) c 0x07 1023 1 1 1023 239 63 63 6758577
eptedit (hd0,12) n 0x05 1023 0 1 1023 239 63 38571120 6562080
eptedit (hd0,13) c 0x07 1023 1 1 1023 239 63 63 6562017
eptedit (hd0,13) n 0x05 1023 0 1 1023 239 63 45133200 16390080
eptedit (hd0,14) c 0x83 1023 1 1 1023 239 63 63 16390017
eptedit (hd0,14) n 0x05 1023 0 1 1023 239 63 61523280 8210160
eptedit (hd0,15) c 0x83 1023 1 1 1023 239 63 63 8210097
eptedit (hd0,15) n 0x05 1023 0 1 1023 239 63 69733440 8195040
eptedit (hd0,16) c 0x83 1023 1 1 1023 239 63 63 8194977
eptedit (hd0,16) n 0x05 1023 0 1 1023 239 63 77928480 4203360
eptedit (hd0,17) c 0x07 1023 1 1 1023 239 63 63 4203297
eptedit (hd0,17) n 0x05 1023 0 1 1023 239 63 82131840 7817040
eptedit (hd0,18) c 0x0B 1023 1 1 1023 239 63 63 7816977
eptedit (hd0,18) n 0x05 1023 0 1 1023 239 63 89948880 2071440
eptedit (hd0,19) c 0x07 1023 1 1 1023 239 63 63 2071377
eptedit (hd0,19) n 0x05 1023 0 1 1023 239 63 92020320 40975200
eptedit (hd0,20) c 0x07 1023 1 1 1023 239 63 63 40975137
eptedit (hd0,20) n 0x05 1023 0 1 1023 239 63 132995520 4097520
eptedit (hd0,21) c 0x07 1023 1 1 1023 239 63 63 4097457
eptedit (hd0,21) n 0x05 1023 0 1 1023 239 63 137093040 15120
eptedit (hd0,22) c 0x01 1023 1 1 1023 239 63 63 15057
chainloader (fd0)+1
_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to