Hello lonely, Monday, November 10, 2003, 6:00:32 PM, you wrote:
>> si cum ai salvat mbr-ul de la partitia extinsa? tot primii 512k? >> eu cred ca e mai mult tinand cant de faptul ca o partitie extinsa >> poate avea maxim 60 partitii logice, deci cred ca la partitia extinsa >> trebuie salvat mau mult de 512k.... >> lw> mai copii, de ce nu vreti voi sa cititi documentatia? lw> cu riscul de a ma repeta, va retrimit la pagina de manual a lui sfdisk: lw> -d Dump the partitions of a device in a format useful as input to lw> sfdisk. For example, lw> % sfdisk -d /dev/hda > hda.out lw> % sfdisk /dev/hda < hda.out lw> -x or --show-extended lw> Also list non-primary extended partitions on output, and expect lw> descriptors for them on input. lw> Create partitions lw> The fourth type of invocation: sfdisk device will cause sfdisk to read lw> the specification for the desired partitioning of device from its stan- lw> dard input, and then to change the partition tables on that disk. Thus, lw> it is possible to use sfdisk from a shell script. When sfdisk deter- lw> mines that its standard input is a terminal, it will be conversational; lw> otherwise it will abort on any error. lw> iar ceva mai jos: lw> INPUT FORMAT lw> sfdisk reads lines of the form lw> <start> <size> <id> <bootable> <c,h,s> <c,h,s> lw> where each line fills one partition descriptor. lw> sau pe scurt: - sfdisk -d ->> pt a crea un dump al tabelei de partitii (inclusiv lw> partitiile logice) lw> - sfdisk <device> < fisierul_de_la-d ->pt a recrea lw> fara dd, fara a va preocupa cit e de mare tabela, etcetc. lw> un exemplu de la mine: lw> root# sfdisk -d /dev/hde lw> # partition table of /dev/hde lw> unit: sectors lw> /dev/hde1 : start= 63, size= 64197, Id=83, bootable lw> /dev/hde2 : start= 64260, size= 30716280, Id=83 lw> /dev/hde3 : start= 30780540, size= 1044225, Id=82 lw> /dev/hde4 : start= 31824765, size= 85401540, Id= 5 lw> /dev/hde5 : start= 31824828, size= 626472, Id=83 lw> /dev/hde6 : start= 32451363, size= 30732282, Id=83 lw> /dev/hde7 : start= 63183708, size= 30732282, Id=83 lw> /dev/hde8 : start= 93916053, size= 23310252, Id=83 lw> [EMAIL PROTECTED] root]# sfdisk -d /dev/hde > dump lw> [EMAIL PROTECTED] root]# sfdisk -n /dev/hde < dump lw> Disk /dev/hde: 7297 cylinders, 255 heads, 63 sectors/track lw> Old situation: lw> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 lw> Device Boot Start End #cyls #blocks Id System lw> /dev/hde1 * 0+ 3 4- 32098+ 83 Linux lw> /dev/hde2 4 1915 1912 15358140 83 Linux lw> /dev/hde3 1916 1980 65 522112+ 82 Linux swap lw> /dev/hde4 1981 7296 5316 42700770 5 Extended lw> /dev/hde5 1981+ 2019 39- 313236 83 Linux lw> /dev/hde6 2020+ 3932 1913- 15366141 83 Linux lw> /dev/hde7 3933+ 5845 1913- 15366141 83 Linux lw> /dev/hde8 5846+ 7296 1451- 11655126 83 Linux lw> New situation: lw> Units = sectors of 512 bytes, counting from 0 lw> Device Boot Start End #sectors Id System lw> /dev/hde1 * 63 64259 64197 83 Linux lw> /dev/hde2 64260 30780539 30716280 83 Linux lw> /dev/hde3 30780540 31824764 1044225 82 Linux swap lw> /dev/hde4 31824765 117226304 85401540 5 Extended lw> /dev/hde5 31824828 32451299 626472 83 Linux lw> /dev/hde6 32451363 63183644 30732282 83 Linux lw> /dev/hde7 63183708 93915989 30732282 83 Linux lw> /dev/hde8 93916053 117226304 23310252 83 Linux lw> -n flag was given: Nothing changed lw> (nu va lasati pacaliti de diferenta de afisare. e de la -d versus -l) lw> /me care avea si 15 partitii pe vremea cind tinea 3 sisteme de operare lw> pe acelasi hard disk si nu era atit de inconstient incit sa faca backup lw> ad labam omule daca fac asta o sa salvez doar de unde incep si unde se termina partitiile, te-ai uitat macar ce scrie in fisier "sfdisk -d"? eu am mai multe sisteme de operare si vreau sa salvez si mbr-ul la fiecare partitie ca sa nu mai instalez boot-loaderu de fiecare data -- Best regards, andy.rlug mailto:[EMAIL PROTECTED] --- Detalii despre listele noastre de mail: http://www.lug.ro/
