Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: axp-list@redhat.com
Subject: Re: more questions on fdisk (was minlabel on SRM)
Date: Wed, 29 Apr 1998 19:10:20 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.GSO.3.96.980429185820.14016A-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <Pine.SOL.3.96.980429074813.24594C-100000@maxwell.phys.ufl.edu>

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        +


  reply	other threads:[~1998-04-29 17:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-29 10:03 2.5" SCSI drives found David Gilbert
1998-04-29 10:52 ` Paul Wouters
1998-04-29 11:52   ` more questions on fdisk (was minlabel on SRM) Dan Roscigno
1998-04-29 17:10     ` Maciej W. Rozycki [this message]
1998-04-29  8:54       ` Jay.Estabrook
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox