On Wed, Oct 25, 2023 at 11:07:49AM +0800, li wang wrote:
> # parted -s /dev/loop0 mklabel MSDOS
> 
> Error: Partition(s) 1, ..., 64 on /dev/loop0 have been written, but we have
> been unable to inform the kernel of the change, probably because it/they
> are in use. As a result, the old partition(s) will remain in use. You
> should reboot now before making further changes.

I can't reproduce this, it is likely something in your environment causing
problems. Trying this on Fedora with parted-3.6-13.fc43.x86_64 works
fine. And if I do something like leave a previous loop0p1 partition
mounted while trying to make a new label I get an error that stops that
from happening:

[root@fedora ~]# parted -s /dev/loop0 mklabel MSDOS
Error: Partition(s) on /dev/loop0 are being used.

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart




Reply via email to