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: problem dd a 72GB disk - comp.unix.solarisrun following shell error on solaris but OK on RedHat, why ... problem dd a 72GB disk - comp.unix.solaris > > I dont have the exact error messages now ... problem dd a ... tar terminates unexpectedly when piped to dd ? - comp.os.linux ...TAR: tape blocksize error - comp.sys.hp.hpux tar terminates unexpectedly when piped to dd ? - comp.os.linux ... TAR: tape blocksize error - comp.sys.hp.hpux | Computer ... way to access btrieve files without ddf - comp.databases.btrieve ...Maximizer 9 & Businessvision 7 - comp.databases.btrieve Do you think I can use the program this way, or is ... which point I get the following error: Title - File Access ... ufsdump dd tape guru's I need your help - comp.unix.solaris ...I'm hoping with dd or some other utility I can still get to the ufsdump for disk1. ... The bus must of >had errors and aborted the /, disk1, disk2 dumps. it is more likely ... tar error - comp.unix.programmertar: /dev/rmt/0m: Permission denied - comp.unix.solaris HP Communities - tar: cannot open /dev/rmt/0m - Enterprise ... when I execute a tar (or cpio or dd) I get an error ... TAR: tape blocksize error - comp.sys.hp.hpuxHi All, When I want to list the content of a tape, it give me a block size error,like ... You could try dd to dump out the first few blocks. Should give you an idea of the ... IPL error: bad LIF magic - comp.sys.hp.hpux... archive overwrote the lif part by whatever reason. > : I later did > : 1) dd ... IPL error: bad LIF magic - comp.sys.hp.hpux "This computer system does not support ... ntvdm encountered a hard error - comp.lang.asm.x86While writing a boot sector reader, I encountered this error: NTVDM encountered a hard ... db 'Success',0 ;Text for the message box DToMH dd 0h ... error make_rtw and rtw_c - comp.soft-sys.matlab... dt.h(63) : error C2039: 'If_Action_dd' : is not a member of '_BlockIO' sim_andhika_new.h(66) : see declaration of '_BlockIO' sim_andhika_new_dt.h(64) : error ... Problem loading s1 iso as ufs - comp.unix.solarisThe error message is: root@artemis# mount -F ufs -o ro /dev/lofi/2 /cdrom/s1 mount ... clear instructions in document #50566 at Sun on how to break up the cd1 iso with dd ... AIX dd error during erasing hdisk - Toolbox for IT GroupsHello, I tried to erase disk with command dd if=/dev/zero of=/dev/hdisk1 bs=1m after few hours I got error: ... dd_rescueCall dd_rescue -h. dd_rescue does not abort on errors on the input file, unless you specify a maximum error number. Then dd_rescue will abort when this number is reached. 7/23/2012 2:52:03 AM
|