Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #238204

Re: losetup: cannot find an unused loop device , kernel config of loopback device

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: losetup: cannot find an unused loop device , kernel config of loopback device
Date 2021-08-05 14:10 +0200
Message-ID <CIKme-37N-3@gated-at.bofh.it> (permalink)
References <CIKcy-2Ph-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Aug 05, 2021 at 04:36:59AM -0700, Colin Williams wrote:
> I'm running bullseye / debian 11.0 testing. I have been running a
> script that is supposed to write a filesystem image (for chromiumOS).
> In short I'm getting the following
> 
> losetup: cannot find an unused loop device
> partx: stat of  failed: No such file or directory
> partx: stat of  failed: No such file or directory

Could you please do a quick

  sudo losetup -a

and perhaps

  ls /dev/loop*

and tell us the result?

> Looking up the error someone mentioned that the kernel needed to be
> configured to support loopback devices [...]

It would be an exotic kernel lacking that. Perhaps they are all used?

> Better yet, does anyone know how to solve my problem with the script
> or losetup? Could this be an issue building from a chroot environment
> with a different kernel version? Or building the image from a btrfs
> filesystem?

First let's try to understand what is going on. Perhaps some uncivilised
script has left around busy but unused loop devices.

Cheers
 - t

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

losetup: cannot find an unused loop device , kernel config of  loopback device Colin Williams <colin.williams.seattle@gmail.com> - 2021-08-05 14:00 +0200
  Re: losetup: cannot find an unused loop device , kernel config of  loopback device <tomas@tuxteam.de> - 2021-08-05 14:10 +0200
  Re: losetup: cannot find an unused loop device , kernel config of loopback device "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-05 15:10 +0200
    Re: losetup: cannot find an unused loop device , kernel config of  loopback device The Wanderer <wanderer@fastmail.fm> - 2021-08-05 15:40 +0200
      Re: losetup: cannot find an unused loop device , kernel config of loopback device "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-05 16:10 +0200
    Re: losetup: cannot find an unused loop device , kernel config of  loopback device Colin Williams <colin.williams.seattle@gmail.com> - 2021-08-07 07:10 +0200
      Re: losetup: cannot find an unused loop device , kernel config of  loopback device <tomas@tuxteam.de> - 2021-08-07 09:50 +0200
      Re: losetup: cannot find an unused loop device , kernel config of loopback device "Thomas Schmitt" <scdbackup@gmx.net> - 2021-08-07 09:50 +0200
        Re: losetup: cannot find an unused loop device , kernel config of  loopback device Colin Williams <colin.williams.seattle@gmail.com> - 2021-08-07 10:30 +0200

csiph-web