The New Cult of Dead Cow

Porque el mundo es de los malditos

Como crear una ISO booteable ...

0 Commentarios



dd if=/dev/zero of=file.img bs=512 count=2880
mke2fs file.img
mount -o loop file.img /mnt

mkdir -p /mnt/boot/grub
cp /lib/grub/i386-pc/stage? /mnt/boot/grub

cp kernel.bin /mnt/boot/kernel.bin


nano /mnt/boot/grub/menu.lst

root (fd0)
kernel /boot/kernel.bin
boot


grub --device-map=/dev/null

grub> device (fd0) file.img
grub> root (fd0)
grub> setup(fd0)
grub> quit

Y ahora, probamos si funciona:

qemu -fda file.img -boot a




Technorati Tags: , , , , ,

Written by necudeco

Leave a Reply