Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 20:47:01 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Jens Schweikhardt <schweikh@schweikhardt.net>
Subject:   Re: GEOM and grub
Message-ID:  <20040406184701.GC661@darkness.comp.waw.pl>
In-Reply-To: <11438.1081276985@critter.freebsd.dk>
References:  <20040406183623.GA17430@schweikhardt.net> <11438.1081276985@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--Qbvjkv9qwOGw/5Fx
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 06, 2004 at 08:43:05PM +0200, Poul-Henning Kamp wrote:
+> In message <20040406183623.GA17430@schweikhardt.net>, Jens Schweikhardt =
writes:
+> >Hello *,
+> >
+> >it appears GEOM prevents grub from mucking with the MBR and/or the next
+> >15 or so sectors where it wants to write stage1 and/or stage1_5 (grub
+> >reports failed write attempts).
+> >
+> >Is there any way to let grub do its magic (other than installing 4.X
+> >without geom, patching grub, booting a 4.X fixit CD)? I want rope
+> >to shoot my foot!!!1! :-)
+>=20
+> 	sysctl kern.geom.debugflags=3D16
+>=20
+> will allow you to write to the full disk even if it is open.

Do I said: THANK YOU! already?:)

I was trying to create new file system, and instead of doing:

	# newfs -O2 /dev/ad0s2

I did:

	# newfs -O2 /dev/ad2

very important data for me were there, but geom_slice saved my ass:

	newfs: /dev/ad2: failed to open disk for writing

:)

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--Qbvjkv9qwOGw/5Fx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAcvslForvXbEpPzQRAtzOAJ4j+hl4ZMGbi9YyPHrTFYr/RSC7+wCeOGAB
fElXTr/C0W748f+kv9H/zYw=
=/3Bf
-----END PGP SIGNATURE-----

--Qbvjkv9qwOGw/5Fx--



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