LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2003, 07:44 PM   #1
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Flushing the swap file at shutdown


Hello,

I've got an interesting question. In the MS world, there is a setting to enable a user to clear the swap file at shutdown. Does anyone know how and if the swap file is cleared at shutdown and if not, how would one do that? Thanks.
 
Old 06-02-2003, 08:11 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well, first of all ther isn't a swap 'file' in linux it's another partition alltogeather so weather or not it gets cleared at shutdown or not is irrelivant because that space is never available to you in the first place
 
Old 06-02-2003, 08:14 PM   #3
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Original Poster
Rep: Reputation: 30
Well, yes, you are correct about what you said. I apologize, I was thinking of the paging "file" in windows. But whatever my use of words was, my question still stands. If the swap partition is used to write to when you run out of physical memory, how is it ever cleared since data is being written to the partition?
 
Old 06-02-2003, 10:58 PM   #4
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Unless you have small amount of ram, then you would hardly use much swap space.

On my system with 256mb of ram, I use maybe less then 200k of it! And I'm using KDE as a desktop environment along with about 4 or more windows open.
 
Old 06-03-2003, 06:07 AM   #5
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Original Poster
Rep: Reputation: 30
Thanks, because I do exactly the same. I run KDE and have a lot of windows open too.
 
Old 06-03-2003, 07:54 AM   #6
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
Normally you can't 'read' the swap partition using conventional methods, because that space doesn't have a file system (It's just like a pile of RAM). The thing is that if someone gets his hands on your hdd, he could see some of the things stored in the swap... However, I doubt passwords are ever saved in the swap if you have plenty of RAM...

I think you might be able to read the swap as a binary file using the dd commands... I think I'll try it!

But I need some help... How do I tell dd to stop copying after the 1st MB? I was unable to convince it!
 
  


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
swap file linuxhippy Linux - General 4 10-11-2004 04:07 PM
Swap File Cyric Slackware 13 10-04-2004 11:19 PM
Swap file not being used...why? ganja_guru Linux - General 6 12-08-2003 03:41 AM
Swap file sparkplug55 Linux - Newbie 2 08-11-2003 09:09 AM
No Swap File tarballedtux Slackware 4 01-09-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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