(in the spirit of open source, directed back to the list)

On Wed, 8 Jul 2009 14:51:55 +0000 (GMT), Stephen C. Bond
wrote:

>Kees,
>
> can you provide an example of how to read from dd 
> cylinder by cylinder or even better by exact coordinates?

That's hard to do, many disks don't tell you the real
geometry. 
dd if=/dev/rdsk/cXtYdZsB of=output_file_name\
 bs=block_size \
 skip=nr_of_blocks_to_skip \
 count=nr_of_blocks_to_copy

> also if a file is fragmented is there a marker at the
> end of the first piece telling where is the second?

No. That kind of information is kept in the zfs
administrative blocks. You'll have to study the on-disk
format to get that kind of info.

http://opensolaris.org/os/community/zfs/docs/ondiskformatfinal.pdf
http://blogs.sun.com/storage/en_US/entry/examining_zfs_on_disk_format

The zdb utility (zfs debugging tool) might be of help as
well.

>Thank you
>Stephen C. Bond
-- 
  (  Kees Nuyt
  )
c[_]
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to