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

Issue with Stock SD card migrate option #6

Open
PhyrexTechs opened this issue Mar 25, 2024 · 4 comments
Open

Issue with Stock SD card migrate option #6

PhyrexTechs opened this issue Mar 25, 2024 · 4 comments

Comments

@PhyrexTechs
Copy link

Was working on making a YouTube video for this tool but ran into an issue with the Migrate option.

When trying the option to "Migrate stock SD card to a new SD card with Onion"
It will not let me do the backup of the SD card.
I get this instead

image

This is the info from the console.

Selected option in 'Install or Update Onion': System.Windows.Forms.RadioButton, Checked: True.text
C:\Onion-Desktop-Tools-0.0.9
Title: Select stock SD card
Drive Number: 7
Drive Size: 58.9GiB
Drive Description: Generic STORAGE DEVICE
Drive Letter: K
--------------------------
Disk Number: 7
Disk Letter: K
Disk Number: 7
Disk Letter: K
Selected Tag: 7,K
-Drive_Number:\miyoo\app\.tmp_update\onion.pak
     --- (unknown version)
  Local backup folder : C:\Onion-Desktop-Tools-0.0.9\backups\2024-03-25 11.56.15__(unknown version)
**************************************=-=-=-= C:\Onion-Desktop-Tools-0.0.9\backups\2024-03-25 11.56.15__(unknown version)
Form result : OK
Join-Path : Cannot find drive. A drive with the name '-Drive_Number' does not exist.
At C:\Onion-Desktop-Tools-0.0.9\Onion_Save_Backup.ps1:284 char:23
+ ...     $RomsSource = Join-Path -Path ${Drive_Letter}:\ -ChildPath 'Roms'
+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (-Drive_Number:String) [Join-Path], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.JoinPathCommand

Looks like It is trying to use "-Drive_Number" instead of the actual driver number. I tried another stock SD card same issue.
When trying to just use the backup tool and not the migrate tool it lets me back up without issue.

@alexparvus1
Copy link

alexparvus1 commented Mar 29, 2024

I have the same issue.
Tried to run application "Run as administrator" but have the same behaviour.
Tried even with fresh created SD card with latest OnionOS v4.3.0 - the same problem - checkboxes are greyed out and backupping wasn't start.

Upd: The same issue with version 0.0.8

@Sciamano72
Copy link

Same exact behaviour here.

@AnthRD-retro
Copy link

Me too

@UnglazedSquash
Copy link

FYI the fix from vladborovtsov works to resolve this issue.

Open the Menu.ps1 file using a text editor like notepad++ or something else that shows line numbers to make it easy to see where to edit. Go to line 160.

Before:
. "$PSScriptRoot\Onion_Save_Backup.ps1" -Drive_Number $CurrentDrive[0]

After you change line:

. "$PSScriptRoot\Onion_Save_Backup.ps1" $($CurrentDrive[1])

After you make the change save the Menu.ps1 file when closing it. Then run the launcher again. This fixed it for me.

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

5 participants