All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Related to mounting USB
@ 2011-12-19 10:41 Navani Kamal Srivastava
  2011-12-19 19:39 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Navani Kamal Srivastava @ 2011-12-19 10:41 UTC (permalink / raw
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

Hi,

I am facing problem in mounting USB. At the time of system bootup if USB stick is plugged, it shows messages like

"scsi 0:0:0:0: Direct-Access     JetFlash Transcend 8GB    8.07 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 15654912 512-byte logical blocks: (8.01 GB/7.46 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
PHY: 0:01 - Link is Up - 100/Full"

But I won't get any sda or sda1 in /dev to mount. If I am unplugging the USB stick and again plug it I would be able to look for it in /dev and mount it. Please look after this issue.

Thanks & Regards,
Navani Kamal Srivastava


Larsen & Toubro Limited

www.larsentoubro.com<http://www.larsentoubro.com/>

This mail is classified as: ( ) L&T Proprietary ( ) L&T Confidential (X) L&T Internal Use ( ) L&T General Business
This email may contain confidential or privileged information for the intended recipient(s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.




Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

[-- Attachment #2: Type: text/html, Size: 4791 bytes --]

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

* Re: Related to mounting USB
  2011-12-19 10:41 Related to mounting USB Navani Kamal Srivastava
@ 2011-12-19 19:39 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2011-12-19 19:39 UTC (permalink / raw
  To: Navani Kamal Srivastava; +Cc: yocto@yoctoproject.org

Dear Navani Kamal Srivastava,

In message <9BACABF0C6B14A4D8C33B42A795119BE096D7BA7@POCITMSEXMB03.LntUniverse.com> you wrote:
>
> I am facing problem in mounting USB. At the time of system bootup if
> USB stick is plugged, it shows messages like
...
> But I won't get any sda or sda1 in /dev to mount. If I am
> unplugging the USB stick and again plug it I would be able to look
> for it in /dev and mount it. Please look after this issue.

This is a known problem.  Some even call it a feature ;-)

Yocto tries to speedup the boot process by caching the /dev contents:
it creates an archive "/etc/dev.tar" on the first boot and, if this
archive exists during the next boot, it gets extracted and most of
the coldplug events are filtered. Only if the archive doesn't exist a
full scan is performed.

This seems to be a good solution for a root file system used inside a
typical embedded device (as scanning for cold plug events is known to
be slow) but this clearly doesn't work in your setup where the booted
configuration changes.

As a workaround you just need to remove the "/etc/dev.tar" file from
the root file system.

As a real fix you might want to disable this functionality for
your configuration.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The only time the world beats a path to your door is when you are  in
the bathroom.


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

end of thread, other threads:[~2011-12-19 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19 10:41 Related to mounting USB Navani Kamal Srivastava
2011-12-19 19:39 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.