> 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....
>
mai copii, de ce nu vreti voi sa cititi documentatia?
cu riscul de a ma repeta, va retrimit la pagina de manual a lui sfdisk:
-d Dump the partitions of a device in a format useful as input to
sfdisk. For example,
% sfdisk -d /dev/hda > hda.out
% sfdisk /dev/hda < hda.out
-x or --show-extended
Also list non-primary extended partitions on output, and expect
descriptors for them on input.
Create partitions
The fourth type of invocation: sfdisk device will cause sfdisk to read
the specification for the desired partitioning of device from its stan-
dard input, and then to change the partition tables on that disk. Thus,
it is possible to use sfdisk from a shell script. When sfdisk deter-
mines that its standard input is a terminal, it will be conversational;
otherwise it will abort on any error.
iar ceva mai jos:
INPUT FORMAT
sfdisk reads lines of the form
<start> <size> <id> <bootable> <c,h,s> <c,h,s>
where each line fills one partition descriptor.
sau pe scurt:
- sfdisk -d -> pt a crea un dump al tabelei de partitii (inclusiv
partitiile logice)
- sfdisk <device> < fisierul_de_la-d ->pt a recrea
fara dd, fara a va preocupa cit e de mare tabela, etcetc.
un exemplu de la mine:
root# sfdisk -d /dev/hde
# partition table of /dev/hde
unit: sectors
/dev/hde1 : start= 63, size= 64197, Id=83, bootable
/dev/hde2 : start= 64260, size= 30716280, Id=83
/dev/hde3 : start= 30780540, size= 1044225, Id=82
/dev/hde4 : start= 31824765, size= 85401540, Id= 5
/dev/hde5 : start= 31824828, size= 626472, Id=83
/dev/hde6 : start= 32451363, size= 30732282, Id=83
/dev/hde7 : start= 63183708, size= 30732282, Id=83
/dev/hde8 : start= 93916053, size= 23310252, Id=83
[EMAIL PROTECTED] root]# sfdisk -d /dev/hde > dump
[EMAIL PROTECTED] root]# sfdisk -n /dev/hde < dump
Disk /dev/hde: 7297 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hde1 * 0+ 3 4- 32098+ 83 Linux
/dev/hde2 4 1915 1912 15358140 83 Linux
/dev/hde3 1916 1980 65 522112+ 82 Linux swap
/dev/hde4 1981 7296 5316 42700770 5 Extended
/dev/hde5 1981+ 2019 39- 313236 83 Linux
/dev/hde6 2020+ 3932 1913- 15366141 83 Linux
/dev/hde7 3933+ 5845 1913- 15366141 83 Linux
/dev/hde8 5846+ 7296 1451- 11655126 83 Linux
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/hde1 * 63 64259 64197 83 Linux
/dev/hde2 64260 30780539 30716280 83 Linux
/dev/hde3 30780540 31824764 1044225 82 Linux swap
/dev/hde4 31824765 117226304 85401540 5 Extended
/dev/hde5 31824828 32451299 626472 83 Linux
/dev/hde6 32451363 63183644 30732282 83 Linux
/dev/hde7 63183708 93915989 30732282 83 Linux
/dev/hde8 93916053 117226304 23310252 83 Linux
-n flag was given: Nothing changed
(nu va lasati pacaliti de diferenta de afisare. e de la -d versus -l)
/me care avea si 15 partitii pe vremea cind tinea 3 sisteme de operare
pe acelasi hard disk si nu era atit de inconstient incit sa faca backup
ad labam
--
"Normal people ... believe that if it ain't broke, don't fix it.
Engineers believe that if it ain't broke, it doesn't have
enough features yet."
--- Scott Adams, The Dilbert Principle
---
Detalii despre listele noastre de mail: http://www.lug.ro/