I am using the latest Ubuntu Linux with a custom kernel (4.2.0-36-generic), in which I have disabled the
CONFIG_STRICT_DEVNEM, because I need to dump and search some terms in memory during a project.
However, when using:
dd if=/dev/memto print it on screen,
dd if=/dev/mem of=/home/user/Documents/file.dumpto save it as a file, or
dd if=/dev/mem | hexdump -C | grep 'term'to directly find what I'm looking for,
the system freezes and reboots while in the process.
I have checked with
df -h and my disc has plenty of free space. Also, the process always stops after writing a 2.1Gb to 2.5Gb, out of a 8Gb RAM and before reaching addresses that start with 4 (if these make any difference). In addition, checking
/var/log/kern.log shows nothing relevant before the freezing.
Also, using parameters
bs=1G count=2 successfully copies the first 2GB of the memory but then trying
bs=1G count=2 skip=2 to get then next 2GB again freezes the system.
Would you suggest any solution so it is possible to dump the full memory or some other way to directly search terms in memory?