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

Dump command error [Windows] #5

Open
Joseph-S1 opened this issue Jan 2, 2015 · 19 comments
Open

Dump command error [Windows] #5

Joseph-S1 opened this issue Jan 2, 2015 · 19 comments

Comments

@Joseph-S1
Copy link

When using the dump command on Windows the binary returns“Error making directories” and creates an empty folder where the freshly decrypted .dat files should be placed.

@RickyVonc
Copy link

try in C:\ , it work for me

@Joseph-S1
Copy link
Author

Thanks, that did work. Kakaroto should definitely add that you can only Dump to C:\ in his post. (I'm not sure if this is a bug, or just not mentioned...)

@tolga9009
Copy link

This is probably a bug and not a feature. By design, it should work for any path. mkdir_recursive() in tools.c:457 and archive_dump() in archive.c:748 (leading to this issue on fail) are designed for UNIX operating systems. Why it's working on C:\ root directory? No idea, I'm not experienced in Windows-specific programming - but it's a cool find!

@Joseph-S1
Copy link
Author

How about the CreateBackup command? It creates the backup but the files created are corrupted... I can't tell whether or not it is the packaging of the backup .dat files or the unreliable Dump corrupting the files from the beginning...

@kakaroto
Copy link
Owner

kakaroto commented Jan 3, 2015

Good thing it works for C: at least! I have no idea why it doesn't work for other paths. I hope someone can fix it and send me the patches :)

@Joseph-S1
Copy link
Author

Weird huh? There is also something going on with the CreateBackup command... Data is finding itself put in other archives! I will have to investigat e this further...

@kakaroto
Copy link
Owner

kakaroto commented Jan 3, 2015

Not sure what you mean by that, but please do investigate further and open issues as you see fit.
Unfortunately, I don't have time (or motivation) to be maintaining ps3xport, I just released it as is (3 years old code) without any recent testing so anyone is free to look over the code and fix stuff and I'll be happy to merge any pull requests that come my way.

@kakaroto
Copy link
Owner

kakaroto commented Jan 3, 2015

By the way, @homeedog, make sure you pull the changes from version 0.2 which had a fix for data corruption when using ExtractFile, maybe that's why you had corrupted files ?

@Joseph-S1
Copy link
Author

You've done more than enough m8. You've given an old OFW user hope! In all seriousness I will investigate further and get back with any new info.

@Joseph-S1
Copy link
Author

I did get 0.2 win binary. I'm also thinking up a way to actually delete files from backups since it seems easier to do than fix the createbackup. by fixing either one you could essentially perform the same tasks by just deleting the root directory on a backup and add a new one in using Add/Add protected... But thanks for the tool and the work put in and enjoy retirement!

@christorrella
Copy link

I can get most everything working by just dumping to C:\ (or external D:). So really, just always work with the root of the drive, and you should be good to go! I'm finding this is a very useful tool.
Thanks again kakaroto! :)

@Joseph-S1
Copy link
Author

Can you build correctly off C:/? That's my biggest issue right now...

@christorrella
Copy link

I can extract a folder, a file, and re-install a folder and file all from
C. I don't know about dumping.
On Jan 3, 2015 3:46 PM, "homeedog" [email protected] wrote:

Can you build correctly off C:/? That's my biggest issue right now...

Reply to this email directly or view it on GitHub
#5 (comment).

@Joseph-S1
Copy link
Author

I would like to dump my backup to C:, which works. Then edit (delete &add files) and use CreateBackup to repackage them... But create backup always skrews up my backup during restore and I can see that the file sizes are totally off...

@christorrella
Copy link

Yeah no, composing a backup is broken. I don't even understand how to add
the right folders. I just tried installing a backup with a modified file
structure after using AddProtected - with no dice. I'll try again.
On Jan 3, 2015 3:50 PM, "homeedog" [email protected] wrote:

I would like to dump my backup to C:, which works. Then edit (delete &add
files) and use CreateBackup to repackage them... But create backup always
skrews up my backup during restore and I can see that the file sizes are
totally off...

Reply to this email directly or view it on GitHub
#5 (comment).

@christorrella
Copy link

Another weird occurrence I just ran into; I got an error while trying to create a fresh backup from the PS3 itself: "The backup operation could not be completed. (some error code)". I tried it again, changing nothing, and it worked... I'm now backing up again. Weird O.o

@christorrella
Copy link

I tried AddProtected, and successfully added the directory/file, but I tried to extractfile the filrs that I added and got some jumbled mess. I think that not maintaining continuity in the archive and index folder structure (i.e. you have a backup with two folders, folders 1 and 2, and then adding another folder called 1 after; "1,2,1" is not a good way to go.) Whenever you add a new folder, the folder gets added to the end of the index. This might be confusin to the PS3/ps3xport app. I'll continue screwing around with it, but I cannot code in C (or whatever language this is made in) for my life! Hopefully somebody else can fix these glitches.

@christorrella
Copy link

I don't know what the rule is about double-posting here, but... I've successfully extracted, edited, and re-archived a backup of mine, and I tested the indexes of the archive2.dat and archive.dat files (and both match size.) But when I go to restore the backup on the PS3, I get an error saying "this backup was created on a different system," and then the system can't even put the generic data back on the hard drive (Error 80010037), and I'm forced to re-format the entire PS3. Something is going wrong parsing(?) the data that's put back into the backup archives/indexes when I re-compile.
I really hope somebody pulls this under their wing, because I sure as heck don't know much about coding something this advanced. Maybe it's time I learned?
Update: I didn't set the PSID. That's probably the issue. Whoops. I never got a warning about that.

@windrider42
Copy link

I know I got the “Error making directories” when trying to use G:/ as a directory
Otherwise great job KaKaRoTo on your release. I fully understand about life and not having time for all this console stuff,
Will use C:/ or try D:/

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

6 participants