From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> Thank you very much for your reply. The hard disk capacity is as 40GB
> and no slice is occupied with say more than 40% of data . According to

You're copying the disk image, not the data on the disk. If you have a
40G disk, you'll have a 40G image. A disk block does not cease to exist
just because it doesn't have useful data on it.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> #dd if=/dev/rdsk/c0t0d0s2 bs=512 count=1966080 |gzip -c >/tmp/
> solaris8.disk-pt1
> #dd if=/dev/rdsk/c0t0d0s2 bs=512 count=1966080 skip=1966080 |gzip -c >/
> tmp/solaris8.disk-pt2

Yes, that will likely work better.

And if you have a 40G disk, you'll have somewhere between 40 and 45 pieces.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: hadi motamedi on
>
> You're copying the disk image, not the data on the disk.  If you have a
> 40G disk, you'll have a 40G image.  A disk block does not cease to exist
> just because it doesn't have useful data on it.
>
Sorry. I didn't get the point clearly. I wanted to make a bootable
image . So you mean this procedure does not work this way ?

From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> Sorry. I didn't get the point clearly. I wanted to make a bootable
> image . So you mean this procedure does not work this way ?

If you apply the procedure properly, it MAY work. I have no idea what
software you're trying to use, and everything I've read makes me think your
situation is ridiculous.

But if you want to make a disk image, you can't leave out disk blocks just
because they don't have useful data on them, otherwise you mess up pointers
on the disk. If you have a 40G disk but only 2G of it is filled, then you
STILL need to copy all 40G because otherwise you'll mess up the image.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: hadi motamedi on
>
> If you apply the procedure properly, it MAY work.  I have no idea what
> software you're trying to use, and everything I've read makes me think your
> situation is ridiculous.
>
> But if you want to make a disk image, you can't leave out disk blocks just
> because they don't have useful data on them, otherwise you mess up pointers
> on the disk.  If you have a 40G disk but only 2G of it is filled, then you
> STILL need to copy all 40G because otherwise you'll mess up the image.

Thank you very much. I got the point .