(2008-04-24) rescue-bootcd
This commit is contained in:
BIN
CD/boot/bzimage
BIN
CD/boot/bzimage
Binary file not shown.
Binary file not shown.
@@ -5,4 +5,4 @@ mv rootfs.gz CD/boot/rootfs.gz
|
||||
|
||||
rdev CD/boot/bzimage /dev/ram0
|
||||
|
||||
mkisofs -o /mnt/sda1/bootcd.iso -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table CD
|
||||
mkisofs -o bootcd.iso -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table CD
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
|
||||
|
||||
|
||||
|
||||
mkisofs -o bootcd.iso -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table CD
|
||||
|
||||
build_all.sh
|
||||
|
||||
|
||||
|
||||
cdrecord dev=ATA:1,0,0 driveropts=burnfree blank=fast -eject -v bootcd.iso
|
||||
|
||||
|
||||
growisofs -dvd-compat -Z /dev/sr0=bootcd.iso
|
||||
|
||||
|
||||
34
leeme.txt
34
leeme.txt
@@ -12,17 +12,17 @@ Kable's Mighty HD Restoration CD:
|
||||
-Busybox
|
||||
-Partimage
|
||||
|
||||
Esto utiliza imagenes de partimage
|
||||
Esto utiliza imagenes de partimage
|
||||
Poniendo las imagenes en la raiz de la imagen
|
||||
|
||||
|
||||
- Inicio es /linuxrc
|
||||
/etc/rc.sysinit
|
||||
|
||||
- Ejecucion normal es /dodeeds.sh
|
||||
- La restauracion es /restore.sh
|
||||
- Inicio es rootfs/linuxrc
|
||||
rootfs/etc/rc.sysinit
|
||||
|
||||
- El apagado es /etc/rc.sysuninit
|
||||
- Ejecucion normal es rootfs/dodeeds.sh
|
||||
- La restauracion es rootfs/restore.sh
|
||||
|
||||
- El apagado es rootfs/etc/rc.sysuninit
|
||||
|
||||
|
||||
|
||||
@@ -30,3 +30,23 @@ Poniendo las imagenes en la raiz de la imagen
|
||||
- NOTA:
|
||||
Aunque el codigo de partimage parece que monta y desmonta volunes,
|
||||
NO parece cierto, quizas sea necesaria una entrada en fstab
|
||||
|
||||
|
||||
|
||||
|
||||
#############
|
||||
### PASOS ###
|
||||
#############
|
||||
1º: Revisar el nombre de la imagen establecido en "rootfs/restore.sh"
|
||||
2º: modificar la particion destino
|
||||
"/dev/ide..." para discos duros ATA
|
||||
"/dev/scsi..." para discos duros SCSI/SATA
|
||||
3º: Copiar imagenes al directorio "CD"
|
||||
4º: Contruir la imagen, ejecutar "./build_all.sh"
|
||||
5º: Grabar el CD/DVD:
|
||||
Para CD:
|
||||
cdrecord dev=ATA:1,0,0 driveropts=burnfree blank=fast -eject -v bootcd.iso
|
||||
Para DVD:
|
||||
growisofs -dvd-compat -Z /dev/sr0=bootcd.iso
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
mount_cd ()
|
||||
mount_cd ()
|
||||
{
|
||||
for i in /dev/cdroms/*;
|
||||
for i in /dev/cdroms/*;
|
||||
do
|
||||
if mount -t iso9660 $i /mnt/cdrom;
|
||||
if mount -t iso9660 $i /mnt/cdrom;
|
||||
then
|
||||
if test -f /mnt/cdrom/bootcd
|
||||
then
|
||||
@@ -28,10 +28,10 @@ retval=$?
|
||||
if test $retval -eq 0 ; then
|
||||
# restaurar
|
||||
echo "Restaurar."
|
||||
partimage -b restore /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/cdrom/winxp.000
|
||||
partimage -b restmbr /mnt/cdrom/winxp.000
|
||||
partimage -b restore /dev/ide/host0/bus0/target0/lun0/part1 /mnt/cdrom/acer.000
|
||||
partimage -b restmbr /mnt/cdrom/acer.000
|
||||
|
||||
# desmontar
|
||||
# desmontar
|
||||
umount /mnt/cdrom
|
||||
else
|
||||
echo "No se encuentra el CD"
|
||||
|
||||
Reference in New Issue
Block a user