Bleeding edge sd-utils

Rating: 
5
Your rating: None Average: 5 (4 votes)

This replaces /usr/sbin/mount-sd.sh with a experimental version including these commits:
Adding support for swap space on SD card
Wait for the tracker after we mounted, not before.
Correctly unmount
Remove duplicated code
Enable TRIM on ext4 and btrfs
Remove useless indexing
Add TRIM support for f2fs.
fschk before mounting.
Try to fix exfat support.
Don't flush on exfat.
Mount by label.
Remove swap support if SailfishOS handles it native (>=2.0.2.45)

 

FAQ

Installation failed, why?
To correctly install it you have to uninstall first, then install (see comment #13836 and comment #9665 for more information).

My card won't mount anymore after a update of SailfishOS, what to do?
Reinstall bleeding edge sd-utils (see comment #9665 for more information).

Use at your own risk!

Like what you see? Feel free to Donate by PayPal

 

Application versions: 
AttachmentSizeDate
File sd-utils-0.0.18.1-1.noarch.rpm3.77 KB28/06/2015 - 13:28
File sd-utils-0.0.18.1-2.noarch.rpm3.99 KB04/07/2015 - 13:40
File sd-utils-0.0.18.3-0.noarch.rpm4.08 KB08/07/2015 - 19:25
File sd-utils-0.0.18.3-1.noarch.rpm4.15 KB08/07/2015 - 19:37
File sd-utils-0.0.18.4-0.noarch.rpm4.23 KB26/09/2015 - 14:55
File sd-utils-0.0.18.4-1.noarch.rpm4.31 KB13/10/2015 - 08:47
File sd-utils-0.3.0.1-0.noarch.rpm4.49 KB08/05/2016 - 19:49
File sd-utils-0.3.0.1-1.noarch.rpm4.58 KB08/05/2016 - 20:26
File sd-utils-0.3.0.1-2.noarch.rpm4.9 KB20/06/2016 - 12:19
Changelog: 

- Remove swap support if SailfishOS handles it native (>=2.0.2.45)

Comments

eson's picture

There's one thing worrying me. I've never installed this app or even enabled this repository, and yet openrepos app show me the uninstall button when I browse this app on my phone. This seem somehow hazardous to me!

What is it that gets uninstalled if I tap that button?

V10lator's picture

This replaces a system package, so if you tap on uninstall your sd-card won't mount anymore untill you reinstall it (pkcon install sd-utils).

//EDIT: Please note that this isn't the only package acting like this. For example NielDK has a lot of replacement packages in his repo.

eson's picture

Ok, thanks. That's pretty much what I thougt.

I think this needs to be fixed somehow. Sooner or later someone will tap that button, thinking he's got something installed that needs to be uninstalled. ;)

MoritzJT's picture

Will you update this one to work on SailfishOS 2.0?

Currently I cannot install it anymore.

Before the latest update I had an issue with getting my swap partition mounted by this script. It just did not work. The first partition of my sdcard is formatted to f2fs and the second 2GB partition is formatted to swap.

swapon does not list it after a regular boot. I can however mount it manually using this command in my specific setup:

swapon --discard --priority 10 /dev/mmcblk1p2

I assembled this command from your script as this should be what is called upon executing it. It does not work.

I therefore have to do this after each reboot on my own.

Love all the work that went into this by now!

 

V10lator's picture

It already does work on SFOS 2.0 (1.1.9.28). To install it open Warehouse, go to it, then _uninstall_ it and re-install again. For some reason (either openrepos or SFOS change) it just can't update from original to bleeding edge anymore (which will hopefully be obsolete soon anyway as all these changes are in queue for inclusion upstream).

Swap works here, too, this is right after a reboot:
[nemo@Jolla ~]$ devel-su swapon
Password:
NAME TYPE SIZE USED PRIO
/dev/mmcblk0p24 partition 508M 0B -1
/dev/zram0 partition 52,6M 3M 100
/dev/zram1 partition 52,6M 3M 100
/dev/mmcblk1p2 partition 1024M 0B 10

So if it's different for you please contact me again so we can figure out what's wrong.

MoritzJT's picture

Followed your advice, now it works just fine. Thank you!

 

Now one question from TJC bothers me as I am affected by this as well:

https://together.jolla.com/question/107380/bug-11928-sailfishos-20-mount...

Is this part to be fixed in the mount script or is the culprit somewhere else and has to be fixed by Jolla?

MoritzJT's picture

So is there any place to look at for novice users? Can I set up my SD Card to have one partition exfat to be able to read it in windows AND have some SWAP on it without it rendering the SD Card useless under windows because the damn OS can't handle multiple partitions on removable devices?

V10lator's picture

I'm not using windows so I can't confirm but google says windows mounts the first primary partition. So make sure your first primary partition is exfat, second is swap, then it should work.

Pages