LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 04-18-2011, 11:52 AM   #1
sudheendrasp
LQ Newbie
 
Registered: Jul 2010
Posts: 13

Rep: Reputation: 0
Arrow Extracting a file in RAM File system when RAM dump is available


Hi,
I have a RAM dump of my MIPS multi core processor and would like to extract a file which is part of the RAM filesystem for eg., /proc/stat.
Can someone guide the way with some pointer or wiki.

Thanks for any sort of help provided...
 
Old 04-18-2011, 02:54 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I will rephrase your question, to make sure I understand it correctly. You have a MIPS-based host running Linux, and you want to capture an entry in the /proc virtual filesystem to a file on disk.
First, the /proc filesystem is not really a filesystem at all; it is a virtual filesystem (VFS). What that means is that it is a set of configurations that the kernel exports to userspace using filesystem semantics. There is no actual data storage like what exists for a conventional files and directories. The data is all transient, reflecting the state of the kernel at the instant the virtual file is read (and in some cases, written to).
Having said this, as /proc does obey conventional filesystem semantics, it is possible to use things like cat to read the VFS, and therefore to redirect its output to conventional disk files:
Code:
cat /proc/stat > /home/LQsudheendrasp/procStat
Is this what you were looking for?

--- rod.
 
Old 04-19-2011, 01:03 AM   #3
sudheendrasp
LQ Newbie
 
Registered: Jul 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Thumbs up

Hi rod...
I think I was not clear with my question. I will try and explain it in a better way.
I have the memory dump or image of RAM with me which contains kernel, apps etc., part of RAMFS and I want to extract any file which was part of filesystem. I dont have live kernel running as of now but have the memory image.
Thanks for your time!!
 
Old 04-19-2011, 08:58 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Ohh... that is much different. Sorry I cannot help with that.
--- rod.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a core dump from raw ram dump? cyent Programming 2 08-15-2010 05:57 PM
Video RAM as System RAM rahulkya Linux - Hardware 2 06-23-2010 03:02 PM
How can I do a dump of the current contents in RAM to a file? abefroman Linux - Server 1 12-11-2009 12:58 AM
File System / RAM Disk Question xor Linux - General 2 04-27-2007 06:21 PM
.ram file help ll3x4 Linux - Software 2 09-20-2003 08:42 PM


All times are GMT -5. The time now is 03:37 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration