LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-04-2014, 10:55 AM   #1
cousinlucky
Member
 
Registered: Nov 2005
Location: Staten Island N.Y.
Distribution: Antix 16 and PCLinuxOS Mate
Posts: 303

Rep: Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515Reputation: 515
How do I completely erase my computers RAM?


Is there a terminal command or a process to follow to erase all the RAM on my computer? Thanks!!
 
Old 12-04-2014, 11:13 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,101

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
power off. I don't know other way
 
1 members found this post helpful.
Old 12-04-2014, 11:15 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
do you mean harddrive ? if so maybe boot into a live-usb and use dd to write 0's/nulls/random stuff all over the platter.

(pan is correct, all the memory locations of volatile-ram are reset to 0 v every time power is removed from it.)

Last edited by schneidz; 12-04-2014 at 11:19 AM.
 
Old 12-04-2014, 11:36 AM   #4
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by schneidz View Post
(pan is correct, all the memory locations of volatile-ram are reset to 0 v every time power is removed from it.)
You have to leave it powered off for a short time at a reasonable temperature.

http://en.wikipedia.org/wiki/Data_remanence#Data_in_RAM
 
Old 12-04-2014, 11:42 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ sure but isnt that due to residual power remaining from energy absorbed from capacitors and inductors ? i think removing that power would reset everything so that voltage = 0 and no current is flowing thru the wires ?

...
i had an old crt tv when unplugged i could hit the power button and the screen would flash for half a second and then quickly fade.
more pertinently, i had an old packard bell desktop that i was replacing the cmos. i hit the power button when it was unplugged and the fan spun around about half a full revolution.
...

all this is moot since the question seems wrong since deleting memory from a running system would probably kernel-panic it. i assume the op actually wants to empty the harddrive before donating a laptop or something ?

Last edited by schneidz; 12-05-2014 at 09:08 AM.
 
Old 12-04-2014, 09:42 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Parts of ram could be erased. At some point you'd run into working OS and it would then fail. A great amount or ram is needed to keep the OS working.
 
Old 12-04-2014, 11:53 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ so it is impossible to 'completely erase all ram' of a running system since at least the kernel would have to stay resident in memory.

this:
http://www.linuxquestions.org/questi...ckware-896616/

Last edited by schneidz; 12-05-2014 at 12:06 AM.
 
Old 12-05-2014, 05:52 AM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Quote:
i assume the op actually wants to empty the harddrive before donating a laptop or something ?
I've found that an assumption is usually the first mistake you make in solving a problem... Unless your first step is to try and prove it correct.

Maybe the Op would like to enlighten us as to the reasons.

Play Bonny!

 
1 members found this post helpful.
Old 12-05-2014, 08:55 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Soadyheid View Post
... Unless your first step is to try and prove it correct.
...
in college labs we would annotate assumptions all the time. e.g.:
assume resistance is equal to 1k
assuming a 50% duty cycle
...

i see nothing wrong with assuming as long as it is a logical leap (and not jumping to conclusions) and like you said, in a proof, as long as you make room for corrections. without assumptions, we wouldnt be able to continue to calculate and hack around and experiment and retry with different sets of controls/assumptions.
 
Old 12-05-2014, 10:11 AM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
memtest would wipe it all, to wipe most of it you could just write a C program and calloc until the OOM killer kills the program, but you have to turn off swap.
 
Old 12-05-2014, 10:35 AM   #11
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Quote:
i see nothing wrong with assuming as long as it is a logical leap
I agree, but have had occasions where I've assumed something to find out I was wrong. I've probably made loads of assumptions when fixing kit over the last 30/40 years but I find that the assumption has to be followed up with a "Let's see if I can prove the assumption..." For assumption you may be able to say "theory"

I remember having a problem on an old DEC RL02 drive (Yup! I'm that old) which was giving read/write errors, we replaced the heads, Servo system, control PCBs, Drive motor with nothing left. I'd assumed that there was no way the connector in the rear bulkhead could have a short in it, it's a sheet of metal with a non-moving connector in it, how could it be faulty? - it was.

Oh, and with lots of the posts here we have no option but to make assumptions because the Op hasn't thought about the question they're asking from the perspective of those reading it.

Play Bonny!

 
Old 12-05-2014, 10:44 AM   #12
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by schneidz View Post
in college labs we would annotate assumptions all the time. e.g.:
assume resistance is equal to 1k
assuming a 50% duty cycle
Quote:
Originally Posted by Soadyheid
I've found that an assumption is usually the first mistake you make in solving a problem... Unless your first step is to try and prove it correct.
Those are two completely different types of assumptions.

An assumption like "the OP writes RAM but we assume he intends to wipe his HDD [because wiping his RAM doesn't make any sense] is drawing a conclusion.

The "lab" assumption: "let's assume the duty cycle is 50%" is setting a value for something unknown. Not completely unknown though, it must be an assumption based on something. Either a duty cycle which is more than 0% and less than 100% and no clear knowledge of what it could be. Or the knowledge that it can be anything between 0% and 100%. That is not drawing a conclusion.

In the case of this question, it could be that someone had found a lengthy and inefficient process for cleaning RAM. Then a valid assumption would have been: "Assuming the OP's machine has 8GB RAM, the process would take so and so long."

That is quite a different assumption from "he must have intended to clean his HDD".

jlinkels
 
Old 12-05-2014, 01:30 PM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Soadyheid View Post
... For assumption you may be able to say "theory"...
theory would be a better word. thanks,
 
Old 12-05-2014, 04:30 PM   #14
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Power off would in fact erase common ram.

Ram locations are located in many places. From small chips on hard drive to other locations. We assume the work ram to be the type one installs in slots but there are memory locations available that could be burned or programmed in.

To make a leap to hard drive out of ram on an OP from NY is a bit of a leap I'd think. Surely they'd mean ram to be the type tested by memtest.

To wipe a hard drive dban I think is a common choice. Many others exist to erase a hard drive too.
 
Old 12-05-2014, 04:35 PM   #15
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Please see:
https://en.wikipedia.org/wiki/Cold_boot_attack
 
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
How do you make Firefox store data completely in RAM? CamTheSaxMan Linux - Software 2 02-12-2014 04:44 PM
completely erase disk cursor just blinks when boot Rukiri Linux - Hardware 2 09-03-2012 12:41 PM
[SOLVED] Wanted: a lowlevel tool to erase data from harddisks completely. Sjonnie48 Linux - Hardware 4 03-10-2011 11:50 AM
LXer: FSF works with Los Alamos Computers to provide free computers LXer Syndicated Linux News 0 07-29-2008 10:12 PM
Booting Linux Completely from RAM abhijeetudas Linux - General 7 12-21-2004 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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