Menu

mmcblk numbers change each boot

Arty Face
2022-11-02
2022-11-06
  • Arty Face

    Arty Face - 2022-11-02

    I'm using clonezilla-live-20221023-jammy-amd64
    I have an x86_64 SBC with a single emmc drive I need to image and then restore to multiple devices

    Each time I boot clonezilla, the mmcblk is detected differently it should be mmcblk0 and should always be mmcblk0 since it is the only mmcblk device. But sometimes it is detected as mmcblk1 or mmcblk2

    I'm trying to script this so the restore can happen automatically with no user intervention, but if the mmcblk number does not match then it errors.

    Is there anyway to force it to always only find mmcblk0? I assume this come from the kernel, but why would it misnumber the only existing mmcblk?

    I tried in my script to set the install target to whatever mmckblk was detected, and this stops the errors, seems to rename the partitions properly but it results in an unbootable system at the end, not configuring grub correctly maybe? The ubuntu 20.04 image that is on the device always correctly identifies the only mmcblk as mmcblk0, so not sure why the clonezilla kernel is misnumbering it, and why it can be different at each boot.

     

    Last edit: Arty Face 2022-11-02

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.