Date: Mon, 25 Jan 1999 22:14:09 -0500 (EST) From: Spike <spork@ix.netcom.com> To: cjclark@home.com Cc: sporkl@ix.netcom.com, freebsd-questions@FreeBSD.ORG Subject: Re: Deletion of windows and subsequent reformatting Message-ID: <Pine.BSF.4.05.9901252213430.306-100000@PigStuy.nws.net> In-Reply-To: <199901260309.WAA10746@cc942873-a.ewndsr1.nj.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Jan 1999, Crist J. Clark wrote: > Spike wrote, > > On Mon, 25 Jan 1999, Crist J. Clark wrote: > > > You need to label the 'disk.' (Remeber a DOS partition is a FreeBSD > > > slice, and that FreeBSD partitions live in one slice.) See 'man > > > disklabel.' In a sense, FreeBSD treats a slice like a whole disk. > > > > "disklabel -r /dev/sd0s1" reports: > > > > disklabel: bad pack magic number (label is damaged, or pack is unlabeled) > > > > This doesn't make much sense to me. I wish to partition the entire thing > > in to a FreeBSD filesystem partition (no swap). > > Well, it makes sense to me that the slice does not have a > disklabel. You need to write one first. But you did remind me... > > > "fdisk -t /dev/sd0" reports: > > ******* Working on device /dev/sd0 ******* > > parameters extracted from in-core disklabel are: > > cylinders=522 heads=255 sectors/track=63 (16065 blks/cyl) > > > > parameters to be used for BIOS calculations are: > > cylinders=522 heads=255 sectors/track=63 (16065 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 6,(Primary 'big' DOS (> 32MB)) > > start 63, size 4192902 (2047 Meg), flag 0 > > beg: cyl 0/ sector 1/ head 1; > > end: cyl 260/ sector 63/ head 254 > > The data for partition 2 is: > > sysid 165,(FreeBSD/NetBSD/386BSD) > > start 4192965, size 4192965 (2047 Meg), flag 80 (active) > > beg: cyl 261/ sector 1/ head 0; > > end: cyl 521/ sector 63/ head 254 > > The data for partition 3 is: > > <UNUSED> > > The data for partition 4 is: > > <UNUSED> > > You probably want to use fdisk to tell the computer to treat it as a > FreeBSD partion rather than a DOS one; change the sysid from 6 to > 165. > > Then you should use disklabel, > > # disklabel -r -w /dev/sd0s1 auto That command outputed the following: PigStuy# disklabel -r -w /dev/sd0s1 auto disklabel: "auto" requires the usage of a canonical disk name disklabel: auto: unknown disk type ...? > > check and edit the disklabel if necesary, and then newfs, > > # newfs /dev/sd0s1a > > Anyway, that's how I think it should work. I've repartitioned a > FreeBSD slice and formatted a whole SCSI disk before, but never tried > to convert a slice from DOS to FreeBSD while keeping another slice > intact. > > HTH. > -- > Crist J. Clark cjclark@home.com > > -Spike Gronim sporkl@ix.netcom.com The majority only rules those who let them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901252213430.306-100000>