Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2013, 03:49 AM   #1
sysKin
Connoisseur
sysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the endsysKin knows the complete value of PI to the end
 
sysKin's Avatar
 
Posts: 56
Karma: 31286
Join Date: Oct 2012
Location: Australia
Device: Aura HD, after a train ate my Glo
HOWTO: make your kobo faster by modifying filesystem options

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, 43 views)

Last edited by sysKin; 04-25-2013 at 08:21 AM.
sysKin is offline   Reply With Quote
Old 04-25-2013, 01:26 PM   #2
ewphoenix123
Groupie
ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'
 
Posts: 161
Karma: 42238
Join Date: Oct 2012
Device: PRS-500, PRS-700, PRS-650, PRS-T1, Kobo Glo, Kobo Aura HD
an alternative way to activate telnet would be nice, for some weird reason i can't get the old one to work after updating to 2.5.1, although it worked fine yesterday.
Probably some mistake on my end and not firmware related. :P
ewphoenix123 is offline   Reply With Quote
 
Advertisement
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO make a Kobo sleep cover from a regular cover for about $2 rwhe Kobo Reader 35 10-19-2014 05:07 PM
How to make the flipping page does faster? physics@war iRex 3 06-17-2009 05:25 AM
GmailFS - make your Gmail a mountable filesystem Alexander Turcic Lounge 2 08-30-2004 04:07 AM


All times are GMT -4. The time now is 08:13 AM.


MobileRead.com is a privately owned, operated and funded community.