1827487 Members
2630 Online
109965 Solutions
New Discussion

cp error

 
SOLVED
Go to solution
Javier Ortiz Guajardo
Frequent Advisor

cp error

i have this problem in HP_UX 10.20
i want to make a copy at the same directory and send this message
cp general general.gan
cp: bad copy to general.gan: write: I/O error

the dmesg command send this
dev 1c006000 got invalid b_resid 0 b_bcount 8192, error = 0x7c

The file is rwx for owner,group and world
please help...
thanks
email jortiz@gan.com.mx
The obstacles are those things that the people see when they left to see their goals.
6 REPLIES 6
Sandip Ghosh
Honored Contributor

Re: cp error

For copying the directory you have to give cp -R. For details you can look at man cp.

Sandip
Good Luck!!!
Javier Ortiz Guajardo
Frequent Advisor

Re: cp error

sandip thanks, but the copy is a simple copy file text to another, is not a directory copy.

someone knows what is the solution to hies error.

thanks.
The obstacles are those things that the people see when they left to see their goals.
Sanjay_6
Honored Contributor
Solution

Re: cp error

Hi,

Looks like you have a disk problem or you are in need of a scsi/jfs patch.

Hope this helps.

Regds

PIYUSH D. PATEL
Honored Contributor

Re: cp error

Hi,

Check the disk where the file is located

dd if=/dev/rdsk/c1t2d0 of=/dev/null bs=1024k

if inputs=otputs then your disk is OK. Or else your disk may have bad sectors.

or else restore the file you are copying from backup and try again.

Piyush
MANOJ SRIVASTAVA
Honored Contributor

Re: cp error

Hi Javier

This looks like a disk problem , caon you try copying to some other place if not a big file , it may also be some block in a partioin bad , that will eventually lead you to cahnge the disk . though you can identofy the problem .

dd if=/dev/rdsk/cxtydz

diskinfo /dev/dsk/cxtydz

should give you more information.


Manoj Srivastava
Bill Hassell
Honored Contributor

Re: cp error

This is definitely a hardware error. You need to take steps to save any new data as soon as possible and verify that your backup procedure will actually produce a useable tape. I've never seen a disk error get better, only worse.


Bill Hassell, sysadmin