sunzone Posted November 6, 2018 Share Posted November 6, 2018 On 3/14/2017 at 4:33 AM, tkaiser said: Sure. But the new card has to be at least 'of same size' otherwise partitioning will throw errors. You can search the forum for 'backup sd card emmc' or 'mmcblk0 dd lz4' to get a lot of valuable stuff regarding creation of device images. But as zador already mentioned take care that filesystem isn't corrupted and try at least to repair it if that's true. In case new card is significantly larger you might want to expand rootfs again. With all updates applied running off new card it should be as simple as sudo systemctl enable resize2fs && sudo reboot Hello. My image for Orange Pi One has the following build after apt update and apt upgrade ARMBIAN 5.60 stable Ubuntu 16.04.5 LTS 4.14.70-sunxi "sudo systemctl enable resize2fs" does not work anymore Error message says "Failed to execute operation: No such file or directory" "sudo systemctl enable resize2fs && sudo reboot" works on old kernal images @tkaiser could you please advise how to reinstate SD card resize on first boot? Thank You. Link to comment Share on other sites More sharing options...
sunzone Posted November 6, 2018 Author Share Posted November 6, 2018 I check on the latest stable released "Armbian_5.65_Orangepione_Ubuntu_bionic_next_4.14.78" image after apt update and upgrade, and the result is the same for "sudo systemctl enable resize2fs" Error: Failed to enable unit: Unit file resize2fs.service does not exist. How can I reinstate SD card resize(full partition expansion) on restart? Link to comment Share on other sites More sharing options...
sunzone Posted November 6, 2018 Author Share Posted November 6, 2018 On 3/16/2017 at 5:43 AM, tkaiser said: Just as a reference: the rootfs resizing moved in the meantime: Quote sudo systemctl enable resize2fs Command does not work in "Armbian_5.65_Orangepione_Ubuntu_bionic_next_4.14.78" image Error: Failed to enable unit: Unit file resize2fs.service does not exist. ARMBIAN 5.60 stable Ubuntu 16.04.5 LTS 4.14.70-sunxi Version, similar problem Error: Failed to execute operation: No such file or directory Can anyone advice on how to reinstate SD card resize(full partition expansion) on restart. Link to comment Share on other sites More sharing options...
Igor Posted November 6, 2018 Share Posted November 6, 2018 2 hours ago, sunzone said: and the result is the same Nope, resizing works. Check. Link to comment Share on other sites More sharing options...
martinayotte Posted November 6, 2018 Share Posted November 6, 2018 6 hours ago, sunzone said: Error: Failed to enable unit: Unit file resize2fs.service does not exist. The service is "armbian-resize-filesystem" ... 1 Link to comment Share on other sites More sharing options...
sunzone Posted November 6, 2018 Author Share Posted November 6, 2018 8 hours ago, martinayotte said: The service is "armbian-resize-filesystem" ... It works. Thank You. Enabling "armbian-resize-filesystem" service did it for me. Quote systemctl enable armbian-resize-filesystem Link to comment Share on other sites More sharing options...
Recommended Posts