Friday, March 28, 2008

Booting a linux kernel in vesa framebuffer mode

Useful when you want to run graphic apps using FB instead of X (like qemu.)

Add vga=0xnnn to the kernel boot options. The valid modes are listed in linux/Documentation/fb/vesafb.txt.

    | 640x480  800x600  1024x768 1280x1024
----+-------------------------------------
256 | 0x301 0x303 0x305 0x307
32k | 0x310 0x313 0x316 0x319
64k | 0x311 0x314 0x317 0x31A
16M | 0x312 0x315 0x318 0x31B

Monday, March 24, 2008

Linux filesystem cloning

Using rsync. The resulting filesystem booted but didn't allow logging in, probably some permissions or ownership info got lost in translation:

http://www.seismo.ethz.ch/linux/rsync.html



Using nc and tar, didn't work out too well (it was interrupted by 'unexpected EOF' messages):

http://wiki.clug.org.za/wiki/How_do_I_clone_my_disks_with_Linux%3F




Using dump and ssh. This one does the trick:

http://tldp.org/linuxfocus/English/Archives/lf-2005_03-0370.pdf

Summarizing:

mount /dev/xxx /mnt
cd /mnt
ssh sourcePC 'dump −0 −f − /' | restore −r −f −