Re: 9G disk, >4 partitions, and lose95

Guest section DW (dwguest@win.tue.nl)
Wed, 21 Oct 1998 21:49:26 +0200 (MET DST)


> 2) When you fdisk the drive you've got root mounted off of (even
> read-only), linux-2.1.125 (and possibly earlier) won't reread the partition
> table, and with 2.1.125 it *seemed* like it wouldn't even *write* the table
> out to disk with root mounted read-only on it.

If /dev/sda has a partition /dev/sda6 that is mounted read-only on /,
that does not mean that /dev/sda is read-only.

The partition table lives outside the filesystems.

But the kernel does not reread a partition table of a disk
that is busy, and having a partition mounted on root certainly
means being busy.

Of course a more fine-grained test is possible (where one
checks that no significant things have changed, e.g., that
/dev/sda6 is still the same partition at the same disk location),
but it is a bit tricky to make sure nothing has been forgotten -
and it puts a burden on future maintenance of the kernel,
so at present it is easiest to repartition a disk with the
root mounted elsewhere (a floppy, a ram disk, another disk),
or to reboot after repartitioning.

Andries

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