mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Ken Moffat <ken@kenmoffat.uklinux.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Partitioning problems on x86_64 (fwd)
Date: 12 Aug 2005 13:59:37 +0200	[thread overview]
Message-ID: <p73k6ir2wnq.fsf@verdi.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0508111905310.8504@ppg_penguin.kenmoffat.uklinux.net.suse.lists.linux.kernel>

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

       reply	other threads:[~2005-08-12 11:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.58.0508110331360.3920@ppg_penguin.kenmoffat.uklinux.net.suse.lists.linux.kernel>
     [not found] ` <20050811152948.GH31019@csclub.uwaterloo.ca.suse.lists.linux.kernel>
     [not found]   ` <Pine.LNX.4.58.0508111905310.8504@ppg_penguin.kenmoffat.uklinux.net.suse.lists.linux.kernel>
2005-08-12 11:59     ` Andi Kleen [this message]
2005-08-11  2:32 Ken Moffat
2005-08-11 15:29 ` Lennart Sorensen
2005-08-11 18:11   ` Ken Moffat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=p73k6ir2wnq.fsf@verdi.suse.de \
    --to=ak@suse.de \
    --cc=ken@kenmoffat.uklinux.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®