Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

backing up SD to filename.img

Featured Replies

Hi, I am running Armbian Jessie (4.11.6-sunxi) on Banana Pi M1.

For reading and writing SD cards I use linux dd cmd on another box.

I do not have a Windows system.

My question is this: My SD card is a 16Gb device. With gparted I can reduce the size of the system to a partition that would easily fit on a 4Gb device.

But when writing the .img file dd will still see and write an image of 16 Gb

There must be a way to make an image that can be written to and booted from a smaller device to save resources on the backup disk.

Can anyone point me in the right direction ?

 

Using "truncate" with the "endsect" number shown by fdisk after gparted shrinking.

Here is the sequence :

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
sudo truncate --size=$[(endsect+1)*512] myimage.img

 

  • Author

Thank you, martinayotta, I'll try this today ! As I understand it I still have to make an imagefile of the full 16Gb before I can shrink it to below 4Gb. Maybe you can confirm this?

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.