2009-01-07 22:48:46

by linux-os (Dick Johnson)

[permalink] [raw]
Subject: Inconsistent disk state when creating paritions

Attempting to use mkfs immediately after creating
partitions using sfdisk, (in the same shell-script)
fails with all kernels I have tried. The partition
information doesn't get updated for several seconds!

In every case, with both ext2 and ext3 file-systems,
I can create them manually or I can sleep in the
shell-script. However, I don't think this problem
should exist.

The problem was first discovered with old-fashioned
IDE disks. I don't have any spare SATA drives to
see if the problem exists there. I note that sfdisk
says it is re-reading to update the parition information.


Does anybody know about this or care?


Cheers,
Dick Johnson
Penguin : Linux version 2.6.25.17 on an i686 machine (4784.32 Gimps).
My book : http://www.AbominableFirebug.com/
.


****************************************************************
The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to [email protected] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.


2009-01-08 09:39:45

by Karl Kiniger

[permalink] [raw]
Subject: Re: Inconsistent disk state when creating paritions

On Wed 090107, linux-os (Dick Johnson) wrote:
> Attempting to use mkfs immediately after creating
> partitions using sfdisk, (in the same shell-script)
> fails with all kernels I have tried. The partition
> information doesn't get updated for several seconds!

are you using udev?

udev takes some time to create the partition devices

Karl

>
> In every case, with both ext2 and ext3 file-systems,
> I can create them manually or I can sleep in the
> shell-script. However, I don't think this problem
> should exist.
--
Karl Kiniger mailto:[email protected]
Tel: (++43) 7682-3800-710 Voip(GE): 1662 710
Fax: (++43) 7682-3800-47 C: +43 6991 3800 710
-
GE Medical Systems Kretztechnik GmbH & Co OHG - Tiefenbach 15 – A-4871 Zipf
Landesgericht Wels FN 222387s – UID (VAT-ID): ATU54086108 - DVR: 2111103 – ARA: 12816
Persönlich haftende Gesellschafterin: GE Medical Systems Kretztechnik GmbH
Tiefenbach 15 – A-4871 Zipf - Landesgericht Wels FN 218689b