Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cp command cause root directory is gone (/ point is unmounted): (3 Items)
   
cp command cause root directory is gone (/ point is unmounted)  
Hi,

I encounter a problem that using cp command to copy a large file (~1GB size) from USB to SD card or vise versa. during 
copying, error out and root directory is gone (/ mount point is umounted).

The following is verbose from cp:
cp: LSTAT(/dos/d/,buf)
cp: LSTAT(/log/file.121,buf)
cp: copy_guy(/log/file.121,/dos/d///file.121)
cp: OPEN(/log/file.121,0,0)
cp: OPEN(/dos/d///file.121,2401,100640)
cp: LSTAT(/dos/d///file.121,buf)
cp: Copying /log/file.121 to /dos/d/file.121
cp: write  (/dos/d///file.121): Input/output error
cp: ERRS++ (1) write()
 88.74% (755840/851673 kbytes, 2323 kb/s)
cp: read   (/log/file.121): Bad file descriptor
cp: ERRS++ (2) read()
cp: past_data_copy errs_in =0, errs = 2
cp: exit_copy_guy (rc=0)
cp: CLOSE(fildes)
cp: close  (/log/file.121): Bad file descriptor
cp: ERRS++ (3) _close()
cp: CLOSE(fildes)
cp: close  (/dos/d///file.121): Bad file descriptor
cp: ERRS++ (4) _close()

QNX version: 6.4.1
both SD card and usb key is running on USB bus. I can see during copy devb-umass and io-usb processes are taking CPU 
usages

what could be the root cause of this?

Thanks in advance.
Re: cp command cause root directory is gone (/ point is unmounted)  
Hi Chris,

This is QNX 4 discussion board, but your question about QNX 6 (next version). Please repeat your question in right forum
.

Respectfully,
Oleg

5 сент. 2018 г., в 19:05, Chris Liang <community-noreply@qnx.com> написал:

> Hi,
> 
> I encounter a problem that using cp command to copy a large file (~1GB size) from USB to SD card or vise versa. during
 copying, error out and root directory is gone (/ mount point is umounted).
> 
> The following is verbose from cp:
> cp: LSTAT(/dos/d/,buf)
> cp: LSTAT(/log/file.121,buf)
> cp: copy_guy(/log/file.121,/dos/d///file.121)
> cp: OPEN(/log/file.121,0,0)
> cp: OPEN(/dos/d///file.121,2401,100640)
> cp: LSTAT(/dos/d///file.121,buf)
> cp: Copying /log/file.121 to /dos/d/file.121
> cp: write  (/dos/d///file.121): Input/output error
> cp: ERRS++ (1) write()
> 88.74% (755840/851673 kbytes, 2323 kb/s)
> cp: read   (/log/file.121): Bad file descriptor
> cp: ERRS++ (2) read()
> cp: past_data_copy errs_in =0, errs = 2
> cp: exit_copy_guy (rc=0)
> cp: CLOSE(fildes)
> cp: close  (/log/file.121): Bad file descriptor
> cp: ERRS++ (3) _close()
> cp: CLOSE(fildes)
> cp: close  (/dos/d///file.121): Bad file descriptor
> cp: ERRS++ (4) _close()
> 
> QNX version: 6.4.1
> both SD card and usb key is running on USB bus. I can see during copy devb-umass and io-usb processes are taking CPU 
usages
> 
> what could be the root cause of this?
> 
> Thanks in advance.
> 
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post119073
> To cancel your subscription to this discussion, please e-mail qnx4-community-unsubscribe@community.qnx.com

Re: cp command cause root directory is gone (/ point is unmounted)  
Hi,

Thanks for replying.

the filesystem is QNX 4.