1819910 Members
2616 Online
109607 Solutions
New Discussion

bad copy error

 
Adam Noble
Super Advisor

bad copy error

Hope somebody can help as i've not seen this problem before and not sure where to start. I'm simply trying to copy a file to another mountpoint. I get the following error:-

cp: bad copy to /opt/iwatch/syslog.log: write: No such device or address

This is not a space issue, any ideas?
1 REPLY 1
Robert-Jan Goossens
Honored Contributor

Re: bad copy error

Hi,

seen it before, cause/explanation was syslog daemon keeping the syslog file open and the file is being changed during the copy.

Try a cat from the syslog and redirect it to a copy.

# cat syslog.log > /opt/iwatch/syslog.log

Hope this helps,
Robert-Jan