Closed GooTal closed 1 year ago
@GooTal I think it is not a BUG, you are trying to copy to a read-only filesystem. You need to mount a RAMDISK or TMPFS to get a read/write FS!
Oh thanks. i tried this and it worked.
mkrd 1024
mkfatfs /dev/ram0
mount -t vfat /dev/ram0 /tmp
mount -t hostfs -o fs=. /host
cp /host/AUTHORS /tmp
cat /tmp/AUTHORS
Hi, i built and run rv-virt:nsh64 and found that cp command is not working.
The command:
Built on the branch
releases/12.0
Then i mounted hostfs.
I try to copy file from hostfs, but is seems not OK:![图片](https://user-images.githubusercontent.com/40800103/236146803-710e9f89-f01f-4064-9934-b8f64a1d99f8.png)
I try to copy the status file, also failed:![图片](https://user-images.githubusercontent.com/40800103/236147017-c82b7a70-ddf9-4458-93b7-4bc267f23af1.png)
Is this a bug? Or could you provide me some advice in case i used in a wrong way? Thanks.