LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2014, 08:35 AM   #1
eatup
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Rep: Reputation: Disabled
Running Linux off USB. How to save files to USB?


I'm running Linux Mint live distro off a USB drive. How do I save files to the USB drive for later use? (PS, I didn't allocate any space for "persistence" when creating the bootable USB from ISO. If I recreate the USB with "persistence", will Mint load newly installed programs the next time it boots?)

Last edited by eatup; 04-13-2014 at 08:36 AM.
 
Old 04-13-2014, 08:44 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
I don't have much experience with casper, but if you have enough room left over on the drive, try creating a file called casper-rw (I think it's called) in the root directory of the USB drive. Add "persistent" to the kernel boot command line.

Other options:

1. Recreate the drive, saving room for persistence (probably your easiest).
2. Create an additional partition on the drive, and save files to that partition before you exit.
3. Create an additional partition and bind mount it to your home directory. This would have to be done every time you boot, and can be a PITA.

Casper makes me appreciate Debian's persistence. Create a partition, label it persistence, add a .conf and done. It also provides more control.
 
Old 04-13-2014, 10:03 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Creating the bootable flash with unetbootin or pendrivelinux and adding persistence would probably be easiest.

You could also create an additional partition on the flash for persistence. From a GParted CD or a Linux system which contains GParted, open gparted and resize the first partition to just over the iso file size, create a second ext2 partition with the rest of the flash and make sure the Label is casper-rw. Click the partition to highlight it in the main GParted window, click on the Partition tab and then click Label and enter casper-rw.
 
Old 04-13-2014, 10:23 AM   #4
eatup
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
I'm running Linux Mint. Recreated the USB with persistence. How do I mount or access the persistent part? Tried saving a file in Documents. I was gone when I rebooted...
 
Old 04-13-2014, 10:25 AM   #5
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
How did you do it? With unetbootin, it should have been done automatically, but make sure that "persistent" is included on the kernel command line at boot (highlight the selection, press Tab, add it if necessary).
 
Old 04-13-2014, 10:28 AM   #6
eatup
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
^ It sucks to have to type that on every boot. Is there a way to permanently add persistent?

Last edited by eatup; 04-13-2014 at 10:32 AM.
 
Old 04-14-2014, 08:08 AM   #7
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
Yeah... I don't remember which bootloader unetbootin uses, I think it's syslinux (?).

Look at the files in /boot/syslinux on the USB drive. The files you're interested in end in .cfg, check syslinux.cfg then look for something like live.cfg. You're looking for a section that starts with the menu entry you select to boot the live system; so if you choose "Linux Mint", look for a line similar to "label Linux Mint", etc.. Now, find the first line following that starts with "append" and at the end of that line, add "persistent" to the end. Save, and boot.
 
Old 04-14-2014, 11:35 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
A more detailed explanation of what I suggested in my last post is at the link below. It is at the Ubuntu site but applies equally to Mint. You need to post a little more detail on how you are trying to accomplish this. I've used this on a number of different Ubuntu derivatives including Mint and it works.

https://wiki.ubuntu.com/LiveUsbPendrivePersistent
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux lite on usb stick does not save sattings or anything. Hartsa71 Linux - Newbie 3 02-20-2014 01:02 PM
why if I start ubuntu from a usb and I can't save more files although I have space al13fa Linux - Newbie 3 12-02-2011 05:50 PM
[SOLVED] why can't I save a download on a usb stick - have linpus linux lite miramarcos Linux - Newbie 2 10-18-2011 11:30 AM
How to save preferences on Linux Ubuntu live USB mikiefitz456 Linux - Newbie 2 10-17-2009 09:52 AM
why when I try to save in USB(with liveusb-creator) the Fedora 9 linux,... gginis Linux - Software 3 06-21-2008 04:39 PM


All times are GMT -5. The time now is 06:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration