11-10-2020, 11:28 AM
When you say something like GParted doesn't recognise the MMC drive, what exactly do you mean?
My suspicion is that because you've managed to write an ISO image to the drive that all the installers and the higher level parts of OS builds like Gparted are seeing this as a CDROM and so aren't going to let you do anything with it.
If that is the case I suspect that you will have to do some fairly low level surgery such as using dd to write data to the drive to wipe enough of the ISO image to allow other tools to recognise the drive as usable - something like
The above should be enough to wipe any space otherwise used by boot blocks and partitioning tables on the drive and avoid the drive appearing as a CDROM. Before trying this however:
I'd be doing this from a shell on Clonezilla or GParted - most GUI tools don't really allow you to do this... you may find it necessary to reboot your rescue OS after the wipe to get it to look at the MMC drive afresh.
Good luck!
My suspicion is that because you've managed to write an ISO image to the drive that all the installers and the higher level parts of OS builds like Gparted are seeing this as a CDROM and so aren't going to let you do anything with it.
If that is the case I suspect that you will have to do some fairly low level surgery such as using dd to write data to the drive to wipe enough of the ISO image to allow other tools to recognise the drive as usable - something like
Code:
dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=16
The above should be enough to wipe any space otherwise used by boot blocks and partitioning tables on the drive and avoid the drive appearing as a CDROM. Before trying this however:
- make sure you understand what that command is doing! (you may have to increase the count to make sure of wiping GPT, so google something like "wipe GPT" as part of your research)
- use the mount command to see if the OS has automounted the MMC device or any of it's partitions as filesystems and if so umount those filesystems first
I'd be doing this from a shell on Clonezilla or GParted - most GUI tools don't really allow you to do this... you may find it necessary to reboot your rescue OS after the wipe to get it to look at the MMC drive afresh.
Good luck!