LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2015, 02:34 PM   #1
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
linux without hard drive, everything in RAM, mount tmpfs ?


in the past i have mounted RAM as a ramdisk via

mount -t tmpfs -o size=200GB tmpfs /ramdisk

some of my newer systems will have 512GB of RAM.
the thought crossed my mind, why even use a hard drive.

I use ELILO amd my systems mount /dev/sda1 as /boot/efi and /dev/sda3 as /
where sda is my one operating system hard drive.

is there a way to reference RAM instead of /dev/sda ?
I'd like to try running a system using only RAM and no hard drive.... with the exception being the hard drive to boot the system and get it going. looking to somehow transfer the mounted / folder into RAM then run without needing the hard drive at /dev/sda.

Last edited by ron7000; 06-16-2015 at 02:41 PM.
 
Old 06-16-2015, 03:33 PM   #2
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 612

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Puppy linux does this
You need something to copy from since the tmpfs will be destroyed upon poweroff.
If you were to create a tmpfs, copy from disk everything (programs mostly) to the tmpfs and then reference from it, that may work.

Linux is very efficient with its ram, caching pretty much everything you do in ram so you're (more or less) loading stuff from ram more often then not - especially if it's been on for awhile.

To see
Code:
free -m
..
-/+ buffers/cache:       1835      13885
..
I have 13gb of data in cache currently. Available, but cached. This link explains it better
http://www.linuxatemyram.com/

Last edited by Sefyir; 06-16-2015 at 03:34 PM.
 
Old 06-16-2015, 04:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,167

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
A lot of distro's can do this with a boot line command switch. Some may call it toram or other name. Knoppix and many others like slitaz use the toram. I forgot what maybe antix uses or arch??? https://en.wikipedia.org/wiki/List_o...t_run_from_RAM

When you make a ramdisk or aufs or such, it would have to be mounted to make it usable as a mounted drive.

I'd be tempted to go to a gpxe/ipxe or pxe booted system.

Last edited by jefro; 06-16-2015 at 04:08 PM.
 
Old 06-17-2015, 05:42 AM   #4
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,813

Rep: Reputation: Disabled
A lot of live/installable distros allow booting 'toram', which allows the removal of the boot media.
 
Old 06-17-2015, 10:29 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,616

Rep: Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019
Puppy, Knoppix, and Slax are all intended to be be used without installing - Knoppix and Slax don't even come with an installer - so they do the job best. Knoppix has the most software on the medium, but is not really designed to have extra software installed. Slax has a small repository and Puppy uses Ubuntu.
 
Old 06-17-2015, 12:28 PM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,927
Blog Entries: 13

Rep: Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049Reputation: 4049
I have an old laptop where the hard drive died long ago. I always live boot it using MINT Debian via a USB stick and just use it for online work. It automatically creates and mounts it's file system using RAM.
 
Old 06-17-2015, 02:42 PM   #7
TomBoyle
LQ Newbie
 
Registered: Jun 2015
Posts: 5

Rep: Reputation: 0
@ ron7000
The only benefits on running a system from ram is definitely for speed and to destroy your sessions on the next reboot. Unless you keep your system up 24/7, all programs you've installed to tmpfs will have to be reinstall and it can become tedious after a while.

Tinycore linux can run from ram as well and optionally it can install and reload installed programs you saved to a storage device.
 
Old 06-17-2015, 03:21 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,167

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
I think there are a few that can save changes to a usb or hard drive even when running toram. Wish I could remember the other names distro's call it.
 
Old 06-18-2015, 10:50 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,616

Rep: Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019
@ 7 and 8
As I've said, Puppy stores its changes in a HD file, even on a Windows system, so you don't need to re-install new programs.
 
Old 06-18-2015, 01:26 PM   #10
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,813

Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I think there are a few that can save changes to a usb or hard drive even when running toram. Wish I could remember the other names distro's call it.
Persistence.
 
Old 06-18-2015, 07:37 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,167

Rep: Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181Reputation: 3181
Persistence is more of a live media use for cheating to a usb. It may be possible to create a boot to ram where the casper file is used on a usb. It had trouble doing that at first but I'm sure they fixed it.

Yes, we know puppy can. Others can save changes too.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Speed up Firefox by mounting the profile in tmpfs (RAM) [Linux only] LXer Syndicated Linux News 0 05-04-2009 09:11 AM
Why can't I mount my Windows hard drive from Linux? axess_denied Linux - Hardware 23 10-23-2006 11:53 PM
Mount Windows Hard drive in Linux burtongeek Linux - Newbie 26 03-28-2005 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:29 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