Jump to content

Recommended Posts

Posted (edited)

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines