We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

SD card with EXT4 is not mounted automatically

asked 2018-05-14 22:32:26 +0300

wosrediinanatour gravatar image

updated 2018-05-15 08:51:44 +0300

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.

edit retag flag offensive close delete

Comments

1

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:

[nemo@sailfish ~]$ ls -l /usr/sbin/mount-sd.sh
-rwxr-xr-x 1 root root 3591 2017-12-13 05:19 /usr/sbin/mount-sd.sh
[nemo@sailfish ~]$

(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
1

@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):

[nemo@sailfish ~]$ rpm -qf "/usr/sbin/mount-sd.sh"
sd-utils-0.1.3-1.1.1.noarch
[nemo@sailfish ~]$

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 mount-sd.sh script).

olf ( 2018-05-16 20:46:08 +0300 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2018-05-15 10:00:39 +0300

jolladiho gravatar image

updated 2018-05-15 10:03:27 +0300

I had this problem with the first xperia X ( F5121) community port. There was no mount-sd.sh.

Try the unofficial install of: Beeding edge sd util That will fix your problem.

To create the mount-sd.sh only, does not help. You need a systemd service and udev rules too, if I remember right.

If you do not want to install that unofficial tool, you can download it fron open repos (https://openrepos.net/content/v10lator/bleeding-edge-sd-utils), unpack it and look what files you need to create.

Good luck PS: What the device? what SailfishX (community or official)?

edit flag offensive delete publish link more

Comments

Thx!

Official, Xperia X

wosrediinanatour ( 2018-05-15 10:20:49 +0300 )edit

Unofficial here - thanks for the leads. Btw - bleeding edge fixed it, thanks... Funny, I had tried that before, but didn't get the same results. Maybe I just never rebooted or something.

Levone1 ( 2018-05-15 11:55:32 +0300 )edit

Hmm, with official version on xperia X I did not had the problem in the past.

jolladiho ( 2018-05-16 08:47:16 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-05-14 22:32:26 +0300

Seen: 1,173 times

Last updated: May 15 '18