LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-03-2012, 01:48 PM   #1
Nymn
LQ Newbie
 
Registered: May 2011
Location: Right over there.
Distribution: Mint 14 KDE
Posts: 26

Rep: Reputation: 0
Where do saved files go when you run a live CD?


Where exactly are they saved? In memory? Is there any way to recover them once you log out and shut down the PC?
I'm not trying to recover anything, I'm just genuinely curious.
 
Old 07-03-2012, 02:15 PM   #2
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
generally they are saved in memory (and therefore lost after shutdown), however I know that some LiveCD's have the option of storing them on a flash drive, or the hard-drive, though that would probably require extra configuration. It is also possible to use a Live-USB flash drive, which can save files to the flash drive.
 
Old 07-03-2012, 03:07 PM   #3
Nymn
LQ Newbie
 
Registered: May 2011
Location: Right over there.
Distribution: Mint 14 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
Okay, thanks. That's what I figured.
 
Old 07-03-2012, 04:27 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Depends on a few things but yes the answer is they usually lost, but not always. Most live cd's cheat the system. The makers of them found a way to use both the cd and some part of your ram to act like a hard drive. It seems to let you save files but since it is ram it gets lost.

This assumes you have a distro that doesn't have a save or scratch disk. Some distro's offer you a way to save those files to hard drive or usb or floppy or even on the cd you booted to.

The files could be on the swap file or partition in some cases also. That area is possible to access if you have it on a hard drive or even flash drive.

Last edited by jefro; 07-03-2012 at 04:28 PM.
 
Old 07-03-2012, 06:42 PM   #5
Nymn
LQ Newbie
 
Registered: May 2011
Location: Right over there.
Distribution: Mint 14 KDE
Posts: 26

Original Poster
Rep: Reputation: 0
Interesting. Maybe it depends on how much you download while running the live CD?
 
Old 07-03-2012, 07:07 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Nymn View Post
Interesting. Maybe it depends on how much you download while running the live CD?
No, it solely depends on if and how the developers have implemented that feature.
 
Old 07-03-2012, 07:32 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Normally, you would NOT save anything to the CD---once the iso is burned to it, it's read-only.

A Live Linux session uses a "ramdisk"---a section of RAM that appears to the system like a normal read-write disk. At least part of the "root" filesystem is put on this ramdisk. Once you are running, you can mount a flash drive or external USB or SATA drive, and save files there.
 
Old 07-03-2012, 07:50 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by pixellany View Post
Normally, you would NOT save anything to the CD---once the iso is burned to it, it's read-only.
In fact, there are (were?) some live-CDs that could write to a RW or a multisession CD.

Quote:
A Live Linux session uses a "ramdisk"---a section of RAM that appears to the system like a normal read-write disk. At least part of the "root" filesystem is put on this ramdisk.
To make this a bit more complete, usually it is not a static RAM-disk but a tmpfs that is mounted on top of the root filesystem (which nowadays usually resides in a SquashFS container on the CD) using AUFS or OverlayFS. All changes (new files, changes in files, the deletion of files and changes in the meta-data) are saved on the tmpfs, totally transparent for the user.
Quote:
Once you are running, you can mount a flash drive or external USB or SATA drive, and save files there.
Some distros, like Puppy or the ones that support persistence can do this on the fly without user interaction.
 
Old 07-03-2012, 07:59 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I hereby acknowledge that my answer was a bit simplistic.......

Another perspective: If you want to save files, then install Linux. Live CDs are for tryout, system troubleshooting/repair, etc.

Last edited by pixellany; 07-03-2012 at 08:01 PM.
 
Old 07-03-2012, 08:03 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Short answer:

Either it's saved to tmpfs (RAM), which means it's lost when you power off, or it's saved to persistent storage either on a multi-session CD-RW or a USB drive.
 
Old 07-03-2012, 10:10 PM   #11
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
Quote:
Another perspective: If you want to save files, then install Linux. Live CDs are for tryout, system troubleshooting/repair, etc.
Another use for live cd's which would warrant data persistence is to have a portable system which can be accessed using multiple hardware systems. That way the user could be sure that the applications they needed were available. I admit that such a use case would probably be rare, but I can see someone wanting to do that. Although I would recommend a Live-USB in that case.
 
Old 07-04-2012, 10:04 AM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by flamelord View Post
Another use for live cd's which would warrant data persistence is to have a portable system which can be accessed using multiple hardware systems. That way the user could be sure that the applications they needed were available. I admit that such a use case would probably be rare, but I can see someone wanting to do that. Although I would recommend a Live-USB in that case.
I have one of those on one of these on my keyring:
http://www.newegg.com/Product/Produc...82E16820154034

Works great
 
Old 07-04-2012, 10:28 AM   #13
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Use a USB drive! Mount it with your Live CD and save anything you want to it. Isn't that how you'd recover all the pictures, music, videos, etc, on a BSOD Windows system? I've done it a few times and amazed the Windows user who thought they'd lost all their valuable stuff after some High Street PC companies were unable to recover it.

Play Bonny!
 
Old 07-04-2012, 11:40 AM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,130

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
This is a very generic question posed by the OP. We really can say the exact answer. Can we know the live cd?

Any of a few ways could allow one to save data off either by direction or by accident. I'd think that only a secure by design would block any of the accidental means. The very best security live cd would prevent any sort of mount.

Live cd's are not secure by design.
 
Old 07-05-2012, 03:36 AM   #15
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,690

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
@jefro
Quote:
The very best security live cd would prevent any sort of mount.
Surely the purpose of a Live CD is a) as a taster for the particular distribution and b) as a recovery tool, hence it should allow external devices, i.e. USB drives, DVD burners, etc, to be mounted? A Live CD which didn't allow you to do anything usefull is pretty pointless otherwise.

My

Play Bonny!
 
  


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
Bluetooth - where do the files get saved? ElyseeElectrocute Linux - Newbie 6 04-15-2009 07:47 AM
encrypting tar files saved to tape kaplan71 Other *NIX 3 11-05-2008 11:04 PM
finding saved position files in xboard? muddywaters Linux - Games 3 01-16-2007 01:00 PM
Doom 3: Using native installer and can't locate saved game files or config files JBailey742 Linux - Games 11 08-14-2006 06:09 PM
using PythonCard and cant run saved items boxerboy Programming 0 11-24-2005 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:18 AM.

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