From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25489 invoked from network); 29 Apr 1998 17:12:16 -0000 Received: from delta.ds2.pg.gda.pl (macro@153.19.170.1) by mail2.redhat.com with SMTP; 29 Apr 1998 17:12:16 -0000 Received: from localhost (macro@localhost) by delta.ds2.pg.gda.pl (8.8.8/8.8.8) with SMTP id TAA18327 for ; Wed, 29 Apr 1998 19:10:20 +0200 (MET DST) Date: Wed, 29 Apr 1998 19:10:20 +0200 (MET DST) From: "Maciej W. Rozycki" To: axp-list@redhat.com Subject: Re: more questions on fdisk (was minlabel on SRM) In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 29 Apr 1998, Dan Roscigno wrote: > Thanks for your help with using fdisk and the "b" command to > edit the BSD label. Now that I have my partition setup I > need to run mkfs. If I don't specify the number of 512K > blocks only one block is used on the partition. This is an > 18 gig drive, with 35million 512 byte sectors. To get 512K > blocks do I take that number and divide by 1024? I used to run `mke2fs' directly without running the `mkfs' wrapper and it always got the partition size via an appropriate 'ioctl' from the kernel. I am not sure whether `fdisk' in BSD mode calls the 'ioctl' to inform the kernel that the geometry of partitions changed (it calls it when in PC mode). If your kernel doesn't output something like: Partition check: sda: sda1 sda2 sda3 then `fdisk' does not perform the necessary step. You have to perform it manually. The simpliest, though an ugly way is just to reboot the machine. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +