![]() ![]() Last thing is to copy the smaller img file back to your windows folder. Right Click on the img file, properties, and you should see the new size of the img file. Once it is done, close the Terminal window and refresh ( F5 ) the file manager window. Sudo pishrink.sh 20180316_octopi_DaveOB.img ( change the '20180316_octopi_DaveOB' to the file name of your img file ) Once done, you're ready to shrink the img file.įrom the txt file, highlight and copy the line Repeat this for each of the other 2 lines from the txt file. The wget line will be pasted - hit Enter to execute the line. The terminal will open ( looks like a DOS prompt Cmd screen ) Right Click on the blank area below the txt and img files, and select 'Open in Terminal' Right Click on the txt file and open it in the default text reader / notepadįind the line that starts with 'wget', highlight the line, right click and Copy.Ĭlick on the File icon to display the file manager again. Next, you need to download and install the PiShrink app ( once off operation ). watch the progress bar that appears on top of the 'files' icon on the left panel. NOTE : the 8Gb image file does take quite a while to copy. You should now have a copy of the txt file in the Linux Downloads folder. Then change location, on the left panel, to the Linux 'Downloads' folder. Right Click on the txt file and Click on Copy. You should now see the txt and the img files. If asked for a keyring pass, enter : berry Login with your windows username and windows login passwordĭocuments ( or whatever you named the folder that you shared in Windows ) Once loaded, we need to copy the txt file and the SD img file to the Linux machine :ĭave_Laptop ( that's my laptops name on the network - yours would be different ) Remove the Installation medium ( need to unlink the iso installation disk image ) When Linux installation is complete, click on Restart Sudo pishrink.sh 20180316_octopi_DaveOB.img Install pishrink ( if not already installed ) Save the following script lines to a txt file and save or copy in to the shared ( Documents ) folder. The file size form my 8Gb SD card was 7.6 Gb Use Win32DiskImager to 'read' the SD card to a local file in the shared folder ( in my case, the Documents folder ) On my PC, I have a network shared folder : F:\MyFiles\Documents It will start and begin the installation of Linux from the iso disk image Network : change NAT to Bridged - important, otherwise you won't be able to see your shared folders to transfer the files to and from Linux. ![]() ![]() Set the ISO storage to the uBuntu disk image that you downloaded Use the version 17 - just trust me on this.įile Location : Ubuntu1710 ( 7.10 is Ubuntu version that I downloaded )ĭisplay - set video memory to around 32Mb NOTE : do NOT use the version 16 - I tried that and wasted a day. I downloaded the Ubuntu 17.10 iso disk image from here : I downloaded and installed VirtualBox on Windows The disk image file was created using Win32DiskImager on the windows pc. When written to a 4 Gb SD card and loaded in the Pi, the partition automatically expands to fill the 4 Gb. When written to a 16 Gb SD card and loaded in the Pi, the partition automatically expands to fill the 16 Gb. So, in my case, the 8 Gb SD card is shrunk to 1.9 Gb. ![]() This solution allows you to shrink the size of the primary partition in the SD card image file, and it will automatically expand itself to whatever size card you write the img file back on to. It is a known fact that not all SD cards of equal 'size' are actually the same identical size, so an img file of one card may not fit on another card. If appears a command prompt type: startx.I have a Windows PC ( laptop ) and needed to shrink the size of my 8Gb disk image file. SystemRescueCd-x86-1.5.6.iso and add your new Virtual Disk, in my case is NewHardDisk1.vdi, see (Fig.1)Īnd if you did everything correctly, you will see a menu of the live-cdįrom which to launch the graphical version, the menu item n.5 (Fig. With the dimensions that are appropriate. Or, if you have the VirtualBox in Italian ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |