On my 1 Gb PNY USB pendrive, after this procedure 7 megs are left free. It boots with the correct mint menu selection just like the DVD. This is not Persistent!!! Usually very useful for system maintenance, and has quick installs.
There Already are tutorials - This tutorial was made from the best ideas of each.
http://ubuntuforums.org/showthread.php?t=476302
http://www.pendrivelinux.com/2007/01/25 ... ubuntu-610
http://www.linuxmint.com/forum/viewtopi ... f6d8ac6d9c
https://help.ubuntu.com/community/Insta ... omUSBStick
http://ubuntuforums.org/showthread.php?t=476302
# Download into ~/usbboot
Code: Select all
mkdir ~/usbboot
cd ~/usbboot
wget -c http://www.terakin.de/LinuxMint-3.0-KDE-BETA-013.iso
wget -c http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.51.tar.gz
sudo apt-get -y install mtools syslinux
Code: Select all
cd ~/usbboot
tar -xf syslinux-3.51.tar.gz
Code: Select all
mkdir ~/usbboot/mount
Code: Select all
cd ~/usbboot
ls
# Mount ISOLinuxMint-3.0-KDE-BETA-013.iso
mount
syslinux-3.51
syslinux-3.51.tar.gz
Code: Select all
export ISOPATH=~/usbboot/LinuxMint-3.0-KDE-BETA-013.iso
sudo mount -t iso9660 $ISOPATH ~/usbboot/mount -o loop
Code: Select all
sudo fdisk -l >> ~/usbboot/fdev.txt
Code: Select all
sudo fdisk -l >> ~/usbboot/fdev2.txt
diff ~/usbboot/fdev.txt ~/usbboot/fdev2.txt
Look for something like /dev/sdc1 and use this to fill out the next command. USBPART is the shown device with partition number, like "/dev/sdc1". With USBDEV omit the trailing number. So it appears like "/dev/sdc".
Code: Select all
export USBDEV=/dev/sdc
export USBPART=/dev/sdc1
Code: Select all
sudo pumount $USBPART
this can be accomplished with many different utils such as qtparted, gparted... but you can always fall back on the terminal...
Code: Select all
sudo fdisk $USBDEV
p - Print Partition Table !!!Make sure this is the right DRIVE!!!
d - Delete partitions. If there two more more partitions, delete them all
n - New Partition
p - Primary Partition
1 - Partition Number 1
<Enter> - default start
<Enter> - default end
t - Change Partition System ID to Fat 16
6 - Hex for Fat 16
a - Make Partition Active
1 - Choose your first partition
p - Print Partition, see what changed
w - write to partition and quit
# Format fat16 and install boot loader
Code: Select all
sudo mkfs.vfat -F 16 -n usb $USBPART
cd ~/usbboot/syslinux-3.51/unix
sudo ./syslinux -sf $USBPART
Code: Select all
sudo umount $USBPART
sudo mkdir /media/usb
sudo mount -t vfat -rw $USBPART /media/usb
Code: Select all
sudo cp -rv ~/usbboot/mount/.[a-zA-Z0-9]* /media/usb
sudo cp -rv ~/usbboot/mount/[a-zA-Z0-9]* /media/usb
Code: Select all
sudo mv /media/usb/isolinux/* /media/usb/
sudo rm -r /media/usb/isolinux
Code: Select all
sudo cp isolinux.bin syslinux.bin
sudo cp isolinux.cfg syslinux.cfg
sudo cp isolinux.txt syslinux.txt