Success! Pine64 PBX
#4
To shrink an image under Linux :

Code:
sudo modprobe loop
sudo losetup -f
sudo losetup /dev/loop0 myimage.img
sudo partprobe /dev/loop0
sudo gparted /dev/loop0
sudo losetup -d /dev/loop0
fdisk -l myimage.img
truncate --size=$[(endsect+1)*512] myimage.img

when gparted started, select "partion resize", resize it a bit bigger than space needed, the "apply".
"endsect" should be replace by end-sector display by fdisk.


Messages In This Thread
Success! Pine64 PBX - by Mach10 - 11-20-2016, 08:03 PM
RE: Success! Pine64 PBX - by rdPine64 - 11-26-2016, 06:57 PM
RE: Success! Pine64 PBX - by Mach10 - 11-27-2016, 09:00 AM
RE: Success! Pine64 PBX - by martinayotte - 11-27-2016, 03:31 PM
RE: Success! Pine64 PBX - by Mach10 - 11-27-2016, 05:15 PM
RE: Success! Pine64 PBX - by swinging - 01-09-2017, 12:58 AM
RE: Success! Pine64 PBX - by glen - 02-19-2017, 05:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Programming languages support under PINE64 baryluk 6 12,062 09-23-2020, 11:46 PM
Last Post: Phillip Bell
  Manjaro arm on pine64+ roel 2 5,779 10-19-2019, 05:13 AM
Last Post: roel
  Volumio for PINE64 Released mikelangeloz 11 24,130 03-22-2019, 09:25 AM
Last Post: llungster
  I2S Audio patches for Pine64+ uploaded to GitHub ramstadt 1 3,961 01-19-2019, 11:31 AM
Last Post: ramstadt
  Pine64: Minimal SDL config Max11 3 5,853 01-04-2019, 03:47 PM
Last Post: Max11
  Fedora 27 on Pine64 gregjo 18 34,543 01-02-2019, 10:42 PM
Last Post: heatfanjohn
  Official build procedure of ayufan pine64 r.tanaka 0 3,065 08-21-2018, 10:54 PM
Last Post: r.tanaka
  DKMS on kernel 3.10.107-pine64 obrienmd 5 8,416 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 3,587 12-09-2017, 08:14 AM
Last Post: incoherent
  Fedora Running On Pine64! cztian 26 36,446 10-26-2017, 05:51 PM
Last Post: gregjo

Forum Jump:


Users browsing this thread: 1 Guest(s)