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.

shrinkt sdcard and copy to other one

Featured Replies

Hello

I tried to shrink my sdcard (64gb, 17gb in use) and copy it to a 32gb card.

I found a tutorial, but it don't work

I fownloaded gparted and create a bootable device.

 

The instruction

1.resize2fs /dev/sda1 [new size of the partition]

in my case the original card is sdc1

2. Copy the shrinked device to the new device

dd if=/dev/sda of=/dev/sdb

 

In my case dd if=/dev/sdc of=/dev/mmcblk0

 

Is it really correct to use it without the "1" ? Sda, not sda1?

 

However It didn't work....

Gparted gui shows me, that the original sd card has the original size 58.24gb. But I shrinked it to 27gb..... with resize2fs /dev/sdc1 27000M

 

So I use gpated gui, by right click on device and select change volumesize.

This worked, now I shrink the partition to 17gb.

 

So looks good. After this , i tried

dd if=/dev/sdc1 of=/dev/mmcblk0 to copy the partition.

The odroid not boot, when I insert the card.

Thd card hasn't a partition table, maybe this is the fail.

 

So I do it again, but create a partition on the new sdcard, before i copy the old files on it. When I copy the files with dd, i will lose the partitions table.

 

What is the fail

 

Should i try to copy the full card to the new card

Remember: on the new card is one shrinked partition with my armbian (17gb) and the rest of the card isn't as a partition.

Thank you

IMG-20230929-WA0001.jpg

IMG-20230929-WA0002.jpg

IMG-20230929-WA0000.jpg

Edited by jumbo125

  • jumbo125 changed the title to shrinkt sdcard and copy to other one

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.