Device file listed by fdisk doesn't exist
Oliver Grawert
ogra at ubuntu.com
Sat Jun 20 13:13:26 UTC 2020
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
$
----
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200620/daba6406/attachment.sig>
More information about the ubuntu-users
mailing list