Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEVICE=/dev/sda
- VOLUME=MultBootUSB
- ROOT=/mnt/usb
- mount | grep -q ${DEVICE} && exit 1
- dd if=/dev/zero of=${DEVICE} bs=512 count=1
- # ggf doch fdisk mit defaults, prim 1, typ c NIEMALS a !!!!!!
- # echo ",,c," | sfdisk ${DEVICE}
- parted ${DEVICE} -- mklabel msdos mkpart primary fat32 2 -1s
- # check label, Remaining 4095 unallocated 512-byte sectors
- mkfs.vfat -F 32 -n ${VOLUME} ${DEVICE}1
- mount ${DEVICE}1 ${ROOT}
- # grub 0.97 kennt kein loopback !
- grub-install --no-floppy --root-directory=${ROOT} ${DEVICE}
- cat << EOF > ${ROOT}/boot/grub/menu.lst
- default 0
- timeout 10
- color cyan/blue white/blue
- title Ubuntu, memtest86+
- root (hd0,0)
- kernel /boot/memtest86+.bin
- EOF
- # ubuntus memtest86+.bin nach ${ROOT}/boot/memtest86+.bin
- # der memtest aus knoppix isolinux geht net
- umount ${DEVICE}1
- # make backups
- tar cvzf usb.tgz -C ${ROOT} boot/grub
- dd if=${DEVICE} bs=512 count=1 of=u_mbr
- dd if=${DEVICE}1 bs=512 count=1 of=u_bs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement