Questions tagged [loop-device]

72 questions
99
votes
2 answers

What is /dev/loopx?

$ df -kh Filesystem Size Used Avail Use% Mounted on udev 7,8G 0 7,8G 0% /dev tmpfs 1,6G 19M 1,6G 2% /run /dev/sda2 622G 227G 364G 39% / tmpfs 7,8G 1,1G 6,7G 14% /dev/shm tmpfs …
mark
  • 1,303
16
votes
4 answers

Can't mount ISO file as loop device: Error: “failed to setup loop device”

sudo mkdir -p /media/cdrom cd ~ sudo mount -o loop ubuntu-* / mount: ubuntu-*: failed to setup loop device: No such file or directory
15
votes
2 answers

How to remove /dev/loops

On my Ubuntu desktop, the command fdisk -l shows /dev/loopX up to /dev/loop23. I'm using gnome-fallback on Ubuntu 18.04 LTS. I'm wondering what possible effects these could have on performance and stabilty of the OS, and if they are just…
Karlom
  • 804
11
votes
4 answers

How do I hide the loop partitions in Nautilus created by Snap app?

I've a lot of partitions named loop they're likely created by a snap app called Anbox, I could care less about lopp0 to loop4 but the partition named loop5 which is mounted at /media/sumeet/disk appears in nautilus 326mb volume is the loop…
8
votes
0 answers

wifi doesn't work with various error messages

I've upgraded to ubuntu 16 , then I've a problem with wifi as it doesn't work and gives me message "device not ready" when it try to make the dev up $sudo ip link set wlo1 up RTNETLINK answers: Operation not possible due to RF-kill the device with…
molhm
  • 101
7
votes
3 answers

In the Disks (Disk Utility) application in 14.04, what does the auto-clear setting do?

I'm playing with some disk images via loopback devices (e.g. /dev/loop0). When viewed in the Disks (Disk Utility) application there's a setting labeled "Auto-clear" which is currently set to OFF. What does this setting do? Is it specific to…
RobM
  • 330
7
votes
1 answer

losetup: raspbian-20200505.img: failed to set up loop device: Device or resource busy

I am trying to shrink the image file from raspbian in Ubuntu18 so that it become small in size and easy to transfer. I am following this video where the person uses below command to setup a loop device sudo losetup /dev/loop0 raspbian-20200505.img…
S Andrew
  • 514
7
votes
1 answer

Why are there multiple loop devices for the same snap?

I used lsblk to check connected devices, when I found that there are a total of 3 loop devices for the same snap "core", with revision numbers. loop1 7:1 0 81.6M 1 loop /snap/core/4110 loop2 7:2 0 81.7M 1 loop /snap/core/4017 loop0 …
Apurv
  • 73
6
votes
1 answer

What is the function of the list of loop devices?

A lot of strange loop devices appear in my Kubuntu OS. [translation: Hard disk 107.4GB Hard disk 487.0GB Loop Device Hard Disk 4.0GB Loop Device Loop Device Loop Device Loop Device Victor Disk] Can anybody…
victorsnk
  • 109
6
votes
1 answer

How to route pulse audio device into alsa loopback (virtual microphone)?

I want a flash application that wants to record my microphone (something like https://online-voice-recorder.com/) to record a Pulse Audio source. I figured, that flash uses ALSA. So I installed the Alsa loop device sudo modprobe snd-aloop, which…
5
votes
2 answers

Loop module not present on Ubuntu installation

sudo modprobe loop max_loop=255 does not return an error, but lsmod | grep "loop" returns nothing. Likewise find /lib/modules/$(uname -r) -name "loop.ko" doesn't print any paths to the screen. I'd think that this was because it was missing, but if I…
Melab
  • 1,708
5
votes
1 answer

WSL - /dev/loop0 workaround

I am trying to setup Bochs as shown in this tutorial. However, I'm using WSL and there is no loop0 device. # bochsrc.txt # megs: 32 romimage: file=/usr/share/bochs/BIOS-bochs-latest, address=0xf0000 vgaromimage:…
4
votes
2 answers

How to create a virtual network interface in Ubuntu?

I'm testing a network program on Ubuntu. Is there any way to create a virtual network interface in Ubuntu. Something like lo is good, but unfortunately there is bunch of packets on lo with 127.0.0.1 as source and destination IP addrress.
4
votes
1 answer

mounting iso file as loop device

I'm trying to shrink my raspberry pi images following this tutorial: https://softwarebakery.com/shrinking-images-on-linux root@host:~# modprobe loop # no errors returned root@host:~# lsmod | grep loop # returns nothing - this is…
Drew
  • 225
4
votes
2 answers

Creating disk images as a normal user

I want to be able to run the following script as normal user (as root it runs fine): #!/bin/sh dd if=/dev/zero bs=8192 count=128 of=disk.img mkfs -t ext2 -F disk.img losetup /dev/loop0 disk.img mount /dev/loop0 echo aaaa > /mnt/aa umount…
Leszek
  • 161
1
2 3 4 5