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)
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
Attachment | Size | Date |
---|---|---|
sd-utils-0.0.18.1-1.noarch.rpm | 3.77 KB | 28/06/2015 - 13:28 |
sd-utils-0.0.18.1-2.noarch.rpm | 3.99 KB | 04/07/2015 - 13:40 |
sd-utils-0.0.18.3-0.noarch.rpm | 4.08 KB | 08/07/2015 - 19:25 |
sd-utils-0.0.18.3-1.noarch.rpm | 4.15 KB | 08/07/2015 - 19:37 |
sd-utils-0.0.18.4-0.noarch.rpm | 4.23 KB | 26/09/2015 - 14:55 |
sd-utils-0.0.18.4-1.noarch.rpm | 4.31 KB | 13/10/2015 - 08:47 |
sd-utils-0.3.0.1-0.noarch.rpm | 4.49 KB | 08/05/2016 - 19:49 |
sd-utils-0.3.0.1-1.noarch.rpm | 4.58 KB | 08/05/2016 - 20:26 |
sd-utils-0.3.0.1-2.noarch.rpm | 4.9 KB | 20/06/2016 - 12:19 |
- Remove swap support if SailfishOS handles it native (>=2.0.2.45)
Comments
eson
Sun, 2015/09/27 - 10:33
Permalink
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
Sun, 2015/09/27 - 11:19
Permalink
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
Sun, 2015/09/27 - 21:56
Permalink
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
Thu, 2015/09/10 - 21:32
Permalink
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
Fri, 2015/09/11 - 12:50
Permalink
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
Mon, 2015/09/21 - 17:09
Permalink
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
Mon, 2015/06/29 - 00:25
Permalink
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
Mon, 2015/06/29 - 11:42
Permalink
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