Re: [SailfishDevel] (USB) access to sdcard?
Wim de Vries wsvr...@xs4all.nl writes: Hi, Currently the SDCARD is mounted at /run/usr/10/media/sdcard. Can I hard-code this into my app, or will it change in future? You should not rely on it beeing there forever. In a future update we'll provide middleware to handle SD-card related functionality (informing if SD-card is present, and at which path, notify about removal, ...); until then using the SD-card from your application is not officially supported, and if you do use it, you need to take care of SD-card discovery and error handling if the SD-card gets removed by yourself. Also, I want my users to be able to put data (aviation maps+more) on the SD card via a USB connection. Currently there is no access via USB (just the home is available). It will be enabled in a future update, we're currently testing that feature. Bernd ___ SailfishOS.org Devel mailing list
[SailfishDevel] (USB) access to sdcard?
Hi, Currently the SDCARD is mounted at /run/usr/10/media/sdcard. Can I hard-code this into my app, or will it change in future? Also, I want my users to be able to put data (aviation maps+more) on the SD card via a USB connection. Currently there is no access via USB (just the home is available). thanks. r wim ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (USB) access to sdcard?
On Sat, 25 Jan 2014 14:35:30 +0100 Wim de Vries wsvr...@xs4all.nl wrote: Hi, Currently the SDCARD is mounted at /run/usr/10/media/sdcard. I think you mean /run/user/.. as /run/usr doesn't exist and I don't think you'd want to be writing to /usr even if it did ;-) Can I hard-code this into my app, or will it change in future? Also, I want my users to be able to put data (aviation maps+more) on the SD card via a USB connection. Can't you (as root) unmount the sdcard from the above location, as user create a folder /home/nemo/sdcard and then mount /dev/mmcblk1p1 to there? How about an entry in fstab to fix that mount permanently? Run blkid to give you the UUID of the sdcard so that even if it's swapped out, it will still remount in the same place. This is what I get when I run that command (I have a 16GB SD card in my phone which came straight from my N900) /dev/mmcblk1p1: UUID=B7C1-AD43 TYPE=vfat I can't help you with the USB stuff. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] (USB) access to sdcard?
Thanks. On 01/25/2014 06:18 PM, Chris Walker wrote: On Sat, 25 Jan 2014 14:35:30 +0100 Wim de Vries wsvr...@xs4all.nl wrote: Hi, Currently the SDCARD is mounted at /run/usr/10/media/sdcard. I think you mean /run/user/.. as /run/usr doesn't exist and I don't think you'd want to be writing to /usr even if it did ;-) Yes, you are right (usr is so common typing) Can't have my app/user do root stuff. I can do create a softlink to the sdcard (a la ln -s /run/usr/10/media/sdcard/maps sdcardmaps). Still not sure if that would create problems for the overall system... r wim Can I hard-code this into my app, or will it change in future? Also, I want my users to be able to put data (aviation maps+more) on the SD card via a USB connection. Can't you (as root) unmount the sdcard from the above location, as user create a folder /home/nemo/sdcard and then mount /dev/mmcblk1p1 to there? How about an entry in fstab to fix that mount permanently? Run blkid to give you the UUID of the sdcard so that even if it's swapped out, it will still remount in the same place. This is what I get when I run that command (I have a 16GB SD card in my phone which came straight from my N900) /dev/mmcblk1p1: UUID=B7C1-AD43 TYPE=vfat I can't help you with the USB stuff. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list