[Tutorial] Live usb with persistence over 4GB

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
User avatar
pbear
Level 5
Level 5
Posts: 521
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: [Tutorial] Live usb with persistence over 4GB

Post by pbear » Wed Jan 24, 2018 7:57 pm

This came up in a couple of threads recently, so I decided to give mkUSB a whirl. Having done it both ways, I'd say they're pretty similar in terms of difficulty. And both work. On the whole, though, I agree with Spearmint2 that mkUSB is a better choice. Was developed by senior Ubuntu guru sudodus (Nio Wiklund) to do precisely this task and is now on version 12 ("dus"). Also, unlike MultiSystem, mkUSB can be installed to a live session, making this the only feasible method of which I'm aware to create a persistent Linux drive greater than 4 GB with a Windows machine.

Anyhoo, Linux is all about choice. As this is a tutorial, I thought it would be helpful to jot down the steps. Here is the path I found works best.

1. Install app. There are several options, but this is adequate for a single user looking for the current version:

Code: Select all

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb usb-pack-efi
2. Install to USB. Start app from Menu: System Tools (or type mkusb in Terminal), then select option “d” (for 12). Enter sudo password. Acknowledge overwrite warning. Select install, then ‘Persistent live’. Navigate to select source ISO; select target drive from list; “Use defaults” for drive settings. Select % of remaining space for persistence (I use 95%). Read warnings. Double check installation target. Hit “Go”. Confirm proceed even though not installing Ubuntu. For a nice walkthrough with screenshots, see answer by user Harsh halfway down this askubuntu page, starting with “I would like to expand on the answer … “.

3. Cleanup. The reason I only use 95% of the remaining space for the persistent partition is that I want to leave room for wear leveling. Quit mkUSB, open GParted and delete the usbdata partition on the USB drive (space becomes unallocated). Also, sudodus doesn't mention anything about not mounting the persistent partition, but I follow Laurent85's advice and disable automount for an mkUSB persistent drive (for "how to" in Mate, see here).

That should work for most folks. For more information, see official website (same link as Spearmint2 gave above), especially the discussion of persistence, the Quick Start Manual, and an omnibus thread on the app sudodus maintains on the Ubuntu Forum.

BTW, a large persistent drive has useful applications, but I still think the better solution for most situations is full install to USB hard drive.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

69Rixter
Level 3
Level 3
Posts: 174
Joined: Sun Aug 31, 2014 3:20 pm
Location: Central Ohio

Re: [Tutorial] Live usb with persistence over 4GB

Post by 69Rixter » Sat May 19, 2018 8:35 pm

I already have LM18.3x on pendrive. Where do I start, in the tutorial, to put persistence on the flashdrive? Or..can I? [Sandisk Cruiser 8Gb-2.0] running "live" Comp-- Dell OptiPlex 7040 w/ Win7 O.S.

:twisted: Rick

User avatar
pcfan5
Level 4
Level 4
Posts: 236
Joined: Tue Sep 06, 2016 10:57 am
Location: antartica

Re: [Tutorial] Live usb with persistence over 4GB

Post by pcfan5 » Sun May 20, 2018 12:09 am

69Rixter wrote:
Sat May 19, 2018 8:35 pm
I already have LM18.3x on pendrive. Where do I start, in the tutorial, to put persistence on the flashdrive? Or..can I? [Sandisk Cruiser 8Gb-2.0] running "live" Comp-- Dell OptiPlex 7040 w/ Win7 O.S.

:twisted: Rick
Hello, check this viewtopic.php?f=42&t=229086#p1397258,
if you got your LM 18.3 with multisystem you are able to open that app and continue from here (this is taken from the link above) :

Code: Select all

"Create Live usb with persistence:
insert the usb flash drive, Linux Mint should mount available partitions automatically. If you configured Linux Mint to handle removeable drives differently then mount the FAT32 partition (click on said partition).
launch Multisystem and select usb flash drive partition to use. On first launch Multisystem will initialize the partition, follow the steps suggested regarding the label and grub.
from main screen install Linux Mint iso image
click the eye icon to make appear advanced options
left click linuxmint-18-cinnamon-64bit.iso, then press the pen icon to edit boot options.
Left click iso image entry and enter option persistent, press Backup button to save boot options.
Note that for an unknown reason when returning to boot options persistent does not appear but was properly saved.

You can check if necessary:
select Menus tab > GRUB settings > grub.cfg > search for word persistent 
Should appear line starting with linux (loop)/casper/vmlinuz persistent...
Done."

69Rixter
Level 3
Level 3
Posts: 174
Joined: Sun Aug 31, 2014 3:20 pm
Location: Central Ohio

Re: [Tutorial] Live usb with persistence over 4GB

Post by 69Rixter » Thu May 24, 2018 3:51 pm

RE: Everyone Replying To This Thread

Appreciate all the info! A lot to digest but that's what's it's all about. Especially thankful none of you went "off" and started ranting about how STUPID it is to want a portable Linux O.S. on a pendrive. Look around at some of the other forums and see the rants some folks have posted. I've gotten a lot of censure for "informing those unenlightened" plebes of their immaturity and ignorance. So, KUDOS to all for "gabbing" this "bull-by-the-horns". My only question now is whether to install the O.S. on a flashdrive, or use the method prescribed in this thread. Leaning towards the "live" w/ persistence.

Keep Up The Good Work

User avatar
Spearmint2
Level 15
Level 15
Posts: 5665
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: [Tutorial] Live usb with persistence over 4GB

Post by Spearmint2 » Thu May 24, 2018 4:13 pm

Don't know why anyone would think it's stupid, if the USB flashdrive is a fast one. You can pull it out, keep it elsewhere, and also use on any other computer you need to access, even if some things on other computer just might not work (wifi, touchpad, some graphics)
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

Post Reply

Return to “Tutorials”