Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 1996 00:29:52 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        dave@kachina.jetcafe.org, julian@ref.tfs.com
Cc:        andreas@knobel.gun.de, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Adding a damn 2nd disk
Message-ID:  <199603221329.AAA07423@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>> But the problem is, fdisk doesn't seem to enable disklabel to
>>> do it's job. 
>>can you say more? did you try rebooting between the two?

>Whoa. No. Is -that- it? The magic bullet I have been looking for? 

Perhaps.  fdisk writes tables to the disk and doesn't use the ioctl to
tell the system that the disk has changed.  However, the system reads
the tables of the disk on the next open of a device on the disk provided
no other device on the disk is already open.  Thus there is usually no
need to reboot if you're setting up a new disk.  The tricky case is
adding or changing the partition table for the root disk - then you
can't even unmount all file systems and avoid swapping on the disk so
that no other device on the disk is open.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603221329.AAA07423>