Device file listed by fdisk doesn't exist

Volker Wysk post at volker-wysk.de
Sat Jun 20 13:36:51 UTC 2020


Am Samstag, den 20.06.2020, 15:13 +0200 schrieb Oliver Grawert:
> hi,
> Am Samstag, den 20.06.2020, 13:44 +0200 schrieb Volker Wysk:
> > 
> > I've set up a loop device, like this (*.img part is the image
> > file):
> > 
> > losetup -f "2020-01-09 Wartung 1804.img"
> > 
> 
> losetup only sets up the device, it does not process any partition
> tables ... you want to use kpartx instead ...
> 
> ----
> $ sudo kpartx -av ubuntu-core-18-amd64.img
> add map loop86p1 (253:0): 0 2048 linear 7:86 2048
> add map loop86p2 (253:1): 0 102400 linear 7:86 4096
> add map loop86p3 (253:2): 0 71050878 linear 7:86 106496
> $ ls /dev/mapper/
> control  loop86p1  loop86p2  loop86p3
> $ sudo kpartx -d ubuntu-core-18-amd64.img
> loop deleted : /dev/loop86
> $ ls /dev/mapper/
> control
> $
> ----

Yes, this works. Thanks!

But I still wonder about the device files which fdisk lists. Seems to
be a bug...

Cheers,
Volker





More information about the ubuntu-users mailing list