Re: Partitioning problems on x86_64 (fwd)

From: Andi Kleen
Date: Fri Aug 12 2005 - 07:03:29 EST


Ken Moffat <ken@xxxxxxxxxxxxxxxxxxxxx> writes:

> On Thu, 11 Aug 2005, Lennart Sorensen wrote:
>
> >
> > The kernel won't reread the partition table as long as ANY part of that
> > disk is mounted. Reboot (which of course unmounts everything) to reread
> > the partition table.
> >
>
> OK, I've noted that now, thanks for the clue.

Actually it's a fdisk misfeature. There are two kinds of ioctls for
partition table rereading. One that rereads everything and fails if
any partitions on the disk are mounted. And another kind that
adds/removes partitions explicitely. That works fine as long as you
don't touch the mounted partitions.

Unfortunately the only tool that seems to use the new kind is parted
but it has a nearly unusable awkward command line interface from hell,
so fdisk is preferable even with the reboot requirement.

Ideally someone would fix fdisk to use the new kind.

Or just use LVM, it deals with all that much better.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/