Disc upgrade - how to reread partition table?

Kuba Ober kuba at mareimbrium.org
Tue Nov 27 08:35:12 CST 2007


On Wednesday 14 November 2007, Peter Kjellstrom wrote:
> On Wednesday 14 November 2007, Todd Lyons wrote:
> > On Wed, Nov 14, 2007 at 05:10:23PM +0100, Peter Kjellstrom wrote:
> > >This thread is getting real thick with incorrect guesses and
> > > assumptions. ext3 is just as able to online (while mounted) resize as
> > > xfs (man resize2fs).
> >
> > Didn't know it could be done while mounted.  Thanks for that.
> >
> > >Regarding the partition table updating. partprobe can be used and works
> > > even with a mounted root filesystem on the drive as: "partprobe
> > > /dev/sda".
> >
> > In general, if you have primary partitions on the drive and you modify
> > those primary partitions, the kernel can reload the new partition table
> > without a reboot (that's the ioctl call as fdisk exits).  If you have
> > any logical partitions on the drive, the kernel will not see those and
> > you'll need a reboot.
>
> You've got it a bit messed up. What fdisk tries at exit (ioctl wise) is not
> the same as what partprobe does.

Hey, that's some very good bit of info. I didn't even know partprobe existed! 
Thank you!

Cheers, Kuba



More information about the Linux-PowerEdge mailing list