Date: Mon, 25 Jan 1999 22:09:07 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: sporkl@ix.netcom.com Cc: cjclark@home.com, sporkl@ix.netcom.com, freebsd-questions@FreeBSD.ORG Subject: Re: Deletion of windows and subsequent reformatting Message-ID: <199901260309.WAA10746@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <Pine.BSF.4.05.9901252142080.271-100000@PigStuy.nws.net> from Spike at "Jan 25, 99 09:44:03 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 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 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?199901260309.WAA10746>