From owner-freebsd-current Wed Aug 28 19:59:39 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA06467 for current-outgoing; Wed, 28 Aug 1996 19:59:39 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [204.214.4.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id TAA06447 for ; Wed, 28 Aug 1996 19:59:33 -0700 (PDT) Received: from max2-150.HiWAAY.net by fly.HiWAAY.net; (5.65/1.1.8.2/21Sep95-1003PM) id AA23946; Wed, 28 Aug 1996 21:59:26 -0500 Message-Id: <32250737.41C67EA6@hiwaay.net> Date: Wed, 28 Aug 1996 21:57:59 -0500 From: Steve Price X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.2-CURRENT i386) Mime-Version: 1.0 To: freebsd-current@freebsd.org Subject: Problem with partition size on IDE drive and -current Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It seems I can only get a 1GB partition on my 2GB drive. Here is all the relevant info I can think of. --------------------------------->8-------------------------------- steve:~$ df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/wd0a 1968668 1309088 502088 72% / procfs 8 8 0 100% /proc /dev/wd1c 1985694 1079790 747050 59% /u steve:~$ disklabel wd1 # /dev/rwd1c: type: ESDI disk: wd1s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 64 sectors/cylinder: 4032 cylinders: 1022 sectors/unit: 4124673 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] c: 4124673 0 unused 0 0 # (Cyl. 0 - 1022*) steve:~$ fdisk wd1 ******* Working on device /dev/rwd1 ******* parameters extracted from in-core disklabel are: cylinders=1023 heads=64 sectors/track=63 (4032 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1023 heads=64 sectors/track=63 (4032 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 4124673 (2014 Meg), flag 80 beg: cyl 0/ sector 1/ head 1; end: cyl 1022/ sector 63/ head 63 The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: steve:~$ cat > foo.c #include #include #include #include int main () { struct statfs statfsbuf; if (statfs("/", &statfsbuf) == 0) printf("/: f_bsize = %ld\n", statfsbuf.f_bsize); if (statfs("/u", &statfsbuf) == 0) printf("/u: f_bsize = %ld\n", statfsbuf.f_bsize); } ^D steve:~$ gcc foo.c steve:~$ ./a.out /: f_bsize = 2048 /u: f_bsize = 1024 steve:~$ --------------------------------->8-------------------------------- BTW, I am running -current as of 8/25/96 on a P5/90 w/64 MB of ram. The IDE drive mounted on / is 1GB and everything seems to be hunky-dorey. It seems to have something to do with f_bsize. I tried changing it with 'newfs -i 2048 wd1c', but to no avail. I also tried to use /stand/sysinstall but it returns an error about 'no drives found' when I try to repartition wd1. Anybody have any ideas what I'm missing? TIA, Steve