3

I would like to create an Ubuntu live usb with persistence. With Linux Tails it was working well for me without problem but for Ubuntu and Mint I have some problems.

I tried to use rufus, unetbootlin and so on from Windows and mkusb from Linux.I always ended up with the following:

I have a casper-rw partition which is not writable after boot by default (after chmod777 it is writeable). When I am booting in grub I never see persistence in the parameter list (on partition 4 -  see partition description little later). I tried to add it there but system become unstable and haven't saved any changes I made like it is a live boot.

Last time I used mkusb. It looks that everything went OK (there were no errors in the console). I see new2 boot options in the BIOS.

bios picture

If I choose the partition 3 than it does nothing, only black screen and nothing happens. If I boot with the partition 4 than I can see a "usbboot" partition as partition 3. On that I see a grub.cfg which looks good, there is persistence and so on in the file. 

Gparted info about pendrive

If I choose the partition 4 for boot than it boots without any persistent (looks like this is the live usb image)

Can you please help me to fix this issue?

Do I have to activate persistence storage somehow like in the TAILS Linux? If you need any further details please let me know.

Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83
  • 1
  • Can you boot the computer from a live-only USB pendrive (made by a tool you mention? A persistent live USB pendrive made by mkusb should boot with the same settings in your UEFI/BIOS menus; 2.You need not tweak Ubuntu or Mint in the USB pendrive except if you have some HP computers, which are not willing to boot from grub with a GUID partition table (gpt). If that is the case, select MSDOS partition table, in one of the windows of mkusb; 3. Have you checked with md5sum that the iso file is correct (no error during the download)? 4. Which versions of Ubuntu and Mint are you trying?
  • – sudodus Sep 22 '19 at 15:53
  • 1
    Do not choose a partition for booting, but the drive or simply USB, whatever can be selected in your UEFI/BIOS system. See also this link – sudodus Sep 22 '19 at 15:57
  • 1
    I have never had to modify a mkusb Persistent install to make it work. A UNetbootin or Rufus install can be made Persistent with partitions as shown thus: https://ubuntuforums.org/showthread.php?t=2426728&p=13888346#post13888346 . A Persistece file, (4GB max), can be added to Rufus or UNetbootin thus: https://askubuntu.com/questions/1126145/can-i-convert-a-live-ubuntu-usb-to-one-with-persistent-memory/1126305#1126305 . Have you considered a Full install to USB? – C.S.Cameron Sep 22 '19 at 16:42
  • @sudodus: Yes boot to live is working. I want to boot it on an Alfawise T1 mini pc. Maybe the GPT could be a problem for the mashine. I tested the same pendrive in my normal pc and i got the "good" grub menu with persistent menu item but the boot was not working after that. I will try the MSDOS partition table in mkusb thanks for idea.I haven't chacked the md5sum yet. I tried the newest version from ubuntu and mint as well. – user998456 Sep 22 '19 at 18:42
  • @C.S.Camero: Yes i tried full install (only with MINT ) as well. I booted the mashine from another usb. It took ca 10 hours. I installed that from an USB2 pendrive to a USB3 kingston. The boot was not working (it changed the boot sector on the main ssd which i can't remove from the mashine so i gave it up for a while) – user998456 Sep 22 '19 at 18:48
  • Thanks for the details :-) Boot to live is working, and I checked the specs of the computer. Things should work with persistence by mkusb too with all current Ubuntu versions. But it is very important that you unmount all partitions of the drive before unplugging This will flush the write buffers. This means also that when you shut down or reboot, you must wait until the process has finished. Otherwise the file system in the partition of persistence casper-rw can get corrupted, and the drive stops working. – sudodus Sep 22 '19 at 18:54