Re: De GRUB i MBR ...

2006-09-04 Conversa tictacbum
el dd te una opcio per passar-li quants blocs vols copiar, crec que era amb 
count

el Saturday 02 September 2006 19:44, Lluís Gras va escriure:
> > Hola,
> > Per copiar tot el disc pots fer-ho directament amb el dd i també t'hi
> > inclourà
> > la MBR.
>
> Si però la cosa és podria eternitzar perque el dd ho copiaria tot, espais
> buits inclosos, i hores d'ara i tinc tres particions ( win98se + Linkat +
> Debian ) més una de swap, vegis:
>
> [EMAIL PROTECTED]:~$ ls GHOSTING/
> hda1-fat32.000  hda1-fat32.001  hda5-ext3.000  hda6-ext3.000
> [EMAIL PROTECTED]:~$ du -ch GHOSTING/
> 5,1GGHOSTING/
> 5,1Gtotal
>
> i això està en gz !!!
>
> Per sort la cosa va bastant més ràpida alhora de restaurar les imatges.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: De GRUB i MBR ...

2006-09-02 Conversa Lluís Gras
> Hola,
> Per copiar tot el disc pots fer-ho directament amb el dd i també t'hi
> inclourà
> la MBR.

Si però la cosa és podria eternitzar perque el dd ho copiaria tot, espais
buits inclosos, i hores d'ara i tinc tres particions ( win98se + Linkat +
Debian ) més una de swap, vegis:

[EMAIL PROTECTED]:~$ ls GHOSTING/
hda1-fat32.000  hda1-fat32.001  hda5-ext3.000  hda6-ext3.000
[EMAIL PROTECTED]:~$ du -ch GHOSTING/
5,1GGHOSTING/
5,1Gtotal

i això està en gz !!!

Per sort la cosa va bastant més ràpida alhora de restaurar les imatges.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: De GRUB i MBR ...

2006-09-02 Conversa Manel Martínez de Arcos
Hola,
Per copiar tot el disc pots fer-ho directament amb el dd i també t'hi inclourà 
la MBR.
A Divendres 01 Setembre 2006 16:56, Lluís Gras va escriure:
> Bones !!!
>
> Ara que està a punt de començar el curs escolar i aprofitant que durant
> l'estiu m'he "radicalitzat" vull deixar d'emprar el magnific Ghost de
> Symantec i restaurar els equips de les aules emprant el partimage.
>
> Bé el cas és que estic confeccionant un petit script "ghostpc", llegeixis
> ghost pel cole, que em permet el següent:
>
>
> S'utilitza com ... ghostpc -SR/sr disc/particio-tipus_fitxers
> nom_o_ip_servidor
>
> Crea una imatge de totes les particions del disc dur mestre primari al
> servidor ns1
> ghostpc -S hda ns1
>
> Restaura una imatge de totes les particions del disc dur SATA desde el
> servidor 192.168.0.1
> ghostpc -R sda 192.168.0.1
>
> Crea una imatge de la partició hda1 al servidor ns1
> ghostpc -s hda1-fat32 ns1
>
> Restaura una imatge de la partició sda5 desde el servidor 192.168.0.1
> ghostpc -r sda5-ext3 192.168.0.1
>
> El cas és que la cosa funciona prou bé exceptuant el fet que quan faig una
> restauració de tot el disc, reescric el MBR emprant una còpia feta amb el
> dd ( dd if=/dev/$disc of=backup-$disc.mbr bs=512 count=1 ) durant una
> execució prèvia del ghostpc ( ghostpc -S hda ns1 ).
>
> El resultat és "sorprenent" en el sentit que per algun motiu el GRUB que
> surt després de la restauració no és el que en teoria hi havia al equip
> mòdel i dic jo que malgrat ho pugui solventar forçant la reinstal·lació
> del GRUB em semblava que restaurant el MBR previ ja n'hi havia prou.
>
> Si algú en sap alguna cosa li estaria molt agraït.



Re: De GRUB i MBR ...

2006-09-02 Conversa Lluís Gras
> Hola senyor !!!
>
> Em sembla que ja ho he trobat ... te a veure amb que el partimage en mode
> batch per defecte salva una còpia del MBR als fitxers d'imatge i
> segurament aquí hi tinc l'embolic. Del man partimage:
>
> -M, --nombr
> Don't create a backup of the MBR (Mast Boot Record) in the image file.
>
> Hores d'ara ho estic provant amb el portàtil per verificar-ho.
>
> Vinga ...
>
>
>

Confirmat, la cosa funciona correctament afegint la opció -M,
alternativament també es pot emprar partimage restmbr
fitxer_imatge_amb_el_MBR_correcte.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: De GRUB i MBR ...

2006-09-01 Conversa Orestes Mas


Lluís Gras wrote:
> Bones !!!
> 
> Ara que està a punt de començar el curs escolar i aprofitant que durant
> l'estiu m'he "radicalitzat" vull deixar d'emprar el magnific Ghost de
> Symantec i restaurar els equips de les aules emprant el partimage.
> 
> Bé el cas és que estic confeccionant un petit script "ghostpc", llegeixis
> ghost pel cole, que em permet el següent:
(...)
> 
> Restaura una imatge de la partició sda5 desde el servidor 192.168.0.1
> ghostpc -r sda5-ext3 192.168.0.1
> 
> El cas és que la cosa funciona prou bé exceptuant el fet que quan faig una
> restauració de tot el disc, reescric el MBR emprant una còpia feta amb el
> dd ( dd if=/dev/$disc of=backup-$disc.mbr bs=512 count=1 ) durant una
> execució prèvia del ghostpc ( ghostpc -S hda ns1 ).
> 
> El resultat és "sorprenent" en el sentit que per algun motiu el GRUB que
> surt després de la restauració no és el que en teoria hi havia al equip
> mòdel i dic jo que malgrat ho pugui solventar forçant la reinstal·lació
> del GRUB em semblava que restaurant el MBR previ ja n'hi havia prou.
> 
> Si algú en sap alguna cosa li estaria molt agraït.
> 

Jo no en sé massa del grub, però al llarg del temps he vist que consta de
diversos "stages" (3 com a mínim). És massa gran per caber en un sol
sector i,
per tant, et caldrà copiar alguna cosa més que el MBR.

Per si et serveix d'alguna cosa:

GRUB boot process

   1. The BIOS finds a bootable device (hard disk) and transfers control
to the master boot record (MBR, the first 512 bytes of the hard disk).
   2. The MBR contains GRUB stage 1. Given the small size of the MBR,
Stage 1 does little more than load the next stage of GRUB (which may
reside physically elsewhere on the disk). Stage 1 can either load stage
1.5, or it can load Stage 2 directly.
   3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard disk
immediately following the MBR. Stage 1.5 loads Stage 2.
   4. GRUB Stage 2 (loaded by Stage 1 or 1.5) receives control, and
displays to the user the GRUB boot menu (or if the menu is inaccessible,
drops the user to the GRUB prompt, where the user can manually specify
the boot parameters).
   5. GRUB loads the user-selected (or default) kernel into memory and
passes control on to the kernel. Alternatively chainloading is possible:
GRUB hands off control to another bootloader which then continues the
process of loading that kernel. The chainloading makes it possible to
boot operating systems that don't follow the conventions and have boot
processes of their own, for example, Microsoft Windows


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: De GRUB i MBR ...

2006-09-01 Conversa Lluís Gras
>> El resultat és "sorprenent" en el sentit que per algun motiu el GRUB que
>> surt després de la restauració no és el que en teoria hi havia al equip
>> mòdel i dic jo que malgrat ho pugui solventar forçant la reinstal·lació
>> del GRUB em semblava que restaurant el MBR previ ja n'hi havia prou.
>>
>> Si algú en sap alguna cosa li estaria molt agraït.
>>
>
> Jo no en sé massa del grub, però al llarg del temps he vist que consta de
> diversos "stages" (3 com a mínim). És massa gran per caber en un sol
> sector i,
> per tant, et caldrà copiar alguna cosa més que el MBR.
>
> Per si et serveix d'alguna cosa:
>
> GRUB boot process
>
>1. The BIOS finds a bootable device (hard disk) and transfers control
> to the master boot record (MBR, the first 512 bytes of the hard disk).
>2. The MBR contains GRUB stage 1. Given the small size of the MBR,
> Stage 1 does little more than load the next stage of GRUB (which may
> reside physically elsewhere on the disk). Stage 1 can either load stage
> 1.5, or it can load Stage 2 directly.
>3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard disk
> immediately following the MBR. Stage 1.5 loads Stage 2.
>4. GRUB Stage 2 (loaded by Stage 1 or 1.5) receives control, and
> displays to the user the GRUB boot menu (or if the menu is inaccessible,
> drops the user to the GRUB prompt, where the user can manually specify
> the boot parameters).
>5. GRUB loads the user-selected (or default) kernel into memory and
> passes control on to the kernel. Alternatively chainloading is possible:
> GRUB hands off control to another bootloader which then continues the
> process of loading that kernel. The chainloading makes it possible to
> boot operating systems that don't follow the conventions and have boot
> processes of their own, for example, Microsoft Windows
>
>

Hola senyor !!!

Em sembla que ja ho he trobat ... te a veure amb que el partimage en mode
batch per defecte salva una còpia del MBR als fitxers d'imatge i
segurament aquí hi tinc l'embolic. Del man partimage:

-M, --nombr
Don't create a backup of the MBR (Mast Boot Record) in the image file.

Hores d'ara ho estic provant amb el portàtil per verificar-ho.

Vinga ...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]