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

fs_snapshot_rename: Invalid argument #2

Open
meddouribadis opened this issue Apr 16, 2023 · 2 comments
Open

fs_snapshot_rename: Invalid argument #2

meddouribadis opened this issue Apr 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@meddouribadis
Copy link

meddouribadis commented Apr 16, 2023

Hello,

Thanks for your hard work.
I get the following error once I run iproxy :

fs_snapshot_rename: Invalid argument

and here is the output of some commands you asked on reddit :

root@ (/var/root)# /mnt1/usr/bin/snappy -s
System Snapshot: com.apple.os.update-5BC2B14114A412931ACC06ED68B29800E14268BB230913656F584819E3D85E725FC81BE3F3184A4C84A702137873E366
root@ (/var/root)# /mnt1/usr/bin/snappy -f
snappy: option requires an argument -- f
Usage: snappy -f DIR [OPTIONS...]
	-h, --help		Print this help
	-f, --filesystem DIR	Filesystem to operate on (mountpoint)
	-l, --list		List snapshots on filesystem
	-c, --create NAME	Create a snapshot named NAME
	-d, --delete NAME	Delete a snapshot named NAME
	-r, --rename NAME	Rename a snapshot named NAME to name supplied by --to
	-m, --mount NAME	Mount snapshot named NAME to path specified by --to
					(Mount currently not working on iOS)
	-t, --to NAME
	-v, --revert NAME	Revert to snapshot named NAME
	-s, --showhash		Show the name of the system snapshot for this boot-manifest-hash
	-x, --to-system		Set the target snapshot name to be the iOS system-snapshot
	-o, --orig		Revert to the original pre-jailbreak snapshot
root@ (/var/root)# /mnt1 -l
-bash: /mnt1: is a directory

Also running this command /mnt1/usr/bin/snappy -f /mnt1 -r "com.apple.os.update-5BC2B14114A412931ACC06ED68B29800E14268BB230913656F584819E3D85E725FC81BE3F3184A4C84A702137873E366" -t orig-fs is returning the following :

Will rename snapshot com.apple.os.update-5BC2B14114A412931ACC06ED68B29800E14268BB230913656F584819E3D85E725FC81BE3F3184A4C84A702137873E366 on fs /mnt1 to orig-fs
fs_snapshot_rename: No such file or directory
Failure

Thanks in advance for your help !

@nick-botticelli nick-botticelli added the bug Something isn't working label Apr 26, 2023
@Jesse-0x
Copy link

Kinda similar issue here, but instead of it showing fs_snapshot_rename: Invalid argument it's showing fs_snapshot_rename: No such file or directory

root@ (/var/root)# /mnt1/usr/bin/snappy -f /mnt1 -l
Will list snapshots on /mnt1 fs
orig-fs
root@ (/var/root)# /mnt1/usr/bin/snappy -f /mnt1 -r "com.apple.os.update-5BC2B14114A412931ACC06ED68B29800E14268BB230913656F584819E3D85E725FC81BE3F3184A4C84A702137873E366" -t orig-fs                                
Will rename snapshot com.apple.os.update-5BC2B14114A412931ACC06ED68B29800E14268BB230913656F584819E3D85E725FC81BE3F3184A4C84A702137873E366 on fs /mnt1 to orig-fs
fs_snapshot_rename: No such file or directory
Failure

@nick-botticelli
Copy link
Owner

Yes the snappy usage ended up wrong; I was only able to perform what the script intends to do manually once; I wrote the script after. I might be able to test on a new device on iOS 13 soon, and a refactor of this whole project is needed. I'm pretty sure most of the binaries I added aren't needed, and I may not be very in line with snappy's license (oops...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants