From owner-freebsd-questions Thu Mar 5 22:40:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA11688 for freebsd-questions-outgoing; Thu, 5 Mar 1998 22:40:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA11680 for ; Thu, 5 Mar 1998 22:40:04 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id WAA25210; Thu, 5 Mar 1998 22:40:00 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Thu, 5 Mar 1998 22:40:00 -0800 (PST) From: Doug White Reply-To: Doug White To: Dan Roberts cc: freebsd-questions@FreeBSD.ORG Subject: Re: converting dos partition In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 4 Mar 1998, Dan Roberts wrote: > I'm having a hard time interpreting the man pages regarding fixed disk > configuration and want to be absolutely clear how to do this before I end > up trashing some important data.. See http://www.freebsd.org/tutorials/diskformat/ > The system I'm attempting to alter has a single 2.1G hard drive in it, > currently separated 1/2 freebsd and the other half windows 95. Win95 has > outlived its usefulness, and I'd now like to use that entire partition for > FreeBSD. > > Current config: > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0a 49231 16744 28549 37% / > /dev/wd0s2f 843935 740758 35663 95% /usr > /dev/wd0s2e 49231 8745 36548 19% /var > /dev/wd0s1 1023824 405456 618368 40% /dosc > > The FreeBSD boot manager selects the OS at bootup currently, and the dos > partition appears to be the first partition. My biggest worry is that if > I newfs wd0s1, I'll never be able to boot this machine again. > > If it wouldn't be too much trouble, could someone give me the basic steps > I would take to perform this alteration? (please cc: directly, I'm not on > the list) The major problem you may have would be the bootblocks picking wd0s1 as the boot disk each time. This could be remedied by dropping a /boot.config file on each partition to make sure it's pointed the right way. You can also blow away booteasy (FDISK /MBR from DOS). The procedure is pretty simple tho: 1. Use DOS FDISK to remove the DOS slice. 2. Use sysinstall to create the slice and to label it. Go ahead and use the entire thing for FreeBSD as one giant slice. 3. Newfs. 4. Mount into desired location. Modify /etc/fstab if you want it to mount automatically. 5. Enjoy your new gig :-) **do** see the diskformat tutorial first however! Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message