This post reports the commands I've used for creating a library on a independent partition. This is only relevant for the use of koreader, since Kobo's Nickel won't see it. It assumes you modified your internal microSD to a larger size, for example 32GB. It also would make Syskin's thread for a faster filesystem more relevant. In principle you could move koreader to the ext2 partition to increase speed.
Pros: When Aura restores, I do not lose the library!
Cons: You will need to mount the partition and have usbnet started, before you can copy files to it with for example WinSCP.
Every time before starting koreader your should mount the filesystem. I've modified my KoreaderLaucher.sh to include this command and start in the library:
Pros: When Aura restores, I do not lose the library!
Cons: You will need to mount the partition and have usbnet started, before you can copy files to it with for example WinSCP.
1.Enable telnet via usb with 1-step-hack.
2.Telnet into the Aura with putty, login as "root".
3.[root@(none) ~]# fdisk /dev/mmcblk0
At this point you have to reboot and hold the light button to do a factory restore!!
Then Upgrade, then install 1-step-Hack, then continue...
4.[root@(none) ~]# mkdir /mnt/library
5.[root@(none) ~]# mkfs.ext2 -m 1 /dev/mmcblk0p4
The results can be seen with the following commands:2.Telnet into the Aura with putty, login as "root".
3.[root@(none) ~]# fdisk /dev/mmcblk0
a. Command (m for help): m
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
b. Command (m for help): pa toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Disk /dev/mmcblk0: 32.3 GB, 32311869440 bytes
4 heads, 16 sectors/track, 986080 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 305 8497 262144+ 83 Linux
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2 8497 16689 262144+ 83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk0p3 16689 138759 3906271 83 Linux
/dev/mmcblk0p4 138760 986080 27114272 83 Linux
c. To get here I 4 heads, 16 sectors/track, 986080 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 305 8497 262144+ 83 Linux
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2 8497 16689 262144+ 83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmcblk0p3 16689 138759 3906271 83 Linux
/dev/mmcblk0p4 138760 986080 27114272 83 Linux
I. deleted partition 3,
II. created a new partition 3 with starting cylinder 16689 and size +4000M and
III. created a new partition (4) with starting cyclinder 138760 and default to maximum size.
II. created a new partition 3 with starting cylinder 16689 and size +4000M and
III. created a new partition (4) with starting cyclinder 138760 and default to maximum size.
At this point you have to reboot and hold the light button to do a factory restore!!
Then Upgrade, then install 1-step-Hack, then continue...
4.[root@(none) ~]# mkdir /mnt/library
5.[root@(none) ~]# mkfs.ext2 -m 1 /dev/mmcblk0p4
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1695744 inodes, 6778568 blocks
67785 blocks (1%) reserved for the super user
First data block=0
Maximum filesystem blocks=8388608
207 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
6.[root@(none) mnt]# mount /dev/mmcblk0p4 /mnt/library/OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1695744 inodes, 6778568 blocks
67785 blocks (1%) reserved for the super user
First data block=0
Maximum filesystem blocks=8388608
207 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
7.[root@(none) mnt]# mount
If you use:rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /tmp type tmpfs (rw,relatime,size=16384k)
none on /dev type tmpfs (rw,relatime)
none on /var/lib type tmpfs (rw,relatime,size=16k)
none on /var/log type tmpfs (rw,relatime,size=16k)
none on /var/run type tmpfs (rw,relatime,size=128k)
none on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mmcblk0p3 on /mnt/onboard type vfat (rw,noatime,nodiratime,fmask=0022,dmask=0022,codep age=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/mmcblk0p4 on /mnt/library type ext2 (rw,relatime,barrier=1,data=writeback)
8.[root@(none) ~]# df/dev/root on / type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /tmp type tmpfs (rw,relatime,size=16384k)
none on /dev type tmpfs (rw,relatime)
none on /var/lib type tmpfs (rw,relatime,size=16k)
none on /var/log type tmpfs (rw,relatime,size=16k)
none on /var/run type tmpfs (rw,relatime,size=128k)
none on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mmcblk0p3 on /mnt/onboard type vfat (rw,noatime,nodiratime,fmask=0022,dmask=0022,codep age=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/mmcblk0p4 on /mnt/library type ext2 (rw,relatime,barrier=1,data=writeback)
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 253871 132693 121178 52% /
none 16384 4 16380 0% /tmp
none 256952 12 256940 0% /dev
none 16 4 12 25% /var/lib
none 16 0 16 0% /var/log
none 128 24 104 19% /var/run
/dev/mmcblk0p3 3898652 247920 3650732 6% /mnt/onboard
/dev/mmcblk0p4 26688548 3872492 22544916 15% /mnt/library
/dev/root 253871 132693 121178 52% /
none 16384 4 16380 0% /tmp
none 256952 12 256940 0% /dev
none 16 4 12 25% /var/lib
none 16 0 16 0% /var/log
none 128 24 104 19% /var/run
/dev/mmcblk0p3 3898652 247920 3650732 6% /mnt/onboard
/dev/mmcblk0p4 26688548 3872492 22544916 15% /mnt/library
5.alternative [root@(none) mnt]# mke2fs -j -m 1 /dev/mmcblk0p4
You make an ext3 filesystem which you can mount as ext4.Every time before starting koreader your should mount the filesystem. I've modified my KoreaderLaucher.sh to include this command and start in the library:
#!/bin/sh
mount /dev/mmcblk0p4 /mnt/library/
/mnt/onboard/.kobo/KoboLauncher/usbnet/start.sh
/mnt/onboard/.kobo/koreader/koreader_kobo.sh /mnt/library
mount /dev/mmcblk0p4 /mnt/library/
/mnt/onboard/.kobo/KoboLauncher/usbnet/start.sh
/mnt/onboard/.kobo/koreader/koreader_kobo.sh /mnt/library