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 06-05-2013, 09:35 AM   #31
auspex
Groupie
auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.
 
auspex's Avatar
 
Posts: 162
Karma: 1066430
Join Date: Sep 2012
Location: Nova Scotia
Device: Sony PRS-T2, Samsung Galaxy Ace IIx
Quote:
Originally Posted by flowoeB View Post
thank you, found the initial mount of "onboard" at boot and the rmount after unplugging the usb. I'll simply do a mount without the vfat argument if there is an error on the original mount line... will give it a try tomorrow...
I looked at that - you can't actually "just do a mount without the vfat argument" if the mount of the internal card is like the one for the external card - it includes an option ("-o shortname=mixed") that's invalid on an ext* partition.

I suggested native linux partitions long ago, but never had the gumption to try it myself - with my 800 odd books, and too many collections, it is very slow to boot, so I just don't ever boot if I can help it!
auspex is offline   Reply With Quote
Old 06-07-2013, 01:18 AM   #32
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
there are no short filenames under ext3 - so why would you use "-o shortname=mixed" ? I just deleted the argument.
flowoeB is offline   Reply With Quote
Old 06-07-2013, 09:43 AM   #33
auspex
Groupie
auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.
 
auspex's Avatar
 
Posts: 162
Karma: 1066430
Join Date: Sep 2012
Location: Nova Scotia
Device: Sony PRS-T2, Samsung Galaxy Ace IIx
Like I said - you can't "just do a mount without the vfat argument".
auspex is offline   Reply With Quote
Old 06-21-2013, 02:27 PM   #34
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
hm, tried to mount an external ext3 sd on my aura today and it won't mount - I see it, when I plug the reader into my macs USB and can write books to it - but I can't access it with the reader itself... a messagebox is popping up that tells me to format the sd with fat32... the USB and SD files are modified as described above and I'm running 2.6.1b...
flowoeB is offline   Reply With Quote
Old 06-21-2013, 05:13 PM   #35
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 2,963
Karma: 3910175
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite, AuraHD, PDA, Eee Transformer
Quote:
Originally Posted by flowoeB View Post
hm, tried to mount an external ext3 sd on my aura today and it won't mount - I see it, when I plug the reader into my macs USB and can write books to it - but I can't access it with the reader itself... a messagebox is popping up that tells me to format the sd with fat32... the USB and SD files are modified as described above and I'm running 2.6.1b...
Hmm... Did you get the internal/onboard SD working?

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 06-22-2013, 01:24 AM   #36
flowoeB
E-Reader Sammler
flowoeB is on a distinguished road
 
flowoeB's Avatar
 
Posts: 123
Karma: 50
Join Date: Feb 2009
Location: Austria
Device: DR1000S; 505,300,350,600,T1; DX, 3, Fire, PW; Tolino; iPad; Aura
didn' try it. if the external does not work I don't think the internal will... I'll take a deeper look into this as soon as i have more time...
flowoeB is offline   Reply With Quote
Old 12-11-2014, 03:52 PM   #37
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 789
Karma: 2109877
Join Date: Sep 2010
Device: Kobo H2O, iriver StoryHD
Even without changing any of the rcS/sd/... scripts that do the mounting, it's possible to change both the internal and external storage to ext4.

I noticed that mount and dosfsck are located in /bin/, but PATH is /sbin:/usr/sbin:/bin:/usr/bin. Thus you can replace the mount and dosfsck commands with shell scripts in either /sbin/ or /usr/sbin/.

Example for /sbin/mount:

Code:
#!/bin/busybox sh

echo mount "$@" >> /mount.log

exec /bin/mount "$@"
So all this does is log the call and then execute the original binary in /bin/.

Here's the log:

Code:
mount -o remount,noatime,nodiratime /dev/mmcblk0p1 /
mount -t vfat -o noatime,nodiratime,shortname=mixed,utf8 /dev/mmcblk0p3 /mnt/onboard
mount -t devpts devpts /dev/pts
mount -r -t vfat -o noatime,nodiratime,shortname=mixed,utf8 /dev/mmcblk1p1 /mnt/sd
mount -o remount,rw /mnt/sd
mount -o remount,ro /mnt/sd
mount -o remount,rw /mnt/sd
mount -o remount,ro /mnt/sd
mount -r -t vfat -o noatime,nodiratime,shortname=mixed,utf8 /dev/mmcblk1p1 /mnt/sd
mount -o remount,rw /mnt/sd
mount -o remount,ro /mnt/sd
Note the various proc, tmpfs, etc. mounts are missing from this log, since rcS for some reason calls mount with full path for those, so the PATH trick does not catch them. If there were any such calls for the vfat, you'd have to replace /bin/mount and exec /bin/busybox mount instead.

And the dosfsck log:

Code:
dosfsck -a -w /dev/mmcblk0p3
dosfsck -a -w /dev/mmcblk1p1
dosfsck -a -w /dev/mmcblk1p1
So you can hook into those calls and mangle the parameters any way you like. And it should even survive firmware updates.

Getting those scripts onto the reader is easy enough using KoboRoot.tgz. This method seems to be lacking an uninstall facility though. My iriver Story HD was nice enough to execute a shell script for every update, but if Kobo has something like it, I haven't found it yet. Naturally you could just use the same trick with a self-destructive script, hmmm...

Last edited by frostschutz; 12-11-2014 at 05:02 PM.
frostschutz is online now   Reply With Quote
Old 12-15-2014, 01:12 PM   #38
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 789
Karma: 2109877
Join Date: Sep 2010
Device: Kobo H2O, iriver StoryHD
Hi,

Warning: This works fine for me, but I can't guarantee it will work for you. Use at your own risk!

this hack allows using either vfat or ext2/3/4 for both internal and external storage. It does not automatically format your filesystems, you have to do that yourself while the device is connected to USB.

Since this hack does not modify any of the original firmware files, there is a good chance it will survive firmware updates (but not factory resets). Otherwise, a firmware update would likely end in a brick or forced factory reset since the ext* filesystem would be considered corrupt by dosfsck.
  1. Backup all your files (rsync -a or similar)
  2. Install the attached KoboRoot.tgz (tested with H2O only)
  3. mkfs.ext4 -L KOBOeReader /dev/sdx (for internal storage)
  4. mkfs.ext4 /dev/sdy (for external storage)
  5. Restore your backup to the newly created filesystems

Note that unlike vfat, ext* does not set the executable flag automatically, so this may break some other mods that put binaries there without explicitely setting them executable.

Regards
frostschutz

PS: I haven't tested what Calibre makes of the change; I do not use Calibre for syncing.

PPS: I made this to see if it could be done; not because it's actually useful for anything.
Attached Files
File Type: zip KoboRoot-ext234vfat.zip (1.5 KB, 5 views)

Last edited by frostschutz; 12-15-2014 at 01:20 PM.
frostschutz is online now   Reply With Quote
Old 12-15-2014, 06:50 PM   #39
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 6,092
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by frostschutz View Post
PS: I haven't tested what Calibre makes of the change; I do not use Calibre for syncing.
Calibre's only requirement is that it can see the drive. If it is a mounted file system the OS can write to, then calibre can use it.
davidfor is offline   Reply With Quote
Old 12-15-2014, 07:05 PM   #40
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 789
Karma: 2109877
Join Date: Sep 2010
Device: Kobo H2O, iriver StoryHD
It's also a question of file permissions and ownerships.
frostschutz is online now   Reply With Quote
Old 12-15-2014, 09:01 PM   #41
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 7,433
Karma: 46459035
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
From what I remember if this is done the attaching via USB to a Windows machine will totally fail. Windows will NOT recognize the exported device as a validly formatted device.

Sent from my Nexus 7 using Forum Fiend v1.2.14.
PeterT is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kindle 3 hardware hacking (micro usb & sd card) damaru Amazon Kindle 5 03-16-2012 09:19 AM
360 Pocketbook 360 and SD card file system error readerreader PocketBook 2 08-29-2011 01:10 AM
K2 system file access dwallbaum Amazon Kindle 2 09-08-2010 05:32 PM
File System Information Adam B. iRex 0 10-29-2008 09:46 AM
how to clean more disk space in root file system to upgrade system chinaet iRex 1 12-18-2006 04:54 PM


All times are GMT -4. The time now is 09:56 PM.


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