From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 15:00:11 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 614441065682 for ; Mon, 20 Oct 2008 15:00:11 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF8C8FC18 for ; Mon, 20 Oct 2008 15:00:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id m9KEvWTh038552; Mon, 20 Oct 2008 10:57:32 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id m9KEvWJp038551; Mon, 20 Oct 2008 10:57:32 -0400 (EDT) (envelope-from jerrymc) Date: Mon, 20 Oct 2008 10:57:32 -0400 From: Jerry McAllister To: Andy Smith Message-ID: <20081020145732.GF38387@gizmo.acns.msu.edu> References: <0c38a3dc9cee1bbe4fa9132560584c9f@80.32.136.226> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c38a3dc9cee1bbe4fa9132560584c9f@80.32.136.226> User-Agent: Mutt/1.4.2.2i Cc: Jerry McAllister , freebsd-questions@freebsd.org Subject: Re: bsdlabel partiton c error message on new install 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: Mon, 20 Oct 2008 15:00:11 -0000 On Sun, Oct 19, 2008 at 03:31:07PM +0100, Andy Smith wrote: > > Hi Jerry, > ok thanks for the answer, its not very good news for me ;( as Ive > already done alot of config and installed alot of apps, but anyway > thats my problem now! > cheers Andy! > Interesting, you seemed to have seen my reply before I sent it... This format is much better - plain text in the body of the message. Sorry that starting over might be needed. See if you can discover along the way where the problem might have started. I usually take sequential notes as I do an install just in case I have to do it over, so I don't have to think so hard the next time... ////jerry > --------- Original Message -------- > From: "Jerry McAllister" > To: "andys" > Cc: freebsd-questions@freebsd.org > Subject: Re: bsdlabel partiton c error message on new install > Date: 17/10/08 18:11 > On Fri, Oct 17, 2008 at 02:13:45PM +0200, andys wrote: > > Hi, > > > > on a newly installed FreeBSD 7.0 system on a dell 1950 server I see > the > > following error from bsdlabel. Is there any known issues with this > or is > > the only reasonable explanation that I have managed to mess it up > without > > even knowing? :P And should I manually change the partition c to fix > the > > prob? Is this safe to do? > > > > bsdlabel -A /dev/da0s1 > > # /dev/da0s1: > > type: SCSI > > disk: da0s1 > > label: > > flags: > > bytes/sector: 512 > > sectors/track: 63 > > tracks/cylinder: 255 > > sectors/cylinder: 16065 > > cylinders: 17750 > > sectors/unit: 285155328 > > rpm: 3600 > > interleave: 1 > > trackskew: 0 > > cylinderskew: 0 > > headswitch: 0 # milliseconds > > track-to-track seek: 0 # milliseconds > > drivedata: 0 > > > > 8 partitions: > > # size offset fstype [fsize bsize bps/cpg] > > a: 20971520 0 4.2BSD 2048 16384 28552 > > b: 20971520 75497472 swap > > c: 285153687 0 unused 0 0 # "raw" part, don't > > edit > > d: 20971520 20971520 4.2BSD 2048 16384 28552 > > e: 20971520 41943040 4.2BSD 2048 16384 28552 > > f: 12582912 62914560 4.2BSD 2048 16384 28552 > > bsdlabel: partition c doesn't cover the whole unit! > > bsdlabel: An incorrect partition c may cause problems for standard > system > > utilities > > > > thanks for any advice, Im not really confident with the FreeBSD disk > > management as I havent used it much, > If you were using sysinstall, I am not sure how this would come up. > Do you have more than one slice on the disk - that which MS refers > to as a 'primary partition'? Something you might do to create a > 'dual boot' machine. > Are you in the position where you can just wipe it and do a > reinstall? I wouldn't just move or resize the c partition after > the fact. > The c partition should be equal to the size of the slice it is in. > That should just be true after the fdisk part of the operation unless > there is something wrong with the size or alignment of the slice > itself. And, in that case, I would expect it to have complained > way back in the sysinstall-fdisk part of the process. > So, I would start over if I could. > Just some pictorial perspective to make it easier (I hope) to > visualize. > Whole device > ____________________________________________________________ > | slice 1 : FreeBSD Slice 2 : slice 3 : Slice 4 | > | : : : | > | :<- partition c ->: : | > |Some MS thing : ' ' ' ' : Some Linux : Extra | > | :pa' pb ' pd ' pe ' pn: thing : slice | > | : ' ' ' ' : : | > | : ' ' ' ' : : | > ------------------------------------------------------------- > A device (whole disk) can have up to 4 slices labeled 1..4. > Each slice can be of different types. > MS calls slices 'primary partitions'. > Each FreeBSD type slice can be divided in to "8" (really 7) partitions > that are labeled a..h. But, c must be used to define the whole slice. > Slices are created by fdisk. Fdisk also writes the device's MBR. > Partitions are created by bsdlabel (disk label in early versions of > FreeBSD) > bsdlabel also writes the slice's boot block. > It is possible to leave empty space in the whole disk that is not > allocated to any slice or within any given slice that is not allocated > to any partition. The total of a..h not counting c, plus any non- > allocated space, must add up to c. > It is possible to create what someone has dubbed a 'dangerously > dedicated' > disk and just not create slices, but just use bsdlabel to divide the > whole disk in to FreeBSD partitions a-h. The c partition must still > refer to the whole space available for FreeBSD partitioning. > I think it is also possible to just newfs the disk without using > either fdisk or bsdlabel and create one filesystem without slices > or partitions. I haven't tried it. > Both fdisk and bsdlabel are supposed to keep track of the sizes > correctly, automatically. That is why I suggest starting over. > If you use sysinstall, it calls fdisk and bsdlabel for you and you > don't have to do it separately unless you want to look and see > what it did. > ////jerry > > > > thanks Andy. > > _______________________________________________ > > [1]freebsd-questions@freebsd.org mailing list > > [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > ________________________________________________ > Message sent using UK Grid Webmail 2.7.9 > > References > > 1. mailto:freebsd-questions@freebsd.org > 2. http://lists.freebsd.org/mailman/listinfo/freebsd-questions > _______________________________________________ > 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" >