Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error executing partprobe during build

Featured Replies

Hello all,

 

  I am receiving this error while building the image:

 

Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/loop0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

 

I am .

 

This happens in the partitioning phase (lib/functions/image/partitioning.sh line 229, using branch "v23.11" commit bba856bb57823556e12fa180284c7490fdd3708d😞

  run_host_command_logged partprobe "${LOOP}"

 

Investigated a lot, tried to unmont the image, losetup -d the loop device but nothing helped.

 

Can you please help me?

 

Kind regards,

 

   Andrea

 

 

 

Solved by Andrea

  • Author

Despite the fact the problem is very similar, I am not using WSL2 to build. I am using a Ubuntu VM :

 

Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-94-generic x86_64)

 

andrea@armbian:~$ uname -a
Linux armbian 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 

User adeepn confirms that it happens also on Ubuntu w/kernel 5.15.

 

I will try to upgrade to 6.1 and let you know.

 

Thanks for the hint

  • Author
  • Solution

I confirm that using an updated kernel (6.7.3) the build succeds.

 

Linux armbian 6.7.3-060703-generic #202401311935 SMP PREEMPT_DYNAMIC Thu Feb  1 00:46:47 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

 

Thank you very much!

 

 

 

12.02.2024 в 14:35, Andrea сказал:

Can you please help me?

partprobe /dev/loop2
   Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,........
...........

This is the result of incorrect processing of operations with the loop device in the assembly system itself.
Some versions of Linux kernels have a delay with these operations, and the BASH script continues without waiting

for the operation to complete. As a result, we see a lot of open loop devices.

 

@Igor

Are further explanations required?

37 минут назад, Igor сказал:

I don't know why / when this bug was introduced :( but kernel upgrade workarounds it.

Working with loop devices in BASH is similar to opening a file for reading and closing it after completing the operation in the C language.

In the build system, there is a code that remembers the open loop device and there is a code that should delete\close the loop device.
But for some reason this does not happen.
May it be necessary to wait for the operation to complete?
The problem is in the build system.


Perhaps the new kernel is faster?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.