mmgen / mmgen-geek-tools

Random scripts to make a geek’s life easier
GNU General Public License v3.0
15 stars 5 forks source link

lsblk: /dev/mapper/No: not a block device #8

Closed lsafelix75 closed 2 years ago

lsafelix75 commented 2 years ago

Hi,

I am getting the above error on Orange Pi Lite. Any cause that could throw this error? Thanks

                For detailed usage information,
                    invoke with the '-h' switch

get_armbian_image OK apt_install_host OK close_loopmount OK lsblk: /dev/mapper/No: not a block device lsblk: /dev/mapper/No: not a block device umount_target OK remove_build_dir OK Will write to target /dev/sda ( SD_Card_Reader 7.4G) check_sdcard_name_and_params OK create_build_dir OK

mmgen commented 2 years ago

The error seems to be produced by _get_device_maps(), which is called by _preclean()

Try running this on your Armbian host system:

$ sudo dmsetup ls

The output should be a list of device names and device numbers in parentheses, with no additional output. If one of the device names begins with "No" and contains a space, this could be the problem.

By the way, was the build successful? The script is untested for the Orange Pi Lite.

mmgen commented 2 years ago

Hi,

I am getting the above error on Orange Pi Lite. Any cause that could throw this error? Thanks

I've fixed the problem. Give the script a try again. If everything's successful, let me know and I'll add your board to the supported list.