Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 06-07-2009, 08:02 PM   #1
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
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
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
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Original Poster
Rep: Reputation: 68
Solved: testdisk and photorec.


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
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

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration