Quantcast
Channel: MobileRead Forums - Kobo Developer's Corner
Viewing all articles
Browse latest Browse all 1562

HOWTO: make your kobo faster by modifying filesystem options

$
0
0
It is documented elsewhere on the internet that by using non-standard ext4 filesystem options, a linux machine -- such as our kobo -- can potentially run its filesystem faster.

So, what options does it run by default?
Code:

[root@(none) /]# mount
rootfs on / type rootfs (rw) /dev/root on / type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)

Some are good, some are not what that blog recommends.

So, I decided to try to change it and share how to.

What you'll need is:
- ftp and telnet/ssh access to the device. The guides on the internet aren't perfect, if you want I can make a better todo (where better means it was easier for me...).
- a cross-compiled tune2fs with dependencies. I'm attaching those files which I scavenged from pre-compiled rmps openmamba repository. You can cross-compile them yourself, find them pre-compiled yourself (7zip opens rpms), or just get them from the zip I'll attach.

Instructions:
1. FTP to your kobo and put the contents of my zip somewhere. Since those files won't be needed after you've finished all steps, I just dumped them to the root of kobo's filesystem.
2. telnet/ssh into your kobo (I used putty) and run the following commands:
Code:

chmod +x ./tune2fs # make the file executable
./tune2fs -o journal_data_writeback /dev/mmcblk0p1 # change the journaling mode to what that blog post suggests

3. Modify the mount instruction to activate all the other options the blog suggests. Kobo doesn't use fstab but instead executes the mount command directly from /etc/init.d/rcS (line 5). My procedure for modifying it is: get the file using ftp, edit it, upload it back using ftp.
Original is:
Code:

mount -o remount,noatime,nodiratime /dev/mmcblk0p1 /
Change it to:
Code:

mount -o remount,noatime,nodiratime,barrier=0,nobh /dev/mmcblk0p1 /
4. Reboot the device for those changes to take effect.

So, what's the result?
Code:

[root@(none) /]# mount
rootfs on / type rootfs (rw) /dev/root on / type ext4 (rw,noatime,nodiratime,barrier=0,nobh,data=writeback)

Works!

Is it any faster, I bet you'll ask? Well I can't tell... the book I'm reading definitely feels snappy flipping pages, but is it because of the book, because of the options, or just a placebo? I really don't have any serious tools to make a proper comparison.

Hopefully that helps!

Attached Files
File Type: zip tune2fs.zip (280.4 KB)

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>