You can add an extra repository to include -+mkusb dus+- (__Do USB Stuff__), which will allow you to create boot usb disks with persistence of changes in a reliable way for recent Ubuntu distros such as 16.04 LTS and newer. In such distros the default traditional methods such as USB Disk Creator or UnetBootIn no longer work in all cases as they did with earlier Ubuntu versions.
Derived from: https://help.ubuntu.com/community/mkusb
{CODE(colors="shell")}
sudo add-apt-repository ppa:mkusb/ppa # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi
{CODE}
And system for a tweaked version of LXLE 16.04.2 (32 bits; 1-disk-fits-all-computers approach):
https://help.ubuntu.com/community/mkusb/persistent/LXLE
But there are many other pre-built images, such as Lubuntu 16.04 32bits and 64 bits:
https://help.ubuntu.com/community/mkusb/persistent
https://help.ubuntu.com/community/mkusb/persistent/lubuntu
* Get a 16Gb USB disk
* Make two partitions
+ leave 4Mb of free space at the beggining of usb disk
## ~8.5Gb ext4 or ext3
## ~7.5Gb ntfs
* uncompress slax.iso in your linux disk (with -+isomaster+- for instance)
* copy your slax folder to your usb ext4 partition
* run as root the file in your usb ext4 partition: -+sudo bash ./slax/boot/bootinst.sh+- to make your usb bootable
* shutdown your computer, and boot it again this time from your usb stick. Slax should boot
* make your desired changes following guidelines on slax.org website
* change keyboard by hand tweaking a file in the persistent changes folder
** Edit this file -+/root/.fluxbox/startup+- and add there near the top a line such as
++ {CODE()}
setxkbmap es
{CODE}
* reboot to check that your changes were kept as desired
* clone your usbdisk (with partitions and all) with dd.
** find our your usb disk device name (sdc in my case). you can use command -+sudo lsblk+- or -+sudo fdisk -l+-
** make image with dd. Example:
++ {CODE()}
sudo dd if=/dev/sdc of=/media/xavi/mollero_ext4/tmp/backup_slaxomdr.img bs=4M status=progress
{CODE}
** clone back over another usb with dd again (or theoretically with a dd GUI, but gdiskdump fails for me on Kubuntu 16.04)
++To restore the image to another USB drive just invert the process. Just make sure that the new USB drive (/dev/sdd in this example) is as big or bigger than the original one
++ {CODE()}
sudo dd if=/media/xavi/mollero_ext4/tmp/backup_slaxomdr.img of=/dev/sdd bs=4M status=progress
{CODE}