- Get a usb drive. At least 8GB
- Format the drive as a FAT32 single partition with a MBR
-
Insert USB drive into Desktop Raspbian laptop. Copy the iso for Desktop Raspbian onto this machine.
-
Install gparted onto the laptop:
sudo apt install gparted
- Run
sudo gparted
and delete the existing partition. - Then create two partitions. The second should be at least 2.5GB, the firts can be whatever space remains. Note: the second partition will be the bootable one - Windows machines won't read the storage partition if it's second.
- Now for unetbootin. First install some stuff you'll need:
sudo apt install libqt4-dev
sudo apt install p7zip-full extlinux syslinux
- Mount the second partition on the USB drive:
mkdir p2
sudo mount /dev/sdc2 p2
- Then install netbootin:
mkdir unetbootin
cd unetbootin/
wget https://github.com/unetbootin/unetbootin/releases/download/661/unetbootin-source-661.tar.gz
tar zxvf unetbootin-source-661.tar.gz
sed -i '/^RESOURCES/d' unetbootin.pro
lupdate-qt4 unetbootin.pro
lrelease-qt4 unetbootin.pro
qmake-qt4
make
- Now run it:
sudo ./unetbootin
- Select the Desktop iso image and the second partition on the USB drive as shown.
- Once the unetbootin process has finished, edit the syslinux.cfg file. Delete most of the default entries except the "install" options. Add two new "persistence" options as shown.
default menu.c32
prompt 0
menu title Desktop Raspbian
timeout 100
label ubnentry2
menu label Run and ^reset persistence
kernel .linux /live/vmlinuz2
append initrd=/live/initrd2.img boot=live components quiet splash plymouth.ignore-serial-consoles persistence persistence-reset
label ubnentry3
menu label Run with ^persistence
kernel .linux /live/vmlinuz2
append initrd=/live/initrd2.img boot=live components quiet splash plymouth.ignore-serial-consoles persistence
label ubnentry4
menu label Run with^out persistence
kernel .linux /live/vmlinuz2
append initrd=/live/initrd2.img boot=live components quiet splash plymouth.ignore-serial-consoles
label ubnentry5
menu label ^Graphical install
kernel /install.amd/vmlinuz
append initrd=/install.amd/gtk/initrd.gz file=/cdrom/live/preseed.cfg locale=en_GB vga=788 --- quiet
label ubnentry6
menu label ^Install
kernel /install.amd/vmlinuz
append initrd=/install.amd/initrd.gz file=/cdrom/live/preseed.cfg locale=en_GB vga=788 --- quiet
label ubnentry7
menu label Install with ^speech synthesis
kernel /install.amd/vmlinuz
append initrd=/install.amd/gtk/initrd.gz file=/cdrom/live/preseed.cfg locale=en_GB vga=788 speakup.synth=soft --- quiet