From owner-freebsd-questions Thu Dec 24 23:11:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA13478 for freebsd-questions-outgoing; Thu, 24 Dec 1998 23:11:41 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA13472 for ; Thu, 24 Dec 1998 23:11:37 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA15310; Fri, 25 Dec 1998 17:40:37 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id RAA18372; Fri, 25 Dec 1998 17:40:37 +1030 (CST) Message-ID: <19981225174037.U12346@freebie.lemis.com> Date: Fri, 25 Dec 1998 17:40:37 +1030 From: Greg Lehey To: Onur Toker , questions@FreeBSD.ORG Subject: Re: Harddisk > 2GB, what to do ? References: <36831C37.FB633B9A@ccse.kfupm.edu.sa> <19981225113517.R12346@freebie.lemis.com> <36834585.1C945AF1@ccse.kfupm.edu.sa> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <36834585.1C945AF1@ccse.kfupm.edu.sa>; from Onur Toker on Fri, Dec 25, 1998 at 04:57:57AM -0300 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id XAA13473 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered at freebie.lemis.com] On Friday, 25 December 1998 at 4:57:57 -0300, Onur Toker wrote: > Greg Lehey wrote: >> >> On Friday, 25 December 1998 at 2:01:43 -0300, Onur Toker wrote: >>> Hello, >>> >>> I have a harddisk of size 4.3GB. Can you please tell me >>> step by step what should I do to use it with my FreeBSD box ? >> >> No. >> >>> I tried to use /stand/sysinstall but it gave error messages. >>> By the way, I am using 2.2.1. >> >> You haven't told us the error messages. How can we guess what's gone >> wrong? There's no problem installing on disks of this size, though >> you should consider installing a newer version of FreeBSD. > > First of all my system recognize 2 harddisks, wd0 and wd2 (No CDROM > attached, both harddisks are connected as master). > > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc0: unit 0 (wd0): > wd0: 1907MB (3907008 sectors), 3876 cyls, 16 heads, 63 S/T, 512 B/S > wdc1 at 0x170-0x177 irq 15 on isa > wdc1: unit 0 (wd2): > wd2: 4112MB (8421840 sectors), 8912 cyls, 15 heads, 63 S/T, 512 B/S OK, the system recognizes the correct size (or close enough to be convincing). > Then I go to disk partition editor and generate 2 partitions of size > 2000M. > They are wd2s1 and wd2s2. You shouldn't do this. These so-called Microsoft partitions, which we call slices, are for different operating systems. Create wd2s1 with the full size of the disk. > Disk name: wd2 FDISK Partition > Editor > DISK Geometry: 524 cyls/255 heads/63 sectors = 8418060 sectors > > Offset Size End Name PType Desc Subtype > Flags > > 0 63 62 - 6 unused 0 > 63 4080447 4080509 wd2s1 3 freebsd 165 C > 4080510 4080510 8161019 wd2s2 3 freebsd 165 > 8161020 260820 8421839 - 6 unused 0 > > Then I write these changes and go to the disk label editor. > > I see two disks named wd2 with partition names wd2s1 and wd2s2. Then I > create to file systems > > FreeBSD Disklabel Editor > > Disk: wd2 Partition name: wd2s1 Free: 0 blocks (0MB) > Disk: wd2 Partition name: wd2s2 Free: 0 blocks (0MB) > > Part Mount Size Newfs Part Mount Size > Newfs > ---- ----- ---- ----- ---- ----- ---- ----- > wd2s1e /usr/home 1992MB UFS Y > wd2s2e /usr/WinHome 1992MB UFS Y Others have observed that these are *very* strange names. I will also observe that there is one partition too many here. Make your partition the full 4 GB, and mount it under /, not under /usr. If you don't have /home, that would be an obvious choice. > When I choose write these changes, I got error > messages. > > >  Message  > Error mounting /dev/wd2s2e on /usr/WinHome : Invalid argument >  (etc). Yes, this is a bug from whatever program this is (you don't say, but it looks like mount(8)). But IIRC you're using a very old version of FreeBSD. You could enter a PR and somebody might look at it, but you'd be better off demonstrating that it exists on a current version of FreeBSD. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message