EV3dev SDcard partitions: mgmt with Windows vs Linux machines #1663
Growflavor
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A place to share useful EV3 partition & file system insights.
An EV3dev 32GB SDcard with multiple partitions with various file systems can be useful.
CHroot to fix things likely also can be useful...but so far for an SDcard still seems to require an actual machine running linux since WSL2 still does not mount SDcards: microsoft/WSL#8408 (comment)
Windows diskmgmt in combination with Debian fdisk & resize2fs:
After flashing EV3dev images to SDcard with Balena Etcher, in a number of cases the file system will expand to fill the whole SDcard during the first boot.
So on cards where I would like to limit the size of the EV3dev partitions, immediately after flashing the SD via etcher, I have used Windows disk management to create additional partitions on the SD.
If I want my main EV3dev partition to end up at about 8GB then usually create a 4GB place holder partition adjacent to the partition created by Etcher, then a bunch of other partitions of various sizes...some I use for swap, some to store files in NTFS and FAT32 file systems.
Then with fdisk from SSH terminal to the booted EV3dev, I can delete a place holder partition & expand the EV3dev main partition & file system...
https://serverfault.com/questions/994448/extend-linux-partition-size-without-losing-any-data-techniques
or change the filesystem of a partition to ext4, mount/unmount disk partitions, etc...
robot@ev3dev:~$ sudo fdisk -l
[sudo] password for robot:
robot@ev3dev:~$ sudo fdisk /dev/mmcblk0
robot@ev3dev:~$ sudo reboot
robot@ev3dev:~$ sudo resize2fs /dev/mmcblk0p2
robot@ev3dev:~$ sudo reboot
Beta Was this translation helpful? Give feedback.
All reactions