Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-18-2014, 07:59 AM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Making a memory dump in Linux?

Hi: by memory I mean the main processor's memory (RAM or ROM). Is there a Linux utility that can dump memory to stdout? As a second question, where is the video memory located, assuming the video controller shares the main processor memory and that it is in text mode?
Old 07-18-2014, 08:45 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Question 1 - if you mean physical memory:

dd if=/dev/mem bs=1 seek=start_addr count=size
Question 2 - That would depend on your video driver. I don't believe that the kernel keeps a buffer of what's on a text-based screen, it just sends characters to the lower-level tty driver.
Old 07-18-2014, 09:08 AM   #3
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks. I think to be able to make the dump human readable I should include of=<some_file> in the dd comand and then see the file with for example hexdump. Writing directly to stdout would fill the screen with garbage, I assume.

As to the video memory, I remember in the PC compatibles, it was in the 0xB000 or 0xB800 segment. The video controller swept this memory region. If at B000:0 there was 0x41, then you would be seen an 'A' in the upper left corner of your screen.


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
How to take memory dump in Linux rhel1984 Red Hat 4 10-01-2012 08:08 AM
Tool for Memory Dump? linuxunix Linux - Newbie 1 12-10-2010 04:10 AM
SLES 9 Memory Dump help djcrash1981 SUSE / openSUSE 6 01-10-2010 05:43 AM
Making memory uncacheable for a linux kernel module MahendraL Linux - Newbie 0 07-29-2009 11:56 PM
Mission Critical Linux - In Memory Core Dump Rostfrei Programming 3 09-10-2008 10:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:23 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
Open Source Consulting | Domain Registration