On 11 July, 2009 - stephen bond sent me these 0,6K bytes:

> Carson,
> 
> please provide an example how to read bytes. I talk about cylinder because I 
> don't know better. 
> I need to read from a partition which shows as /dev/hda3 under Gparted with 
> starting sector xxxx ending sector zzzzz.
> 
> under solaris I think it becomes /dev/dsk/c0d0p3
> 
> I tried 
> dd if=/dev/dsk/c0d0p3 ibs=256
> hoping to read the first 256 bytes but it started streaming everything
> and beeping non-stop. even ^C could not stop the beeping.

Add  of=/where/you/want/the/data  unless you want the raw dump to your
screen, which is what you just got.. Add   count=1  if you just want one
block.. etc.

/Tomas
-- 
Tomas Ögren, st...@acc.umu.se, http://www.acc.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,acc}.umu.se
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to