Skip to contentSkip to conversation

kpartx -l side effects

DISCUSSION Pádraig Brady 2 participants 5 messages Jan 12, 2012 – Jan 13, 2012 Device mapper

lore
Share & tools
lore
maintainer
#1 lore raw
Quoted 7 lines · Pádraig Brady

I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
kpartx -l /bin/ls
Now I get "text file busy" when trying to run ls.
How does one undo that?

cheers,
Pádraig.

Run losetup -a, you find that one of loopback devices is assigned to /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to remove that block device. Then, you can use /bin/ls again.

Mikulas

#2 lore raw
Quoted 9 lines · Mikulas Patocka
Quoted 5 lines · Pádraig Brady

I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
kpartx -l /bin/ls
Now I get "text file busy" when trying to run ls.
How does one undo that?

Quoted 6 lines
Quoted 2 lines

cheers,
Pádraig.

Run losetup -a, you find that one of loopback devices is assigned to /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to remove that block device. Then, you can use /bin/ls again.

Cool that works.
It's still a bug though right?
I.E. kpartx -l has side effects (only when it can't map partitions).

cheers,
Pádraig.

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

maintainer
#3 lore raw
Quoted 17 lines · Pádraig Brady
Quoted 9 lines · Mikulas Patocka
Quoted 5 lines · Pádraig Brady

I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
kpartx -l /bin/ls
Now I get "text file busy" when trying to run ls.
How does one undo that?

Quoted 6 lines
Quoted 2 lines

cheers,
Pádraig.

Run losetup -a, you find that one of loopback devices is assigned to /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to remove that block device. Then, you can use /bin/ls again.

Quoted 6 lines

Cool that works.
It's still a bug though right?
I.E. kpartx -l has side effects (only when it can't map partitions).

cheers,
Pádraig.

It may be a bug. You can report it to kpartx developers.

Mikulas

#4 lore raw
Quoted 25 lines · Mikulas Patocka
Quoted 21 lines · Pádraig Brady
Quoted 9 lines · Mikulas Patocka
Quoted 5 lines · Pádraig Brady

I was playing around with kpartx on 2.6.40.4-5.fc15.x86_64 and did:
kpartx -l /bin/ls
Now I get "text file busy" when trying to run ls.
How does one undo that?

Quoted 6 lines
Quoted 2 lines

cheers,
Pádraig.

Run losetup -a, you find that one of loopback devices is assigned to /bin/ls (for example /dev/loop0). Then, run losetup -d /dev/loop0 to remove that block device. Then, you can use /bin/ls again.

Cool that works.
It's still a bug though right?
I.E. kpartx -l has side effects (only when it can't map partitions).

Quoted 6 lines
Quoted 2 lines

cheers,
Pádraig.

It may be a bug. You can report it to kpartx developers.

Mikulas

Sorry, http://christophe.varoqui.free.fr/ pointed here. I've copied Christophe directly.

thanks,
Pádraig.

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel