[maemo-developers] Finding the mmc cards
From: Tony Maro tonymaro at gmail.comDate: Wed Aug 29 17:33:02 EEST 2007
- Previous message: Finding the mmc cards
- Next message: Finding the mmc cards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/29/07, Marius Vollmer <marius.vollmer at nokia.com> wrote: > > > The internal card is always mounted on /media/mmc2, and the external > card is always mounted on /media/mmc1. And when the Nokia n900 (just guessing) gets released, and it has a memory stick socket or some other type of memory card, I assume we won't be able to rely on this anymore. But, sounds like for at least the short term (or long term in Internet years) relying on mount and /media/mmc* is the way to go. Assuming you don't need notifications of card insert. You can also use the environment variables MMC_MOUNTPOINT and > INTERNAL_MMC_MOUNTPOINT, but then you have to make sure that they are > always set correctly in your environment. (I don't think using > environment variables for this kind of system information is a good > idea.) Agreed. Especially with the numbers of morons like me that are likely to screw those up ;-) The device files are not constant like this: the internal card might > be /dev/mmcblk0 or /dev/mmcblk1, as far as I understand. Someone with > better low-level knowledge please correct me. I had thought this might be the case, especially since my /dev/mmcblk0 goes to /media/mmc2 and /dev/mmcblk1 goes to /media/mmc1 on my device. Seemed kind of reversed to me. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070829/2d044453/attachment.htm
- Previous message: Finding the mmc cards
- Next message: Finding the mmc cards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]