Author Topic: pocketgo always takes a long time to boot, says "unclean shutdown"  (Read 484 times)

ceratophyllum (OP)

  • Posts: 17
I always shut down my pocketgo using the menu icon, but it still says "unclean shutdown" EVERY SINGLE TIME I boot the thing, which takes a long time. (I imagine it is running fsck?)

So I investigated a little:

 I shut down the pocketgo from the menu, waited for black screen before flipping the power switch.

Then I took the 128GB Sandisk card and put it in a linux PC. Ran fsck on /dev/mmcblk0p1, /dev/mmcblk0p2,  /dev/mmcblk0p4.  Everything was fine, except for mmcblk0p4, the big FAT32 partition, which was not cleanly unmounted even though I had properly shut down the pocketgo:

Code: [Select]
sudo fsck.msdos /dev/mmcblk0p4
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/mmcblk0p4: 29511 files, 10559374/30959755 clusters


So what is the problem? I'm using latest image from jutley's:

https://ozgur.kazancci.com/jutleys/09-Pocketgo/V1.3.1/PocketGo.V1.3.1_CFW_19-09-2019.img.7z




Output of fdisk -l is below:

Code: [Select]
Disk /dev/mmcblk0: 119.9 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa3bf7689

Device         Boot   Start       End   Sectors   Size Id Type
/dev/mmcblk0p1         2048    526335    524288   256M  e W95 FAT16 (LBA)
/dev/mmcblk0p2       526336   1050623    524288   256M 83 Linux
/dev/mmcblk0p3      1050624   1574911    524288   256M 82 Linux swap / Solaris
/dev/mmcblk0p4      1574912 249737215 248162304 118.3G  b W95 FAT32


Current-ish Handhelds: All (3)DS(i) (XL) models, OpenPandora
Classic Handhelds: All GB(A) models
RS-97: Retrogame, RG Plus, PAP KIII Plus,  RG300, LDK (portrait)
other: PocketGo, Retrostone, Revo K101 Plus (GBA hardware clone)
----------
Glad I sold that GCW0 before it fell apart!
Should have sold that Retromini RS-90 before it broke!

indask8

  • Posts: 70
Re: pocketgo always takes a long time to boot, says "unclean shutdown"
« Reply #1 on: November 01, 2019, 09:30:29 am »
Install the 1.3.2 image
https://mega.nz/#!9shXUSgQ!egCyCrjY-5xLSAP6NuTYCUIiJZ6oInS0gKiukfY-TGU

here's the changelog :
Quote
Changelog .V1.3.2CFW-05-10-2019
*Fixed fsck disk check was not working in v1.3.1
*New image size now 680mb zipped download :)
*Added new game reminiscence
*Added new game evil australians
*Added new game gnp
*Updated yatka game tetris clone
*Fixed FBA emulator not showing on home screen
*Added new icons for newer releases

ceratophyllum (OP)

  • Posts: 17
Re: pocketgo always takes a long time to boot, says "unclean shutdown"
« Reply #2 on: November 05, 2019, 01:43:43 pm »
Could you host this someplace other than Mega? I don't have good internet (unreliable, slow 750 KB/sec  DSL) and I have downloaded half of this file 4 times. Mega says it can pause/resume but it doesn't work: it just starts all over if the download is interrupted.


EDIT: Nevermind, I finally got it on try #5. Guess the line noise is less today.
I took a look at the script /etc/main, located on the rootfs (partition #2)

fsck is started from:
Code: [Select]
#Check if fat32 is flagged as "dirty", and if so unmount, repair, remount
if dmesg | grep "mmcblk0p4" > /dev/null;  then
echo -e "\e[31mUnclean shutdown detected.\e[0m"
echo -e "\e[32mChecking FAT32 partition...\e[0m"
umount /dev/mmcblk0p4

fsck.vfat -y /dev/mmcblk0p4 > /dev/null;

mount /dev/mmcblk0p4 /mnt -t vfat -o rw,sync,utf8
echo -e "\e[32mCheck complete.\e[0m"
fi


It appears the only diff is that v1.3.1 said:
Code: [Select]
fsck.vfat -a /dev/mmcblk0p4 > /dev/null;


Holy hell, I just download 680MB five times to change a few characters in a text file.
« Last Edit: November 05, 2019, 01:59:08 pm by ceratophyllum »
Current-ish Handhelds: All (3)DS(i) (XL) models, OpenPandora
Classic Handhelds: All GB(A) models
RS-97: Retrogame, RG Plus, PAP KIII Plus,  RG300, LDK (portrait)
other: PocketGo, Retrostone, Revo K101 Plus (GBA hardware clone)
----------
Glad I sold that GCW0 before it fell apart!
Should have sold that Retromini RS-90 before it broke!

quadjfet

  • Posts: 75
Re: pocketgo always takes a long time to boot, says "unclean shutdown"
« Reply #3 on: November 08, 2019, 03:20:19 am »
You can structure your SD card with a small FAT partition and enlarge your EXT4 partition instead and put roms in there.

zxc314

  • Posts: 1
Re: pocketgo always takes a long time to boot, says "unclean shutdown"
« Reply #4 on: November 14, 2019, 11:04:22 pm »
I'm having the same issue. It's super annoying. Any chance you could give directions on how to change the partition size on a Windows machine?

 

Post a new topic