LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 06-07-2009, 09:02 PM   #1
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, NetBSD, Debian
Posts: 218
Blog Entries: 5
Thanked: 17
Can swap file or a swap partition be mounted and read?


[Log in to get rid of this advertisement]
If so, how is the process done?
Mr-Bisquit is offline     Reply With Quote
Old 06-07-2009, 10:44 PM   #2
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 4,218
Thanked: 80
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.
MS3FGX is offline     Reply With Quote
Old 06-07-2009, 11:12 PM   #3
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,168
Thanked: 285
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.
pixellany is offline     Reply With Quote
Old 06-08-2009, 03:16 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, NetBSD, Debian
Posts: 218
Blog Entries: 5
Thanked: 17

Original Poster
Solved: testdisk and photorec.
Mr-Bisquit is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 vs. swap partition verndog Ubuntu 5 05-09-2008 06:06 AM
Swap partition not being mounted after moving it etotheidotpy Linux - Hardware 11 03-21-2008 06:58 PM
swap partition not being mounted at boot lothario Linux - General 5 11-23-2007 08:17 AM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 04:11 PM
swap partition not being mounted jclark00001 Linux - Newbie 28 02-15-2003 04:07 AM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration