Date: Wed, 28 Aug 1996 21:57:59 -0500 From: Steve Price <sprice@hiwaay.net> To: freebsd-current@freebsd.org Subject: Problem with partition size on IDE drive and -current Message-ID: <32250737.41C67EA6@hiwaay.net>
next in thread | raw e-mail | index | archive | help
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:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
steve:~$ cat > foo.c
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <stdio.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32250737.41C67EA6>
