lkml.org 
[lkml]   [2005]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Partitioning problems on x86_64 (fwd)
From
Date
Ken Moffat <ken@kenmoffat.uklinux.net> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-12 14:03    [W:0.035 / U:3.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site