script to rescue/backup a system and restore from a cd with initramfs 
Searching for a rescue system that creates a bootable CD to restore my system i found mkcdrec. Because sometimes things (mkcdrec/debian/ubuntu) changes and i had to test and patch for new mkcdrec versions, so i droped it.

Then i started to make a live CD with debian-live and make my install script by myself. I also dropped it (long boottime and had too much to hack to let it work like i wanted).

Now i had the idea to build my own script that tar's my system and builds a bootable cd. I liked the idea of initramfs to extend it like i will and it boots much faster. The only drawback is that all things are hardcoded and have to be changed for every system i backup. But its only a single script: Read More...

[ view entry ] ( 1050 views )   |  print article
qemu 
#> sudo apt-get install kqemu-source kqemu-common build-essential
#> sudo module-assistant prepare kqemu
#> sudo module-assistant auto-install kqemu

/etc/udev/rules.d/60-kqemu.rules:
KERNEL=="kqemu", NAME="%k", MODE="0660", GROUP="kqemu"

#> sudo addgroup --system kqemu
#> sudo adduser USERNAME kqemu
#> modprobe kqemu

create a qemu image:
#> qemu-img create -f qcow2 root.qcow2 20G

install with a cd:
#> qemu -hda root.qcow2 -cdrom cd.iso -boot d

boot installed system:
#> qemu -hda root.qcow2


[ view entry ] ( 684 views )   |  print article
fast sftp 
sftp -o Ciphers=blowfish-cbc USER@HOST

[ view entry ] ( 761 views )   |  print article
Grub Error 2: Bad file or directory type 
grub prior 0.97 only supports a inode size of 128 Bytes

To format a partition set inode size of 128 Bytes:

#> mkfs.ext3 -I 128 /dev/sda6

[ view entry ] ( 879 views )   |  print article
ugly rename hack 
find -name 'Pic*' -exec sh -c 'mv $1 "$(echo $1 | sed s/\\./_/g | sed s/^_/\\./g | sed s/_-//g)"' {} {} \;

[ view entry ] ( 961 views )   |  print article

<<First <Back | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Next> Last>>