Re: re-fdisk'ing a partition - permission denied?

From: Jason Stone <freebsd-current_at_dfmm.org>
Date: Mon, 8 Sep 2003 14:54:37 -0700 (PDT)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> You have hit one of the main issues still to be resolved in GEOM. (I
> don't know that phk thinks it's a problem to be resolved or a feature to
> be documented.)
>
> In any case, since GEOM was added you can no longer slice or label an
> active device.

Ah - is that to say that, in general, you can't mess with the disk's MBR?

I was also running into this.  The situation that I have is that I have a
bunch of colocated machines that are set in the bios to try booting a hard
disk, and then, failing that, pxe netboot.  I keep a pxeboot server there
in the colo with an up-to-date binary release, and when I want to upgrade
a machine, I just overwrite the mbr with zeros and reboot.  The bios will
then netboot, and the release is scripted to be noninteractive, to wipe
the disks and re-install and then reboot the system when it's done.

If I can't touch the mbr on the running system, then I won't be able to
work this way anymore.  Is there some other alternative?

If I were running linux, I could write to /dev/nvram to update the bios
cmos settings from the running system - does freebsd have a similar way to
access the bios cmos settings?


 -Jason

 --------------------------------------------------------------------------
 Freud himself was a bit of a cold fish, and one cannot avoid the suspicion
 that he was insufficiently fondled when he was an infant.
	-- Ashley Montagu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
Comment: See https://private.idealab.com/public/jason/jason.gpg

iD8DBQE/XPqeswXMWWtptckRAiZPAJwLRGlbcIPCEJGgnJzeCG2sZtXvxACfWMhz
tBO8PAjJu6OOZrNP4S3zIps=
=9wdb
-----END PGP SIGNATURE-----
Received on Mon Sep 08 2003 - 12:54:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC