Subject: Re: Reloading partition table?
To: David A. Gatwood <marsmail@globegate.utm.edu>
From: Frederick Bruckman <fredb@enteract.com>
List: port-mac68k
Date: 08/15/1998 09:10:49
On Fri, 14 Aug 1998, David A. Gatwood wrote:

> 
> Is there a convenient ioctl or something under NetBSD (mac68k) to cause it
> to reload its notion of the partition table (fake geometry, whatever)?  I
> just took a look at my pdisk mods and noted that I'd #ifdef'ed out the
> code to do that under linuxppc/MkLinux without replacing it with anything
> equivalent.  Without that, I would expect new partitions not to show 
> up without a reboot, unless the NetBSD kernel regenerates its fake
> disklabel every time the disklabel is read....  (Does it?)  Ideas?

I believe it does. I seem to remember using "dd" to put identical
partition tables + drivers on two removable cartridges, and finding that
"disklabel" groks the changed version immediately.

The more or less documented method on i386 is to use "disklabel -W"
before, and "disklabel -N" after, but that doesn't seem to be necessary
for mac68k. It wouldn't make any sense to anyhow, since disklabel's
create/edit modes are disabled.