public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /proc/partitions not done updating when init is ran?
@ 2004-02-12  2:42 Nick Bartos
  2004-02-12  4:58 ` Marcos D. Marado Torres
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Bartos @ 2004-02-12  2:42 UTC (permalink / raw)
  To: linux-kernel

I have a problem where it does not look like /proc/partitions is updated
completely by the time init is ran.

Basically I am booting from a usb flash device, and when I try to run fsck
on the device on boot (using LABEL=, which is necessary since the actual
device cannot be assumed in my config) it fails.  After further
investigation /proc/partitions does not contain any scsi partitions right
when init is starting, but if I do a "sleep 10" before running fsck then
it works fine.

I can of course put that sleep in there but that is ugly and I have no way
of knowing the maximum delay, so if it took too long then it would not
work and I would be screwed...

Isn't /proc/partitions supposted to be finished updating when init starts?
 If this is not a kernel bug (or it won't be fixed for a while), then what
is the deal and how can I fix this cleanly?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-12  2:42 /proc/partitions not done updating when init is ran? Nick Bartos
@ 2004-02-12  4:58 ` Marcos D. Marado Torres
  2004-02-12 12:47   ` Nick Bartos
  0 siblings, 1 reply; 7+ messages in thread
From: Marcos D. Marado Torres @ 2004-02-12  4:58 UTC (permalink / raw)
  To: Nick Bartos; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Is that happening in 2.6.2-rc3-mm1 or up?

If yes, try unsetting nbd in your kernel config.

Mind Booster Noori

- --
==================================================
Marcos Daniel Marado Torres AKA Mind Booster Noori
/"\               http://student.dei.uc.pt/~marado
\ /                       marado@student.dei.uc.pt
 X   ASCII Ribbon Campaign
/ \  against HTML e-mail and Micro$oft attachments
==================================================

On Wed, 11 Feb 2004, Nick Bartos wrote:

> I have a problem where it does not look like /proc/partitions is updated
> completely by the time init is ran.
>
> Basically I am booting from a usb flash device, and when I try to run fsck
> on the device on boot (using LABEL=, which is necessary since the actual
> device cannot be assumed in my config) it fails.  After further
> investigation /proc/partitions does not contain any scsi partitions right
> when init is starting, but if I do a "sleep 10" before running fsck then
> it works fine.
>
> I can of course put that sleep in there but that is ugly and I have no way
> of knowing the maximum delay, so if it took too long then it would not
> work and I would be screwed...
>
> Isn't /proc/partitions supposted to be finished updating when init starts?
>  If this is not a kernel bug (or it won't be fixed for a while), then what
> is the deal and how can I fix this cleanly?
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFAKwf2mNlq8m+oD34RAvICAJ94Kv1Yspu0syE8MLAZwSHEgJ8i4ACdEOJy
KqWcNxWT9t3o1jm1gUq04Ew=
=u2Ds
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-12  4:58 ` Marcos D. Marado Torres
@ 2004-02-12 12:47   ` Nick Bartos
  2004-02-12 13:00     ` Nick Bartos
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Bartos @ 2004-02-12 12:47 UTC (permalink / raw)
  To: Marcos D. Marado Torres; +Cc: linux-kernel

No, it is 2.4.25-pre7.  I could technically go to 2.6.x, but it would take
a bit of work due to some other changes.  I would really like to get this
stable in 2.4.x.

What is nbd?


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Is that happening in 2.6.2-rc3-mm1 or up?
>
> If yes, try unsetting nbd in your kernel config.
>
> Mind Booster Noori
>
> - --
> ==================================================
> Marcos Daniel Marado Torres AKA Mind Booster Noori
> /"\               http://student.dei.uc.pt/~marado
> \ /                       marado@student.dei.uc.pt
>  X   ASCII Ribbon Campaign
> / \  against HTML e-mail and Micro$oft attachments
> ==================================================
>
> On Wed, 11 Feb 2004, Nick Bartos wrote:
>
>> I have a problem where it does not look like /proc/partitions is updated
>> completely by the time init is ran.
>>
>> Basically I am booting from a usb flash device, and when I try to run
>> fsck
>> on the device on boot (using LABEL=, which is necessary since the actual
>> device cannot be assumed in my config) it fails.  After further
>> investigation /proc/partitions does not contain any scsi partitions
>> right
>> when init is starting, but if I do a "sleep 10" before running fsck then
>> it works fine.
>>
>> I can of course put that sleep in there but that is ugly and I have no
>> way
>> of knowing the maximum delay, so if it took too long then it would not
>> work and I would be screwed...
>>
>> Isn't /proc/partitions supposted to be finished updating when init
>> starts?
>>  If this is not a kernel bug (or it won't be fixed for a while), then
>> what
>> is the deal and how can I fix this cleanly?
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> Comment: Made with pgp4pine 1.76
>
> iD8DBQFAKwf2mNlq8m+oD34RAvICAJ94Kv1Yspu0syE8MLAZwSHEgJ8i4ACdEOJy
> KqWcNxWT9t3o1jm1gUq04Ew=
> =u2Ds
> -----END PGP SIGNATURE-----
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-12 12:47   ` Nick Bartos
@ 2004-02-12 13:00     ` Nick Bartos
  2004-02-12 17:16       ` Marcos D. Marado Torres
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Bartos @ 2004-02-12 13:00 UTC (permalink / raw)
  To: Marcos D. Marado Torres; +Cc: linux-kernel

OK yes I see that CONFIG_BLK_DEV_NBD is disabled.  Any other ideas?


> No, it is 2.4.25-pre7.  I could technically go to 2.6.x, but it would take
> a bit of work due to some other changes.  I would really like to get this
> stable in 2.4.x.
>
> What is nbd?
>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> Is that happening in 2.6.2-rc3-mm1 or up?
>>
>> If yes, try unsetting nbd in your kernel config.
>>
>> Mind Booster Noori
>>
>> - --
>> ==================================================
>> Marcos Daniel Marado Torres AKA Mind Booster Noori
>> /"\               http://student.dei.uc.pt/~marado
>> \ /                       marado@student.dei.uc.pt
>>  X   ASCII Ribbon Campaign
>> / \  against HTML e-mail and Micro$oft attachments
>> ==================================================
>>
>> On Wed, 11 Feb 2004, Nick Bartos wrote:
>>
>>> I have a problem where it does not look like /proc/partitions is
>>> updated
>>> completely by the time init is ran.
>>>
>>> Basically I am booting from a usb flash device, and when I try to run
>>> fsck
>>> on the device on boot (using LABEL=, which is necessary since the
>>> actual
>>> device cannot be assumed in my config) it fails.  After further
>>> investigation /proc/partitions does not contain any scsi partitions
>>> right
>>> when init is starting, but if I do a "sleep 10" before running fsck
>>> then
>>> it works fine.
>>>
>>> I can of course put that sleep in there but that is ugly and I have no
>>> way
>>> of knowing the maximum delay, so if it took too long then it would not
>>> work and I would be screwed...
>>>
>>> Isn't /proc/partitions supposted to be finished updating when init
>>> starts?
>>>  If this is not a kernel bug (or it won't be fixed for a while), then
>>> what
>>> is the deal and how can I fix this cleanly?
>>> -
>>> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
>>> in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>> Please read the FAQ at  http://www.tux.org/lkml/
>>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.1 (GNU/Linux)
>> Comment: Made with pgp4pine 1.76
>>
>> iD8DBQFAKwf2mNlq8m+oD34RAvICAJ94Kv1Yspu0syE8MLAZwSHEgJ8i4ACdEOJy
>> KqWcNxWT9t3o1jm1gUq04Ew=
>> =u2Ds
>> -----END PGP SIGNATURE-----
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-12 13:00     ` Nick Bartos
@ 2004-02-12 17:16       ` Marcos D. Marado Torres
  2004-02-13  0:40         ` Nick Bartos
  0 siblings, 1 reply; 7+ messages in thread
From: Marcos D. Marado Torres @ 2004-02-12 17:16 UTC (permalink / raw)
  To: Nick Bartos; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 12 Feb 2004, Nick Bartos wrote:

> OK yes I see that CONFIG_BLK_DEV_NBD is disabled.  Any other ideas?

Well, does it still happen with 2.4.25-rc2 ?

> > No, it is 2.4.25-pre7.  I could technically go to 2.6.x, but it would take
> > a bit of work due to some other changes.  I would really like to get this
> > stable in 2.4.x.

Mind Booster Noori

- --
==================================================
Marcos Daniel Marado Torres AKA Mind Booster Noori
/"\               http://student.dei.uc.pt/~marado
\ /                       marado@student.dei.uc.pt
 X   ASCII Ribbon Campaign
/ \  against HTML e-mail and Micro$oft attachments
==================================================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFAK7UGmNlq8m+oD34RAv5wAJwPjsIOMB55zSF//9MnnQDEIYRDpwCeMfJ5
Au44XTzEf+tbjosvG9Dvo3U=
=h41f
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-12 17:16       ` Marcos D. Marado Torres
@ 2004-02-13  0:40         ` Nick Bartos
  2004-02-13  3:28           ` H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Bartos @ 2004-02-13  0:40 UTC (permalink / raw)
  To: Marcos D. Marado Torres; +Cc: linux-kernel

>
> Well, does it still happen with 2.4.25-rc2 ?
>

yes it does, and it does for 2.6.2 as well.

I did a couple of dmesg's and it looks like the usb device is not being
detected until after init is ran.  I would think that the kernel would
have done all the device detection before running init but I guess not.

Is there a way to check somewhere to make sure it is done detecting
devices?  I cannot just check to see if any of the usb/scsi stuff exists
since some systems may be booting off ide and have no usb bus enabled.

Here are a few of the lines that get added after I wait for a few seconds
in my init script:

+scsi0 : SCSI emulation for USB Mass Storage devices
+  Vendor: OEI-USB2  Model: CompactFlash      Rev: 1.04
+  Type:   Direct-Access                      ANSI SCSI revision: 02
+Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
+SCSI device sda: 250880 512-byte hdwr sectors (128 MB)
+sda: Write Protect is off
+ /dev/scsi/host0/bus0/target0/lun0: p1 p2
+WARNING: USB Mass Storage data integrity not assured
+USB Mass Storage device found at 2




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: /proc/partitions not done updating when init is ran?
  2004-02-13  0:40         ` Nick Bartos
@ 2004-02-13  3:28           ` H. Peter Anvin
  0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2004-02-13  3:28 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <52044.192.168.1.12.1076632825.squirrel@mail.2thebatcave.com>
By author:    "Nick Bartos" <spam99@2thebatcave.com>
In newsgroup: linux.dev.kernel
>
> >
> > Well, does it still happen with 2.4.25-rc2 ?
> >
> 
> yes it does, and it does for 2.6.2 as well.
> 
> I did a couple of dmesg's and it looks like the usb device is not being
> detected until after init is ran.  I would think that the kernel would
> have done all the device detection before running init but I guess not.
> 

Yes, the "delayed detect" behaviour of USB is a big problem.

	-hpa
-- 
PGP public key available - finger hpa@zytor.com
Key fingerprint: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
"The earth is but one country, and mankind its citizens."  --  Bahá'u'lláh
Just Say No to Morden * The Shadows were defeated -- Babylon 5 is renewed!!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-13  3:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-12  2:42 /proc/partitions not done updating when init is ran? Nick Bartos
2004-02-12  4:58 ` Marcos D. Marado Torres
2004-02-12 12:47   ` Nick Bartos
2004-02-12 13:00     ` Nick Bartos
2004-02-12 17:16       ` Marcos D. Marado Torres
2004-02-13  0:40         ` Nick Bartos
2004-02-13  3:28           ` H. Peter Anvin

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