Re: Questions : disk partition re-reading

From: Erik Mouw
Date: Mon Apr 19 2004 - 06:41:24 EST


On Sun, Apr 18, 2004 at 03:24:46PM +0200, Remi Colinet wrote:
> I have 2 questions about disk partitioning under linux 2.6.x :
>
> 1/ Is it possible to alter a disk partition of a used disk and beeing
> able to use the modified partition without having to reboot the box?

"blockdev --rereadpt /dev/whatever" does the trick on 2.4.x. Didn't try
it on 2.6 yet, but I don't think it changed.

> 2/ Is it possible to delete a disk partition without having the
> partition numbers changed?

Yes (assuming MS-DOS style partition tables).


Erik

--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
-
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/