Goal:
- Given a USB stick.
- Be able to boot a Linux distribution.
- Be able to view a separate partition.
-
Have Windows not be confused about the Linux partition.
Instructions taken from Arch Linux's advice. (Original source)
See also:
1) Download an Arch Linux ISO. I grabbed the dual architecture one.
2) Take a USB stick and partition it so that partition one will be fat32 (type 0b
) and partition two will be large enough for the ISO you'll be copying into it. For a CD-sized ISO, 705MB worked for me.
The second partition must be made bootable.
You can make a third or more additional partitions if you wish.
3) Edit the variables at the top of this script and then run it as root. Be sure you know what you're doing as this can be dangerous.
(tune2fs)
disk="sdd" iso="archlinux-2010.05-core-dual.iso" disk=/dev/$disk echo " * Setting up partition one (Fat32)." \mkfs.vfat -n SOMELABEL "$disk"1 echo " * Setting up partition two (ext2)." \mkfs.ext2 "$disk"2 \tune2fs -i0 -c0 -m0 "$disk"2 \e2label "$disk"2 ARCH_201005 \echo " * Copying the contents of the ISO.." \mkdir -p /mnt/{archiso,usbboot} \mount -o loop,ro $iso /mnt/archiso \mount "$disk"2 /mnt/usbboot \cp --archive /mnt/archiso/* /mnt/usbboot/ \echo ".. done" \echo " * Cleaning up." \umount /mnt/archiso \rm /mnt/usbboot/boot/isolinux/isolinux.bin \mv /mnt/usbboot/boot/isolinux/isolinux.cfg /mnt/usbboot/boot/isolinux/extlinux.conf \extlinux --install /mnt/usbboot/boot/isolinux/ \umount /mnt/usbboot \rmdir -p /mnt/{archiso,usbboot} \echo " * Finished."
When I was testing, isolinux was already installed on Ubuntu.
Installing syslinux on Arch is done with pacman -S syslinux
4) Boot from the USB stick. When I first booted, this is what I saw:
Unknown keyword in configuration file: IPAPPEND Unknown keyword in configuration file: IPAPPEND vesamenu.c32: not a COM32R image boot:
4) Press tab
to see a list of bootup methods. Type in one of the listed methods. For example, arch64
worked for me.
Last updated 2020-12-29 at 02:18:08