mrfenyx / RPi-Zero-W-WiFi-USB

Use the Raspberry Pi Zero / Zero 2 W as a WiFi USB Stick
GNU General Public License v3.0
17 stars 3 forks source link

Change size of fileshare afterwards #3

Closed peevishkiwi closed 7 months ago

peevishkiwi commented 7 months ago

Not an issue, a question! First of all, thank you for sharing. This makes my life much easier as my printer is located in another room.

I choose the automatic installation and it worked great. Now i am just wondering if it is possible to change the size of the fileshare afterwards from count=2048 to count=4096 for example. Did some reasearch bit did not find anything which would help. Or do i need to reinstall using the manual way?

mrfenyx commented 7 months ago

Hi, I have not tried it myself yet but maybe this can help: https://superuser.com/questions/693158/can-i-expand-the-size-of-a-file-based-disk-image

peevishkiwi commented 7 months ago

Thanks for the link! Using the command "dd if=/dev/zero bs=1 count=4096 >> ./piusb.bin" from your link i was able to make the .bin 4GB bigger. This was verified using the other commands from the forum.

However the share is still 2GB. I restarted the PI and also tried formating it again, still shows 2GB. Last thing i tried was to unmount the share and remount it --> Windows is still showing 2GB.

Will try to experiment a bit in the next days. Seems to be way more complex than expected.

peevishkiwi commented 7 months ago

I experimented a bit but couldn't really get the size of the share in Windows up, despite Linux telling me the size of the file has been increased successfully. So i reinstalled and just modified the install.sh script by replacing 2048 with the number i wanted (4096 in my case). And now i have a 4GB in windows share which is working fine.

Did not go above 4GB, as i had trouble with my printer registering USB sticks which are larger then 4GB, but would be interesting to test if this will be the same for a share. Anyway, working for me now with the desired 4GB. Thank you so much for this handy script. Marking this as closed! USBshare 4GB