Re: [SLUG] Reading blocks from SD card

From: Eben King (eben01@verizon.net)
Date: Sun Sep 23 2007 - 10:54:16 EDT


On Sun, 23 Sep 2007, ronan wrote:

>
>> dmesg shows the device. If it is fomrated correctly with FAT it mounts the
>> device automatically after it is plugged in (and shows up as "/media/disk",
>> though the initial message is "system:/media/sdc1"). When I do "dd" I get
>> less than one block (512) and it isn't anything that is on the card.
>
> You can specify a block size and block count with dd:
>
> dd if=/dev/sdc1 of=myimage bs=512 count=1024

Or you can read a particular block with

dd if=/dev/sdc1 of=myimage bs=512 count=1 skip=1024

> I don't know if that would put you on the road to solving your problem.

Ditto.

-- 
-eben      QebWenE01R@vTerYizUonI.nOetP      http://royalty.mine.nu:81
"It can be shown that for any nutty theory, beyond-the-fringe political
  view or strange religion there exists a proponent on the Net. The proof
  is left as an exercise for your kill-file." -- Bertil Jonell
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:17:19 EDT