> is it possible with this version of dd to image a
> partition.
> at the moment i dont know how partitions are named in
> opensolaris.
> i say it the linux way:
> /dev/sda1
> /dev/sda2
> is it possible to create a image from sda1 to sda2
> this way:
> dd if=/dev/sda1 of=/dev/sda2/backup.img
>  when i do it the other way:
> d if/dev/sda2/bakup.img of=/dev/sda1
> would the drive be bootable?
> because the linux rescue cd cannot access to zfs, i
> can use the opensolaris live cd to create restore the
> image.

dd copies blocks.  Provided you don't use any args but bs= (some multiple of 
512),
and if you want to if= and of= rather than stdin and stdout, and provided 
there's
enough room where you copy to (and no I/O errors), it just copies everything.

If you're restoring to the same place you copied from, and it's the same
size and has the same partition name and attributes, I would expect that would
work.  But I use SPARC almost all the time and x86 hardly ever, so there might
be some problem I'm not aware of or understanding.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to