Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2003 21:08:57 +0100
From:      Josef Karthauser <joe@FreeBSD.org>
To:        phk@FreeBSD.org
Cc:        freebsd-current@freebsd.org
Subject:   re-fdisk'ing a partition - permission denied?
Message-ID:  <20030908200857.GA88209@genius.tao.org.uk>

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

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I'm trying to repartition the drive in my laptop - trashing the XP
partition to make space for a stable file system so I can test USB code.
It appears that something has changed though since I last attempted this
kind of thing and I just get errors now.

The drive looks like this:

    ******* Working on device /dev/ad0 *******
    parameters extracted from in-core disklabel are:
    cylinders=3D77520 heads=3D16 sectors/track=3D63 (1008 blks/cyl)

    Figures below won't work with BIOS for partitions not in cyl 1
    parameters to be used for BIOS calculations are:
    cylinders=3D77520 heads=3D16 sectors/track=3D63 (1008 blks/cyl)

    Media sector size is 512
    Warning: BIOS sector numbering starts with sector 1
    Information from DOS bootblock is:
    The data for partition 1 is:
    sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
	start 63, size 8376417 (4090 Meg), flag 0
	    beg: cyl 0/ head 1/ sector 1;
	    end: cyl 553/ head 239/ sector 63
    The data for partition 2 is:
    sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
	start 8385930, size 69754230 (34059 Meg), flag 80 (active)
	    beg: cyl 554/ head 150/ sector 1;
	    end: cyl 1023/ head 239/ sector 63
    The data for partition 3 is:
    <UNUSED>
    The data for partition 4 is:
    <UNUSED>
    In-Reply-To: <1062947334.436.12.camel@quark.avioc.org>

If I repartition the first partition either using sysinstall or fdisk
I get an error when the write occurs.

Is there a sysctl to switch now?  I'm not running in any kind of special se=
cure
mode so I would expect it to work.  Did the symantics change with geom?

Joe
--=20
Josef Karthauser (joe@tao.org.uk)	       http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker)     http://www.uk.FreeBSD.org/
Physics Particle Theory (student)   http://www.pact.cpes.sussex.ac.uk/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an=
d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

--vtzGhvizbBRQ85DL
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEUEARECAAYFAj9c4dYACgkQXVIcjOaxUBa9RwCgtzQHsR+hN6X/RQ1vXImHMA1x
wOkAmPYK4q+wWJebXOFQ5DBNG8eVi6U=
=ZvRC
-----END PGP SIGNATURE-----

--vtzGhvizbBRQ85DL--



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