Last active
December 14, 2015 02:59
-
-
Save fike/5017483 to your computer and use it in GitHub Desktop.
Syslinux Debian installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/ sr/lib/syslinux/mbr.bin of= /dev/sdb | |
syslinux /dev/sdb1 | |
mount /dev/sdb1 /mnt/pendrive | |
cp /usr/lib/syslinux/menu.c32 /mnt/pendrive | |
mkdir /mnt/pendrive/debian64 | |
mkdir /mnt/pendrive/rh64 | |
wget http://ftp.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/boot.img.gz | |
gunzip boot.img.gz | |
losetup /dev/loop0 boot.img | |
mkdir /mnt /temp | |
mount -o loop /dev/loop0 /mnt/temp | |
cp /mnt/temp/linux /mnt/pendrive/debian64 | |
cp /mnt/temp/initrd.gz /mnt/pendrive/debian64 | |
umount /mnt/temp | |
losetup -d /dev/loop0 | |
cat /mnt/pendrive/syslinux.cfg | |
DEFAULT menu.c32 | |
MENU TITLE Instalação Automatizada por pendrive | |
LABEL Debian Lenny | |
MENU LABEL Debian Lenny AMD 64 bits | |
KERNEL debian64/linux | |
APPEND linux initrd=debian64/initrd.gz priority=low vga= normal quiet – | |
LABEL Red Hat 5 Update 2 AMD64 | |
MENU LABEL Red Hat 5 Update 2 AMD 64 | |
KERNEL rh64/vmlinuz | |
APPEND linux load _ramdisk= 1 initrd=rh64/initrd.img | |
cp debian-testing -amd64- netinst. iso /mnt/pendrive | |
cp rhel-5 .2- server-x 86_64-dvd .iso /mnt/pendrive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment