dd error

  • Follow


Hi,

I was try to dd the origional disk from Sun B1500 to another new disk before
I go ahead to install Solaris 9.

dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=1024k

And after 30 mins, get error msg like this:

dd: unexpected short wite, wrote 409600 bytes, expected 1048576

7774+0 records in

7774+0 records out

Any clue? Should I split these two disk to different IDE cable?

Thanks!


0
Reply danielhuang 4/29/2004 4:57:53 PM

danielhuang@hotmail.com wrote:
> Hi,

> I was try to dd the origional disk from Sun B1500 to another new disk before
> I go ahead to install Solaris 9.

> dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=1024k

> And after 30 mins, get error msg like this:

> dd: unexpected short wite, wrote 409600 bytes, expected 1048576

> 7774+0 records in

> 7774+0 records out

> Any clue?

Perhaps t1 is smaller than t0?  It says you've copied about 7.9 GB.  Are
they both 8G disks?

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 4/29/2004 5:40:04 PM


The both are same disks of 80G, same parts number from sun.

system is B1500.


"Darren Dunham" <ddunham@redwood.taos.com> wrote in message
news:U5bkc.57784$sm1.3796@newssvr25.news.prodigy.com...
> danielhuang@hotmail.com wrote:
> > Hi,
>
> > I was try to dd the origional disk from Sun B1500 to another new disk
before
> > I go ahead to install Solaris 9.
>
> > dd if=/dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=1024k
>
> > And after 30 mins, get error msg like this:
>
> > dd: unexpected short wite, wrote 409600 bytes, expected 1048576
>
> > 7774+0 records in
>
> > 7774+0 records out
>
> > Any clue?
>
> Perhaps t1 is smaller than t0?  It says you've copied about 7.9 GB.  Are
> they both 8G disks?
>
> -- 
> Darren Dunham                                           ddunham@taos.com
> Senior Technical Consultant         TAOS            http://www.taos.com/
> Got some Dr Pepper?                           San Francisco, CA bay area
>          < This line left intentionally blank to confuse you. >


0
Reply danielhuang 4/29/2004 5:47:35 PM

danielhuang@hotmail.com wrote:
> The both are same disks of 80G, same parts number from sun.

Can you display the output of 'iostat -En' for both disks?  The label
will be useless, because it's a copy.

I would probably run an 'analyze' on the target disk to see if it's
behaving properly.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 4/29/2004 7:16:32 PM

thanks, Darren. get it done.

I split them to two ide cables and copy over the partition table to the new
disk.

"Darren Dunham" <ddunham@redwood.taos.com> wrote in message
news:kwckc.3093$c46.170@newssvr27.news.prodigy.com...
> danielhuang@hotmail.com wrote:
> > The both are same disks of 80G, same parts number from sun.
>
> Can you display the output of 'iostat -En' for both disks?  The label
> will be useless, because it's a copy.
>
> I would probably run an 'analyze' on the target disk to see if it's
> behaving properly.
>
> -- 
> Darren Dunham                                           ddunham@taos.com
> Senior Technical Consultant         TAOS            http://www.taos.com/
> Got some Dr Pepper?                           San Francisco, CA bay area
>          < This line left intentionally blank to confuse you. >


0
Reply danielhuang 4/29/2004 8:15:53 PM

danielhuang@hotmail.com wrote:
> thanks, Darren. get it done.

> I split them to two ide cables and copy over the partition table to the new
> disk.

I can't think of any reason that two ide cables would work while only
one fails.

I wonder what the root of the problem is.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 4/29/2004 10:42:22 PM

danielhuang@hotmail.com wrote:

> The both are same disks of 80G, same parts number from sun.
IIRC, the same part number does not been that the physical part is 
identical. You're asking for trouble writing directly to and from the 
underlying devices, especially if the system is up. Will the second disk 
accept the table of contents from the first ie

does

prtvtoc /dev/dsk/c0t0d0s2 | fmthard -s - /dev/dsk/c0t1d0s2

complain?

If not, run newfs on each of the new partitions on the new disk, mount 
them up and run a ufsdump/ufsrestore pipe

eg

mount /dev/dsk/c0t1d0s0 /new
cd /new
ufsdump 0f - /dev/dsk/c0t0d0s0 | ufsrestore -xf -

If the prtvtoc/fmthard trick fails you'll have to create the new slices 
by hand.

Mark
1
Reply Mark 4/30/2004 2:40:37 PM

6 Replies
358 Views

(page loaded in 0.091 seconds)

Similiar Articles:













7/23/2012 2:52:03 AM


Reply: