Raspberry Pi: Resize Shrink SDCard Image Clone Backup Noobs

If you own a raspberry pi, in some cases it is useful to shrink the sdcard, cause you need often not more than 8/16GB.

What do you need and how to solve shinking or extending the OS:

Hardware you need:

  • 2 empty SDCards (Source + Dest.)
  • 2 SDCard Adaptors Micro-SD to SD Fullsize
  • 2 SD-USB Card Readers, i use them for stable work, cause USB SDCard Readers on Laptops often fails (Shared Sources)
  • 1 Laptop with Ubuntu CD inside the CD-Rom or installed ubuntu with gparted
gparted raspian shrink sdcard
gparted raspian shrink sdcard
gparted shrink progress pi
gparted shrink progress pi

Howto:

  • Plug the Cards into the Adaptors and into the Readers, connect to the Laptop
  • Boot ubuntu and rund $sudo gparted
  • On the destination SDCard (/dev/sdd) create a new msdos Partition Table, (Top Menu gparted)
  • Switch on gparted to Source SDCard (/dev/sdc) where noobs / raspian is
  • Copy first the primary and the last partition to the sdd-disk on same area! (start Bootloader + end Config)
  • Create on sdd at the middle area a new „extended“ partition
  • Go to Source Card sdc and Shrink the patition at the middle near to the „yellow“ area!
  • Enter at Menu the green arrow to start gparted work! Take a coffee now..
  • If gparted is ready the LED Controls of the Adaptors stop blinking! Copy the shrinked partition to sdd paste it into the extended partition
  • Here you can expand the middle partition to all free grey space
  • Enter the green arrow on menu to start gparted work again..
  • If ready (LEDS not blinking), close gparted plug out the cards, and use them to boot the PI

Remark:

  •   Do ALWAYS have a 2nd working Card for the PI as FULL BACKUP!! If a Update fails you are online by restore the SDCard in 10Minutes!!!

Feedback:

  • Mail me Errors if iam wrong..

Raspberry Pi: Raspian disadvantages of embedded OS

The last 12 month have been a „golden“ time of the upcomming embedded linux devices, but the custom OS’s offers some problems, you should know for projects:

  • embedded PC’s like the ARM based pi2 / pi3 uses a own compiled OS
  • not every known debian package is available
  • not all compile scripts to rebuild are available on git
  • slow performance can let you run into unuseable problems (heat, load, I/O), correct written scripts run into freezes without any error made by you!
  • you should take time for a closer look at buying them
  • calc the costs of non-x86 systems, later you cant often upgrade, cause embedded systems are not made for
  • dealers take too much money for less performance!
  • embedded devices can’t be grown up for additional precs like compression based on chips!
  • embedded devices need less energy, but can hangup by load over 65%, cause no cooling
  • the are made for learning and small control jobs
  • for NAS / Server jobs take x86 m-atx / micro-atx, cause you can access easy full debian packages
  • not all python + libs packages are available to run projects (example: acd_cli amazon cloud nas backup)
  • current embedded pc livetime at multimedia usage may be 24month cause to much and faster changes

May be that the arm os package trees may grow up, then we can talk again, but current x86 is the cheapest way to build systems without stress! And you have always the reserve to buildin new things of hardware..