Gabri3lZ / SwitchrootAndroidUtils

Utils for Switchroots LineageOS Android ROM for Nintendo Switch
MIT License
45 stars 4 forks source link

./flash.sh: line 287: * 512: syntax error: operand expected (error token is "* 512") #5

Closed Crashdummyy closed 4 years ago

Crashdummyy commented 5 years ago

Hello,

I get the following error while trying to flash any of the images

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/mmcblk0.
The operation has completed successfully.
./flash.sh: line 287: * 512: syntax error: operand expected (error token is "* 512")
mount: /mnt/img-switch: can't find in /etc/fstab.
mount: /mnt/sd-switch: special device /dev/mmcblk0p1 does not exist.
cp: cannot stat '/mnt/img-switch/*': No such file or directory
umount: bad usage
Try 'umount --help' for more information.
umount: /dev/mmcblk0p1: no mount point specified.
losetup: option requires an argument -- 'd'
Try 'losetup --help' for more information.

Even the first operation apparently won't work for me.

sfdisk -d ./android-16gb.img.gz
sfdisk: ./android-16gb.img.gz: does not contain a recognized partition table
Gabri3lZ commented 4 years ago

Hi,

Sorry for the late response. It seems you did not extract the archive file (.gz file extension). You have to extract it and work with the uncompressed .img file directly.

Crashdummyy commented 4 years ago

Well but thanks for the reply anyway :) I'll try it again sometime later