LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-23-2015, 02:42 PM   #1
HackyFooty
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Rep: Reputation: Disabled
Persistent USB greater than 4gb


Salutations,

I'm trying to run a live usb system with a persistent volume greater than 4gb. If I use pendrivelinux , some distros give me the option to add a 4gb persistent casper file. The problem is that I can't go higher than that.

I know that Tails OS does have a script to do this once you install it on a usb drive but I don't think the persistent volume saves desktop settings and changes.

I've tried with Debian, Elementary and Mint. I'm posting on Debian sub-forum because my ideal distro would be debian or mostly-debian distro (like crunchbang).

The problem that I encounter and the tutorials I've read say that the proper procedure is to create a 2nd partition (ext2, ext3 or ext4) and then boot the system using the 2nd partition as the persistent volume. The partition is supposed to be labelled casper-rw.

When I do try to boot up, I either get a black screen or it boots without the persistent volume.

My ideal live usb distro would be a minimal Debian live usb with persistent volume so I can add whatever I want to it.

Any help with this? The existing answers and tutorials I've read haven't been of any help.

This is my flash drive
 
Old 11-23-2015, 04:09 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Have you read the link below?

http://askubuntu.com/questions/39748...-more-than-4gb

The standard method is to just create the Live CD on a flash drive. After booting it to test, boot another system that has GParted on it and shrink the partition on which you have the Live CD to a little larger than the actual filesystem data, then create another partition and format it ext2, 3 or 4 and for Ubuntu/Mint etc., name it casper-rw. I don't use Debian so I'm not sure the casper-rw will work. Some Debian user might be able to tell you.
 
Old 11-23-2015, 04:30 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
After reading those articles it seems they key component is labeling the partition as casper-rw. It doesn't seem to matter what filesystem format you choose so long as it supports >4GB. If you need that persistent filesystem accessible from a wide variety of OS then choose a widely supported FS like exFAT (which supports 64GB partitions and is rw in all major operating systems). Otherwise, go with your preference. Any partition tool should work e.g. Gparted or parted.

Since that's the case it should work just fine with Debian. I'll play with it myself on a 32GB flash drive.

Last edited by sag47; 11-23-2015 at 08:40 PM.
 
Old 11-23-2015, 06:43 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Quote:
It doesn't seem to matter what filesystem format you choose so long as it supports <4GB
I'd have to disagree with that as far as using it for persistence, at least according to the Ubuntu site below under Creating casper-rw filesystem. Post back your results if you try it on Debian.

Quote:
NOTE: This example uses the ext3 file system, but almost any file system should work. Among the file systems which won't work are VFAT and NTFS
https://help.ubuntu.com/community/LiveCD/Persistence
 
Old 11-23-2015, 09:04 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Why are you still using this setup? Just install the system to the usb and you can run a real install.
 
Old 11-24-2015, 08:41 AM   #6
HackyFooty
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Why are you still using this setup? Just install the system to the usb and you can run a real install.
I want to use the usb on multiple computers.

I have installed OS's on flash drives but it's a hinder when I try to use the flash drive on different computers with different hardware.
 
Old 11-24-2015, 01:45 PM   #7
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by jefro View Post
Why are you still using this setup? Just install the system to the usb and you can run a real install.
Why run a real install when portability is needed? Live takes up far less space on a USB stick, leaving more room for persistence.
 
Old 11-28-2015, 06:26 AM   #8
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 93

Rep: Reputation: 44
http://cosmolinux.no-ip.org/raconetl...rsistence.html
I did it in this way, only took the Debian 8.1 and put it on a 8 GB stick.
Suppose it would make a 4 GB partition (can't remember if it occurred me..) then take QParted and adjust the size using this partition tool.
I tried the stick on 2 PC's, works perfectly.
Use it as a spare "disk" to boot our data server when the boot disk has a problem; webdav/Apache/SSH are also installed and every works as if it was the original hard disk... Settings are persistent as it should be.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: With greater permissions, comes greater responsibility LXer Syndicated Linux News 0 02-20-2014 03:11 PM
Will Deleting 70-persistent-cd.rules and 70-persistent-net.rules Work As a "Live USB" Konphine Linux - General 1 10-09-2011 03:55 PM
Ubuntu 9.10 will not copy to usb drive anything more then 4GB thedoctor Linux - Newbie 9 03-21-2010 11:55 AM
Problem seeing a 4Gb SD card on USB Greebstreebling Linux - Hardware 3 11-15-2008 03:26 PM
UNZIP of a file greater than 4GB FAILED on AIX 5.2 ! aqeel786 AIX 3 11-24-2006 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration