Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2008 11:22:15 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        FreeBSD Question <freebsd-questions@freebsd.org>
Subject:   Re: changing the postion of a partion in fdisk
Message-ID:  <20080109162215.GA51744@gizmo.acns.msu.edu>
In-Reply-To: <20080109160004.GB51635@gizmo.acns.msu.edu>
References:  <4782EEF0.80809@gmail.com> <20080108155509.GD42838@gizmo.acns.msu.edu> <4783F44F.5070303@gmail.com> <20080108223305.GA48272@gizmo.acns.msu.edu> <4784390E.7000906@gmail.com> <20080109160004.GB51635@gizmo.acns.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 09, 2008 at 11:00:04AM -0500, Jerry McAllister wrote:

> On Tue, Jan 08, 2008 at 10:01:34PM -0500, Aryeh M. Friedman wrote:
> 
> > >>> On Mon, Jan 07, 2008 at 10:33:04PM -0500, Aryeh M. Friedman
> > >>> wrote:
> > >>>
> > >>>> I have my FreeBSD partition as partition 1 and my ntfs as
> > >>>> partition 2 but Vista insists that there is no suitable
> > >>>> partion to install to (even though the ntfs partition is big
> > >>>> enough)... after some research I found that vista absolutely
> > >>>> insists that the ntfs partition be partition 1... how do I
> > >>>> swap them and/or delete the ntfs one and renumber it so
> > >>>> freebsd is in partion slot 2 (with nothing in 1 and then I
> > >>>> can use fdisk to make a new slot 1)

> > >> I think I should of been a little more specific the physical
> > >> layout is completely correct (i.e. the sizes, start/end tracks,
> > >> etc.) the only problem is the logical numbering of the
> > >> partitions/slices in the mbr idea of the table... namely I just
> > >> need to relabel them not modify them in any way.
> > >
> > > I don't think you can make slice 2 become slice 1.  The system
> > > numbers them in order of appearance.  This comes from BIOS standard
> > > usage.
> > 2 starts before 1 in my case?!??!
> > 
> > % fdisk
> > ******* Working on device /dev/ad8 *******
> > parameters extracted from in-core disklabel are:
> > cylinders=969021 heads=16 sectors/track=63 (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=969021 heads=16 sectors/track=63 (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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> >     start 62910540, size 913857525 (446219 Meg), flag 80 (active)
> >     beg: cyl 1023/ head 255/ sector 63;
> >     end: cyl 1023/ head 254/ sector 63
> > The data for partition 2 is:
> > sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
> >     start 63, size 62910477 (30718 Meg), flag 80 (active)
> >     beg: cyl 0/ head 1/ sector 1;
> >     end: cyl 1023/ head 254/ sector 63
> > The data for partition 3 is:
> > <UNUSED>
> > The data for partition 4 is:
> > <UNUSED>
> > 
> > 2
> 
> Interesting.   I have never seen that before.
> 
> ////jerry

And, given this, you might try doing an fdisk to recreate those slices 
with the location specs that you want - that is create slice 2 with
starting point and size using the beginning values and slice 1 with
starting address and size following that.  I am not sure the fdisk 
would work at all that way, but it might.

Also, I wouldn't guarantee that the current contents of those slices would 
still be usable.  They might.   Doing an fdisk only modifies the slice 
table and not any of the data or even the partition tables for the slices 
which are written by bsdlabel.  So, it might leave it intact. 

But, if you are up to experimenting, you might learn something.
If you have a good backup of what you need to preserve, then the
worse that could happen is you would have to start over from scratch
and reinstall both Vista and FreeBSD.  At that point, it becomes moot
because you can put things where you want.

////jerry

> 
> > - --
> > Aryeh M. Friedman
> > FloSoft Systems, Java Developer Tools
> > http://www.flosoft-systems.com
> > Developer, not business, friendly.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2.0.4 (FreeBSD)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> > 
> > iD8DBQFHhDkOjRvRjGmHRgQRAr09AJ0TCHS+emo0rp0/UBNtHKE8CxxlBQCfTz3g
> > AFWyXr9pArXzfBsGvfRFgUQ=
> > =HZJJ
> > -----END PGP SIGNATURE-----
> > 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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