ubirmvol:ing gluebied volumes

Ricard Wanderlof ricard.wanderlof at axis.com
Fri May 6 08:17:37 EDT 2011


I enabled the gluebi MTD emulation layer in the kernel, and was pleased to 
see all the UBI volumes coming up in /proc/mtd as mtd volumes.

However, one thing though, if I try to ubirmvol one of the UBI volumes, I 
get:

ubirmvol: error!: cannot UBI remove volume
           error 16 (Device or resource busy)

similar to what I get if I have a mounted ubifs residing in an UBI volume 
and try and ubirmvol the volume without umounting the file system.

Fair enough, I guess gluebi is keeping the UBI volume busy? But then how 
do I free it up? There's normally no way to disassociate mtd partitions 
from the underlying media, and I can't see any ubi tool that would do this 
either.

So is this an (unfortunate) consequence of using gluebi: that the 
underlying UBI volumes can't be removed?

Same thing happens if I try and ubidetach the UBI partition from the 
underlying mtd partition: Device or resource busy.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list