Comment 29 for bug 1736390

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I'm running into an issue mounting the image to get a kernel onto it. For some reason, I cannot mount /dev/nbd0p1:

sudo modprobe nbd

sudo qemu-nbd --connect=/dev/nbd0 ./autopkgtest-artful-i386.img

sudo mount /dev/nbd0p1 /mnt/test/
mount: /mnt/test: special device /dev/nbd0p1 does not exist.

sudo fdisk /dev/nbd0

Welcome to fdisk (util-linux 2.30.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): p
Disk /dev/nbd0: 12.2 GiB, 13098811392 bytes, 25583616 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xae40d318

Device Boot Start End Sectors Size Id Type
/dev/nbd0p1 * 2048 25583582 25581535 12.2G 83 Linux

fdisk can see that the nbd device has one partition, but I can't seem to mount it. Any suggestions?