View Single Post
Old 02-04-2010, 06:42 AM   #47
paul1981
Junior Member
paul1981 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2010
Device: Hanlin v5
Hello,

Thanks Qbspin! Following Qbspin's instructions, and using cramfs tools I could unpack both ro.fs.v5 and root.fs.v5 (with some errors though):

ro.fs.v5

Code:
root@ubuntu:~/cramfs-1.1$ ./cramfsck -x /tmp/ro.fs.v5 ../firmware-tools/ro.fs.v5; ls -Rla /tmp/ro.fs.v5
warning: file extends past end of filesystem
./cramfsck: mknod failed: /tmp/ro.fs.v5/dev/console: Operation not permitted
/tmp/ro.fs.v5:
total 44
drwxr-xr-x  4 root root  4096 2010-02-04 11:24 .
drwxrwxrwt 16 root          root          24576 2010-02-04 11:24 ..
drwxr-xr-x  2 root root  4096 2010-02-04 11:24 bin
-rw-r--r--  1 root root   775 1970-01-01 01:00 control.txt
drwxr-xr-x  2 root root  4096 1970-01-01 01:00 dev

/tmp/ro.fs.v5/bin:
total 1092
drwxr-xr-x 2 root root   4096 2010-02-04 11:24 .
drwxr-xr-x 4 root root   4096 2010-02-04 11:24 ..
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 addgroup -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 adduser -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ash -> busybox
-rwxr-xr-x 1 root root     73 1970-01-01 01:00 autologin
-rwxr-xr-x 1 root root 712608 1970-01-01 01:00 busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 cat -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 catv -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 chattr -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 chgrp -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 chmod -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 chown -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 cp -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 cpio -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 date -> busybox
-rwxr-xr-x 1 root root   7396 1970-01-01 01:00 dbus-cleanup-sockets
-rwxr-xr-x 1 root root 277248 1970-01-01 01:00 dbus-daemon
-rwxr-xr-x 1 root root  14748 1970-01-01 01:00 dbus-launch
-rwxr-xr-x 1 root root  10532 1970-01-01 01:00 dbus-monitor
-rwxr-xr-x 1 root root  13420 1970-01-01 01:00 dbus-send
-rwxr-xr-x 1 root root   5264 1970-01-01 01:00 dbus-uuidgen
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 dd -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 delgroup -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 deluser -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 df -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 dmesg -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 dumpkmap -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 echo -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ed -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 egrep -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 false -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 fdflush -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 fgrep -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 getopt -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 grep -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 gunzip -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 gzip -> busybox
-rwxr-xr-x 1 root root   3392 1970-01-01 01:00 hardwatchdog
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 hostname -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ip -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ipaddr -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ipcalc -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 iplink -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 iproute -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 iprule -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 iptunnel -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 kill -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ln -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 login -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ls -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 lsattr -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mkdir -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mknod -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mktemp -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 more -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mount -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mountpoint -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mt -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 mv -> busybox
-rwxr-xr-x 1 root root  45092 1970-01-01 01:00 nanowm
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 netstat -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 nice -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 pidof -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ping -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ping6 -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 pipe_progress -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 printenv -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 ps -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 pwd -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 rm -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 rmdir -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 rpm -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 run-parts -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 sed -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 sh -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 sleep -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 stat -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 stty -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 su -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 sync -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 tar -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 touch -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 true -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 umount -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 uname -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 uncompress -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 usleep -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 vi -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 watch -> busybox
lrwxrwxrwx 1 root root      7 2010-02-04 11:24 zcat -> busybox
root.fs.v5

Code:
root@ubuntu:~/cramfs-1.1$ ./cramfsck -x /tmp/root.fs.v5 ../firmware-tools/root.fs.v5; ls -Rla /tmp/root.fs.v5
warning: file extends past end of filesystem
./cramfsck: data block too large
/tmp/root.fs.v5:
total 36
drwxr-xr-x  3 root root  4096 2010-02-04 11:25 .
drwxrwxrwt 17 root          root          24576 2010-02-04 11:25 ..
drwxr-xr-x  2 root root  4096 2010-02-04 11:25 root

/tmp/root.fs.v5/root:
total 4868
drwxr-xr-x 2 root root    4096 2010-02-04 11:25 .
drwxr-xr-x 3 root root    4096 2010-02-04 11:25 ..
lrwxrwxrwx 1 root root       4 2010-02-04 11:25 abook -> /mnt
-rwxr-xr-x 1 root root       0 2010-02-04 11:25 adobe
-rw-r--r-- 1 root root   12964 1970-01-01 01:00 .muttrc
-rw-r--r-- 1 root root 4958208 1970-01-01 01:00 Resource.irf
lrwxrwxrwx 1 root root      25 2010-02-04 11:25 System.ttf -> fonts/truetype/simsun.ttf
Sadly, It doesn't work with the user.fs.v5 (i get a ./cramfsck: superblock magic not found). Does it work for any of you? I guess this file contains all the libraries required to boot the system and parse/view the ebooks, don't you think?

To be honest I don't know if the inode structure is correct. As far as I know: File sizes are limited to less than 16MB. (via wikipedia). That adobe file may be related to the Adobe® Digital Editions software..

Regards,

Paul.
paul1981 is offline   Reply With Quote