Skip to content

unable to mount partition after losetup #7

@leslie-qiwa

Description

@leslie-qiwa

Thanks for the great package!

I use the example program to attach one device, but seems like unable to mount it. Can you help with it?

# losetup
NAME       SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE                DIO LOG-SEC
/dev/loop0         0      0         0  0 /tmp/deploy/newimage.img   0     512

# fdisk -l
Disk /dev/loop0: 4.9 GiB, 5242880000 bytes, 10240000 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: 0x9f0032d8

Device       Boot   Start      End Sectors  Size Id Type
/dev/loop0p1 *       2048  2099199 2097152    1G 83 Linux
/dev/loop0p2      2099200  3123199 1024000  500M 82 Linux swap / Solaris
/dev/loop0p3      3123200 10239999 7116800  3.4G 83 Linux

# mount /dev/loop0p1 ./tt/
mount: /tmp/deploy/tt: special device /dev/loop0p1 does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions