From owner-freebsd-hackers Sat Jan 25 14:22:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA20746 for hackers-outgoing; Sat, 25 Jan 1997 14:22:43 -0800 (PST) Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA20741 for ; Sat, 25 Jan 1997 14:22:39 -0800 (PST) Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA13971; Sat, 25 Jan 97 23:25:57 +0100 Date: Sat, 25 Jan 97 23:25:57 +0100 Message-Id: <9701252225.AA13971@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: freebsd-hackers@freebsd.org Subject: fdisk headache X-Mailer: Emacs Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I try to add another disk, but it seems that something has changed since my last drive installation because fdisk doesnt want to write a correct information. My new drive is probed as: (ncr1:6:0): "QUANTUM FIREBALL_TM3200S 300N" type 0 fixed SCSI 2 sd4(ncr1:6:0): Direct-Access sd4(ncr1:6:0): 10.0 MB/s (100 ns, offset 8) 3067MB (6281856 512 byte sectors) sd4(ncr1:6:0): with 6810 cyls, 5 heads, and an average 184 sectors/track (why 6810*5*184 != 6281856 ???) When I start fdisk it tells me that the drive has 19035cyl, 6heads, 55sec/trk. Wanting to change the values to 6810/5/184, I get The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 6265199 (3059 Meg), flag 80 beg: cyl 0/ sector 2/ head 0; end: cyl 666/ sector 55/ head 5 The last value is obviously wrong, but if try to change it to something more realistic, eg. 6810/5/183, fdisk interpret my values as 666/55/5 !!!!! The real problem is then when I want to label the disk: I get ioctl DIOCWLABEL: Operation not supported by device sd4s4: type 0xa5, start 1, end = 6265199, size 6265199 sd4s4: C/H/S end 666/5/55 (220109) != end 6265199: invalid sd4: cannot find label (no disk label) sd4s4: cannot find label (no disk label) Is there a solution? I don't care if the geometry is incorrect as long I can disklabel/newfs the drive and use the 3067 Mb!!! Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================