Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sysinstall & labels/fdisk

7 views
Skip to first unread message

Alex Hoff

unread,
Jun 7, 2004, 10:48:30 AM6/7/04
to
Hi

I have run in to an odd problem that on a freebsd 5.2 current system after
running fdisk and disklabel the initial time on install, i am never allowed
to do it again.

What I have tried on many different systems, is to run sysinstall, and
either run fdisk or label. After making a change and trying to write the
changes, it will fail. Even if you dont make a change, and just try to write
the current settings to the disk, it will fail. The following error comes up
"ERROR: Unable to write data to disk ad0" (if also tried different types of
disk devices - da/aacd). Ktrace shows the error as "errno 1 Operation not
permitted"

Anyone have any ideas or input?
Thanks
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Joan Picanyol

unread,
Jun 7, 2004, 1:32:07 PM6/7/04
to
* Alex Hoff <ah...@sandvine.com> [20040607 16:47]:

> I have run in to an odd problem that on a freebsd 5.2 current system after
> running fdisk and disklabel the initial time on install, i am never allowed
> to do it again.
>
> What I have tried on many different systems, is to run sysinstall, and
> either run fdisk or label. After making a change and trying to write the
> changes, it will fail. Even if you dont make a change, and just try to write
> the current settings to the disk, it will fail. The following error comes up
> "ERROR: Unable to write data to disk ad0" (if also tried different types of
> disk devices - da/aacd). Ktrace shows the error as "errno 1 Operation not
> permitted"

GEOM won't let you touch MBR/slices/partitions on used devices. For it
to allow footshooting you should set kern.geom.debugflags=16

qvb
--
pica

Doug White

unread,
Jun 7, 2004, 1:59:22 PM6/7/04
to
On Mon, 7 Jun 2004, Joan Picanyol wrote:

> * Alex Hoff <ah...@sandvine.com> [20040607 16:47]:
> > I have run in to an odd problem that on a freebsd 5.2 current system after
> > running fdisk and disklabel the initial time on install, i am never allowed
> > to do it again.
> >
> > What I have tried on many different systems, is to run sysinstall, and
> > either run fdisk or label. After making a change and trying to write the
> > changes, it will fail. Even if you dont make a change, and just try to write
> > the current settings to the disk, it will fail. The following error comes up
> > "ERROR: Unable to write data to disk ad0" (if also tried different types of
> > disk devices - da/aacd). Ktrace shows the error as "errno 1 Operation not
> > permitted"
>
> GEOM won't let you touch MBR/slices/partitions on used devices. For it
> to allow footshooting you should set kern.geom.debugflags=16

Be REALLY careful with this! I have a documented case of te device
entries getting confused and blowing away the wrong partition. I STRONGLY
recommend AGAINST using this flag.

Make backups, we are not responsible, etc. etc. etc.

--
Doug White | FreeBSD: The Power to Serve
dwh...@gumbysoft.com | www.FreeBSD.org

0 new messages