Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BliKvm V3] Problem of using general USB msd #141

Open
KaoTuz opened this issue Feb 5, 2024 · 6 comments
Open

[BliKvm V3] Problem of using general USB msd #141

KaoTuz opened this issue Feb 5, 2024 · 6 comments
Assignees

Comments

@KaoTuz
Copy link

KaoTuz commented Feb 5, 2024

Hi

I have an problem of using general USB msd

I had created a usb and put some file in it by SCP command

and it could see and mount on the target side successfully

But when i want to add new file to the usb by the following two command

  1. Copy file to kvm
    scp xxx blikvm@xxxx:/mnt/msd/user/
  2. Sync file and target side
    sudo bash /usr/bin/blikvm/kvmd-msd.sh -c forward

The new file upload successful to the kvm terminal
But the new file do not sync to the target side,i could not see my new file in my target usb disk

First Transfer <--- It's OK
I create an folder efi/boot and put a file shellx64.efi in path /mnt/msd/user/efi/boot
Second Transfer <-- Could not see my new added file
i delete file shellx64.efi in path /mnt/msd/user/efi/boot, and add a file bootX64.efi into path /mnt/msd/user/efi/boot

is there anything that i need to notice or missing?

Code Release Version : V1.4.0
the Log after executing step2
Log.txt

@ThomasVon2021
Copy link
Owner

Can you test again without creating subdirectories and only placing files in the path? Based on the code, the script currently does not support creating folders. I want to confirm this.

@KaoTuz
Copy link
Author

KaoTuz commented Feb 5, 2024

I tried the following procedure and it had wired situation

  1. Create 1G usb disk

    sudo bash /usr/bin/blikvm/kvmd-msd.sh -c make -s 1 -t other
    
  2. First Transfer , put file by scp command and the file sync properly

    sudo bash /usr/bin/blikvm/kvmd-msd.sh -c forward
    

    Snipaste_2024-02-05_17-25-20

  3. Second Transfer , Add ReadME.md file by scp command and the file sync properly

    sudo bash /usr/bin/blikvm/kvmd-msd.sh -c forward
    

    Snipaste_2024-02-05_17-28-16

  4. Third Transfer , remove ReadME.md and add LICENSE file , sync incorrectly

    sudo bash /usr/bin/blikvm/kvmd-msd.sh -c forward
    

    Snipaste_2024-02-05_17-30-39

The deleted file(READNE.ms) sync to target magically, even the file had been removed in kvm terminal

@ThomasVon2021
Copy link
Owner

This is within expectations. You see it as a USB drive, where the files are copied in and the source is deleted, but the files in the USB drive are still there.
Unless you delete it on the target computer.

@ThomasVon2021
Copy link
Owner

May I ask if there are any further discoveries? If not, I plan to improve the readme. Regarding the two usage precautions you have discovered, I will then close the issue.

@KaoTuz
Copy link
Author

KaoTuz commented Feb 7, 2024

Is there would be an improved for creating sub directories ?

InnerCalmer added a commit that referenced this issue Feb 27, 2024
[BliKvm V3] Problem of using general USB msd #141
@ThomasVon2021
Copy link
Owner

Is there would be an improved for creating sub directories ?

https://github.com/ThomasVon2021/blikvm/blob/master/package/kvmd-msd/kvmd-msd.sh

Based on your requirements, we have fixed this issue. Can you manually use the latest script for testing first and then provide feedback on the results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants