From owner-freebsd-questions@FreeBSD.ORG Tue Jan 8 22:08:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C788716A420 for ; Tue, 8 Jan 2008 22:08:38 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id 4071C13C448 for ; Tue, 8 Jan 2008 22:08:37 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JUC006T5ITTLY60@mta3.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Tue, 08 Jan 2008 17:08:26 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id m08M8FGL091684; Tue, 08 Jan 2008 17:08:16 -0500 Date: Tue, 08 Jan 2008 17:08:15 -0500 From: "Aryeh M. Friedman" In-reply-to: <20080108155509.GD42838@gizmo.acns.msu.edu> To: Jerry McAllister Message-id: <4783F44F.5070303@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.5 References: <4782EEF0.80809@gmail.com> <20080108155509.GD42838@gizmo.acns.msu.edu> User-Agent: Thunderbird 2.0.0.9 (X11/20080104) Cc: FreeBSD Question Subject: Re: changing the postion of a partion in fdisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2008 22:08:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jerry McAllister 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) > > Well, you can use fdisk from the fixit shell to make your slice 2 > (note the primary divisions are called 'slices' in FreeBSD) in to a > FreeBSD type and then create your FreeBSD partitions in it and > build FreeBSD filesystems there. 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. > > Then, still using the fixit, use dump/restore to copy the contents > of the FreeBSD filesystems over. Assuming the major slices are > ad0s1 and ad0s2, then something like: mkdir /oldroot mount /ad0s1a > /oldroot mkdir /newroot mount /ad0s2a /newroot cd /newroot dump 0af > - / | restore -rf - > > That will get the root partition/filesystem. Do appropriately > similar for the rest of the FreeBSD filesystems. > > Note that while in fixit, the running root (/) is in a memory > filesystem which will go away after you reboot. So, those mount > points you create (oldroot, newroot, etc) are temporary. > > Then use a utility such as gparted (freely downloadable as ISO) to > convert the #1 slice into NTFS and install Vista there. You might > be able to get FreeBSD's fdisk to do the convesion to NTFS, but I > have never tried that. You would have to know the code number for > it. > > ////jerry > >> - -- Aryeh M. Friedman FloSoft Systems, Java Developer Tools >> http://www.flosoft-systems.com Developer, not business, friendly. >> >> >> _______________________________________________ >> 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" > - -- 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 iD8DBQFHg/RPjRvRjGmHRgQRAmAIAJ9ez7kulB5P94ZeVUsY7rrnDo3hLwCgjNCW m54xx08yDK3m7lXN5/xsQ84= =+9FU -----END PGP SIGNATURE-----