Hello Hubert >> [...] >> 3 first partitions e,f,g and an extended aprtiton which schould be h >> But that h partition is not shown in 'parts wd0' > > g4u doesn't support "extended" partitions.
ok, I see, but an extended partition of a msdos-labeled disk is just a "usual" primary partition. The maximum of msdos-labeld partitions are 4 primary partitions or 4 primary and one extended. Perhaps you would like to have a look at: http://tjung.lima-city.de/mbr/disklabel/ there are also extracted sectors (binary files, no viruses) of the uploaded wd0 or wd0d files. If somebody would like to see these sectors using a hex-viewer, look at that website. I marked the extended (4th, but must not be the 4th) partition in the first picture and in this "extended", but in fact it is just a primary partition and all following partitions are inside this extended (primary) partition (organized like/as a chain) are usually named _logical_ partition and it seems that g4u (the tool which save the partition) doesn't have problems to save these logical partitions and just don't use that letter for this extended partition. In the following output of of my "parts wd0" you can see that the letter "h" is omitted and would probably letter "h" if the fourth partition would be used as a "usual" (single) partition. btw: the text is seen at that website too, because of the "bad" formatting of tb Emails ---snip--- g4u> parts wd0 Found MSDOS partition; size 32137 (156 MB), offset 63 skipping existing MSDOS partition at slot e. Found NTFS partition; size 29238300 (1427 MB)), offset 321300 skipping existing NTFS partition at slot f. Found Linux Ext2 partition; size 16065 (7 MB)), offset 29559600 skipping existing Linux Ext2 partition at slot g. Found Linux Ext2 partition; size 2088387 (1019 MB)), offset 29675728 skipping existing Linux Ext2 partition at slot i. Found MSDOS partition; size 4176837 (2039 MB)), offset 31664178 skipping existing MSDOS partition at slot j. Found swap partition; size 4176837 (2039 MB)), offset 35841078 skipping existing swap partition at slot k. 11 partitions: # size offset fstype [fsize bsize cpg/sgs] d: 40020624 0 unused 0 0 # (Cyl.) 0 - 39702) e: 321237 63 MSDOS # (Cyl.) 0*- 318*) f: 29238300 321300 NTFS # (Cyl.) 318*- 29334) g: 16065 29559600 Linux Ext2 0 0 # (Cyl.) 29325 - 29340*) i: 2088387 29575728 Linux Ext2 0 0 # (Cyl.) 29341 - 31412*) j: 4176837 31664178 MSDOS # (Cyl.) 31412*- 35556*) k: 4176837 35841078 swap # (Cyl.) 35556*- 39700*) Not updating disk label. g4u> _ ---snap--- >> [....] > If your whole machine gets destroyed, I strongly recommend you do not use > uploadpart/restorepart, but uploaddisk/restoredisk, as only that will > restore your MBR=partition table. Without a partition table, your > partition data is useless. that would be a good feature and as a first workaround the mbr can be extracted from the whole diskfile "uploaddisk", either wd0 or wd0d by using dd if=rwd0 of=mbr01.bin bs=512 count=1 of dd if=rwd0 of=mbr63.bin bs=512 count=63 (for all 63 (hiddden/following) sectors of the mbr) within the gunziped wd0 or wd0d uploaded disk btw: I used cygwins dd, which works fine after a "fictive" "slurpmbr" it should be possible to use "slurppart" as necessary. And slurppart could restore any partition as you like, Especially the "logical" partitions of an extended partition and leave the rest of the partitions as they are. >> uploadmbr 192.168.2.16 rwd0mbr.gz wd0mbr bs=512 count=63 >> or something like that? > > I agree. It's not there, though. Mea culpa :) > I've been fighting to rebuild g4u recently, with very limited succes > :-/ Would like to help you. But not very familiar with netbsd. But I'm also interested to modify and make the tool more useful, including more support for foreign keyboards, etc. Can I send you PM to your email seen at your website? Thomas ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ g4u-help mailing list g4u-help@feyrer.de https://lists.sourceforge.net/lists/listinfo/g4u-help