If script is running to install on usb the 32 bit iso image then partitionnumber=4 created with other three null partitions sdb1, sdb2, sdb3 (i assume that usb is /dev/sdb device)
And has to be like this otherwise usb is not bootable and readable at all. This has been checked.
In this case copy the live system on /dev/sdb4 for example
If script is running to install the 64bit iso then partitionnumber=1
In this case copy the live system on /dev/sdb1 for example
In both cases i create a persistent file during installation.
then i delete the persistent file and recreated
Code: Select all
sudo sh install_on_usb.sh --persistent 32 /dev/sdb
or
Code: Select all
sudo sh install_on_usb.sh --persistent 64 /dev/sdb
In both cases persistent created ok. No errors.
I found a typo which has nothing to do with the persistent. I just umount the device since will be mounted later.
So i changed lines 148, 149 to
Code: Select all
flag=*
for n in $installmedia$flag ; do umount $n > /dev/null 2>&1; done
But i say if these lines commented persistent created fine.
The new script is
install_on_usb.sh
how i do it
Code: Select all
sudo mkdir /tmp/iso
sudo mount -o loop /tmp/salixlive64-mate-14.1-beta2.iso /tmp/iso
or
Code: Select all
sudo mount -o loop /tmp/salixlive-mate-14.1-beta2.iso /tmp/iso
Code: Select all
cd /tmp/iso/boot
sudo sh install_on_usb.sh --usb /tmp/salixlive64-mate-14.1-beta2.iso /dev/sdb
or
Code: Select all
sudo sh install_on_usb.sh --usb /tmp/salixlive-mate-14.1-beta2.iso /dev/sdb
If someone copy the script to ~/ folder for example and run the script from there it is also working.
Edit: After i install in usb on 64 bit and create a persistent file, booted with usb and typed changes=persistent on boot line under the menu.
After bootted on mate desktop, set up WiFi and installed multimedia codecs. Played some videos on YouTube with Firefox and played also some mp3 files. Rebooted ( i have to type changes=persistent, for 64 bit this has to be done on every boot) and here i am writing this from salixlive64-mate running from usb.