SD card with EXT4 is not mounted automatically
Dear all!
I have to mount my SD card manually (https://together.jolla.com/question/179054/how-to-creating-partitions-on-sd-card-optionally-encrypted/). According to several articles, there should be a mount-sd.sh - but it isn't. Do you have an idea what is wrong? Is mount-sd.sh really necessary in latest SailfishOS? Do I only need to install the script and, where can I find the official on (repository/rpm)?
Latest Sailfish X. Sandisk 32GB with Ext4. Update: I have no /usr/sbin/mount-sd.sh or similar. Important: Formatting or mounting from settings does not work. I had to use the teminal's mkfs.ext4 and fdisk to get a ext4 formated sd card and had to mount it via mount command.
Thx.
Sorry I can't help with automatic mounting, since I've been somewhat confused by the amount of info posted about sd cards, (not because of any fault of the posters, necessarily, but because I don't have much advanced knowledge). When I found something that works for me, I just stuck with it... I have a 16gb sdcard, partitioned half ext4 and half exfat, which I had in my phone when I was running Android, and booting Linux from sd. Neither partition has ever mounted automatically, no matter what packages I install or settings I set. So I made a simple mount script, and created 2 directories, (p1 and p2), and use the Shellex app to mount with one click.
Levone1 ( 2018-05-15 00:04:47 +0300 )edit@wosrediinanatour, please open a shell window ("Terminal", which has to be enabled by switching on Settings -- > Developer tools --> Developer mode first) and type
ls -l /usr/sbin/mount-sd.sh
followed by hitting the Return key.Does your output look similar to this:
(The file size may differ by a couple of bytes and the timestamp by a couple of hours, as this example was taken on a Jolla 1 phone under SailfishOS 2.1.4.14.)
And "Yes", this script is part of SailfishOS (i.e. should be installed as part of it) and necessary for auto-mounting partitions on a SD-card.
olf ( 2018-05-15 00:33:05 +0300 )edit@wosrediinanatour - if you don't mind me butting in - I don't have that script in /usr/bin, but I have mount-usbstick.sh, (Xperia X Compact). Same or different? My output for the command looks similar to yours.
Levone1 ( 2018-05-15 04:23:53 +0300 )edit@olf and @Levone1: I have neither of these files.
btw: Formatting and mounting from the setrings page does not work. I have to use terminal.
Do you know of which package this script is?
wosrediinanatour ( 2018-05-15 07:46:00 +0300 )edit@Levone1, this is a different file, I suppose.
As you seem to use a community build of SailfishOS on your device, ask the maintainer(s) of this build for details (and how to auto-mount SD-cards).
@wosrediinanatour (on my Jolla 1 under SFOS 2.1.4.14):
I suppose this is why installing the Bleeding edge SD-utils helps (below), as it provides an alternative (although old IIRC) source of this package (and hence the
olf ( 2018-05-16 20:46:08 +0300 )editmount-sd.sh
script).