LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-07-2009, 08:02 PM   #1
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Can swap file or a swap partition be mounted and read?


If so, how is the process done?
 
Old 06-07-2009, 09:44 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Not sure I understand the question. Mounted and read in what way? Swap isn't like a directory that is full of various temporary files, it wouldn't be a usable filesystem. You could maybe grep a swap file for some particular string of data, but trying to extract usable information is another matter.

What exactly is your end goal? Perhaps that would make this is a little easier to work through.
 
Old 06-07-2009, 10:12 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The key to this is that you do not mount a partition---you mount (connect) a filesystem to the master directory tree. Since swap space does not use a filesystem, there is nothing to mount.

Swap space is simply an alternative memory area. If you can read RAM (assuming you know what you are looking for), then you can read swap the same way---eg using dd + hexdump.
 
Old 06-08-2009, 02:16 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770

Original Poster
Blog Entries: 52

Rep: Reputation: 68
Solved: testdisk and photorec.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
swap file vs. swap partition verndog Ubuntu 16 07-09-2012 08:49 PM
Swap partition not being mounted after moving it etotheidotpy Linux - Hardware 11 03-21-2008 05:58 PM
swap partition not being mounted at boot lothario Linux - General 5 11-23-2007 07:17 AM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 03:11 PM
swap partition not being mounted jclark00001 Linux - Newbie 28 02-15-2003 03:07 AM

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

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