All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeffrey D Boyer <Jeffrey.D.Boyer@jci.com>
To: Mike Looijmans <mike.looijmans@topic.nl>,
	Christopher Larson <clarson@kergoth.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Mounting USB drives on a "read-only-rootfs" based system
Date: Wed, 15 Jun 2016 13:14:08 +0000	[thread overview]
Message-ID: <a99347d5dc6f4d219af8fe6cb72f8de6@BN3PR97MB0132.062d.mgd.msft.net> (raw)
In-Reply-To: <57610CB8.4050904@topic.nl>

My distro is running udev.  I discovered the automounter script in /etc/udev/rules.d was causing the mount point to be /media.  For all I know, this is default behavior for udev.

Anyway, I think I found a solution.  As suggested by another person on the thread, I went ahead and mounted a tmpfs on the /media directory.  This allowed the udev automount script to function as it did when the squashfs option was disabled.  

Thanks to everyone for all the help.

-----Original Message-----
From: Mike Looijmans [mailto:mike.looijmans@topic.nl] 
Sent: Wednesday, June 15, 2016 4:07 AM
To: Jeffrey D Boyer <Jeffrey.D.Boyer@jci.com>; Christopher Larson <clarson@kergoth.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Mounting USB drives on a "read-only-rootfs" based system

On 14-06-16 15:48, Jeffrey D Boyer wrote:
> Sorry, /media is not a symlink and there is no /run/media link or directory present on my running system.  When I insert an SD card, for example, I get a bit of text on the debug serial port that a card has been detected, but I don't see a mount point anywhere after that.
>
> 	root@mySys:/# mmc1: new high speed SDHC card at address 1234
> 	mmcblk1: mmc1:1234 SA04G 3.63 GiB
> 	 mmcblk1: p1
>
> It should be noted that if I exclude the " read-only-rootfs" option in 
> the bb script, a normal read/write kernel image is produced and the 
> action of inserting an SD card under those conditions will 
> automatically produce a mount point at /media/mmcblk1p1

Apparently your distro or image or whatever is lacking some directories. The /run/media should have been created automagically.

Are you using udev or mdev for hotplug?

For mdev, I implemented the automounting using /run/media and that should also work on read-only-rootfs systems. So I can probably figure out what's wrong with your config.

For udev, I don't have a clue, sorry...


> FYI, I'm running 3.14 kernel.  Is this a job for aufs?  If so, how would I go about configuring it?

No, it's not related to autofs or aufs or whatever. It's plain simple udev or mdev.



Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail






  reply	other threads:[~2016-06-15 13:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 21:22 Mounting USB drives on a "read-only-rootfs" based system Jeffrey D Boyer
2016-06-13 22:01 ` Christopher Larson
2016-06-14 13:18   ` Mike Looijmans
2016-06-14 13:48     ` Jeffrey D Boyer
2016-06-14 14:28       ` Burton, Ross
2016-06-14 16:01         ` Fred Ollinger
2016-06-15  8:07       ` Mike Looijmans
2016-06-15 13:14         ` Jeffrey D Boyer [this message]
2016-06-14  6:36 ` Richard Leitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a99347d5dc6f4d219af8fe6cb72f8de6@BN3PR97MB0132.062d.mgd.msft.net \
    --to=jeffrey.d.boyer@jci.com \
    --cc=clarson@kergoth.com \
    --cc=mike.looijmans@topic.nl \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.