Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[SOLVED] How to create Live USB with persistant volume larger than 20 GB?

Post Reply
Torajima
Forum Novice
Forum  Novice
Posts: 8
Joined: Fri Dec 21, 2018 10:17 am

[SOLVED] How to create Live USB with persistant volume larger than 20 GB?

#1

Post by Torajima » Fri Dec 21, 2018 11:45 am

When I choose static persistence, the largest option is 20 GB.

I'd like around 100 GB of persistent data.

Thanks!
Last edited by Torajima on Sat Dec 22, 2018 12:34 pm, edited 1 time in total.

xali
Forum Regular
Forum Regular
Posts: 190
Joined: Wed Dec 28, 2016 6:14 am

Re: How to create Live USB with persistant volume larger than 20 GB?

#2

Post by xali » Fri Dec 21, 2018 12:07 pm

what i find convenient to do in such a case is to fully install the distro to the usb stick. which means that you will need two usb sticks. one for the simple live usb and one to install the distro to it. You can play with partitions later if you want exactly 100Gb.
i hope you will find that useful.

Torajima
Forum Novice
Forum  Novice
Posts: 8
Joined: Fri Dec 21, 2018 10:17 am

Re: How to create Live USB with persistant volume larger than 20 GB?

#3

Post by Torajima » Fri Dec 21, 2018 12:21 pm

Thanks for the reply.

For some reason, I was under the impression that the Live USB was better optimized for USB sticks. If that's not the case, I'll just do a full install.

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 9905
Joined: Wed Jul 12, 2006 1:42 am

Re: How to create Live USB with persistant volume larger than 20 GB?

#4

Post by Adrian » Fri Dec 21, 2018 12:35 pm

Why don't use use "Live-usb-storage" folder where you have access to the rest of the USB stick space?

Torajima
Forum Novice
Forum  Novice
Posts: 8
Joined: Fri Dec 21, 2018 10:17 am

Re: How to create Live USB with persistant volume larger than 20 GB?

#5

Post by Torajima » Fri Dec 21, 2018 12:43 pm

Adrian wrote:
Fri Dec 21, 2018 12:35 pm
Why don't use use "Live-usb-storage" folder where you have access to the rest of the USB stick space?
I considered this, but would rather have a larger persistent home folder.

User avatar
BitJam
Forum Veteran
Forum Veteran
Posts: 3276
Joined: Sat Aug 22, 2009 11:36 pm

Re: How to create Live USB with persistant volume larger than 20 GB?

#6

Post by BitJam » Fri Dec 21, 2018 6:08 pm

Assuming you're using a reasonable file system for the live-usb, if home persistence is disabled then run theses two commands:

Code: Select all

sudo fallocate --length 100G /live/boot-dev/antiX/homefs
sudo mkfs.ext4 -F /live/boot-dev/antiX/homefs
If home persistence is enabled then change the filename to homefs.new in both commands. The contents of the existing homefs will get copied over on the next boot that has home persistence enabled.

HTH
Will I cry when it's all over?
When I die will I see Heaven?

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3980
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to create Live USB with persistant volume larger than 20 GB?

#7

Post by fehlix » Fri Dec 21, 2018 6:20 pm

BitJam wrote:
Fri Dec 21, 2018 6:08 pm

Code: Select all

sudo fallocate --length 100G /live/boot-dev/antiX/homefs
sudo mkfs.ext4 -F /live/boot-dev/antiX/homefs
nice two liner - quick and smart :number1:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Torajima
Forum Novice
Forum  Novice
Posts: 8
Joined: Fri Dec 21, 2018 10:17 am

Re: How to create Live USB with persistant volume larger than 20 GB?

#8

Post by Torajima » Sat Dec 22, 2018 12:33 pm

Thank you, that worked perfectly!
BitJam wrote:
Fri Dec 21, 2018 6:08 pm
Assuming you're using a reasonable file system for the live-usb, if home persistence is disabled then run theses two commands:

Code: Select all

sudo fallocate --length 100G /live/boot-dev/antiX/homefs
sudo mkfs.ext4 -F /live/boot-dev/antiX/homefs
If home persistence is enabled then change the filename to homefs.new in both commands. The contents of the existing homefs will get copied over on the next boot that has home persistence enabled.

HTH

Post Reply

Return to “Installation”