11-02-2012, 03:54 PM | #31 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I still need to try it on my K5, but I do not expect any loop mount, or I would probably have noticed it long ago... |
|
11-02-2012, 04:15 PM | #32 | ||
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Code:
mount -o offset=1075838976 /dev/mmcblk0p4 /somehwere Code:
mount /dev/mmcblk0p2 /mnt/mmc Quote:
|
||
Advert | |
|
11-02-2012, 04:22 PM | #33 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I only did a quick "loop check" for P2, while installing diags SSH into my PW... |
|
11-02-2012, 04:40 PM | #34 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
|
11-02-2012, 04:54 PM | #35 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Ahh... I missed that. It does the offset mount (hidden) in a loop mount. I will look for that next time I play with mntusb.params... Thanks for the enlightenment.
|
Advert | |
|
11-04-2012, 09:28 PM | #36 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
SO. this whole thread kind of petered out there...
Am I to understand the thrust of it say that the Guide by Eternal Cyclist is good? With the mounting caveats as stated later... or do the notes of Eureka suggest that this needs more thought? I'm struggling to put it all together. |
11-04-2012, 09:59 PM | #37 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Does loop mounting a partition use less RAM than loop mounting an image file? Multiple people including myself and dasmoover (as I recall) have had issues with a K5 locking up while trying to do anything useful in a loop mounted ext3 (or ext2) image file, such as building packages. Even apt-get can lock up...
Is the method suggested here significantly better? Has anybody tried compiling something significant in a loop mounted debian on a K5? In the past, I successfully built X11 on a K3 in a loop mounted debian. I had yet to learn the details of eink updates, but at least the build was successful. It took about 12 hours on my K3. It would be interesting to see how long it takes on a K5 (or even if it completes). Perhaps loop mounting a raw partition would be faster and use less RAM when NOT going through layers of loop mounting an image file on a fuse filesystem, and the vfat support and all that... |
11-04-2012, 10:08 PM | #38 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
the number of VFS layers involved. Using the loop driver to provide a device-to-device layer (although called part of the Virtual File System) is just a device offset calculation operating below the file-to-device layers. Plus, adding in a user space file system layer - most bets are off. The kernel can control, and usually recover from, what happens in kernel space (things like potential deadlock paths). It has no control over what user space does until it makes a call into kernel space. |
|
11-05-2012, 08:59 AM | #39 | ||
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Quote:
|
||
11-05-2012, 09:35 AM | #40 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Apparently, using /mnt/base-us/ instead of /mnt/us/ eliminates some of the fuse overhead while using a loop mounted file when doing it this way. However, it still uses the vfat layer, so it may free up even more RAM to use a raw partition as suggested in this thread. |
|
11-05-2012, 09:38 AM | #41 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
!!! YAY. nice one you lot many thanks |
|
11-05-2012, 11:36 PM | #42 | |
Member
Posts: 17
Karma: 17948
Join Date: Oct 2012
Device: KT
|
Quote:
Concerning Eureka's solution: Hiding the new partition by not writing the info to the secondary partitiontable is ok, as long as you always keep in mind that something is there. Adding an offset corrected entry to the secondary partition table should be no problem. Why I am still hesitating to use Eureka's method on my second Kindle (K4NT): I would like to boot directly into that new partition, but I don't know how or even if this is possible. Using mmcblk0p2 is easier, as I can boot into diags as before. |
|
11-06-2012, 12:08 AM | #43 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
The most straightforward way to boot into new parition is changing of init script /sbin/initt on main parition. For example, add mounting of your parition and then change the root fs with /sbin/pivot_root.
|
11-06-2012, 08:09 AM | #44 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[root@kindle interface2]# fdisk /dev/mmcblk0
Quote:
[root@kindle root]# fdisk /dev/mmcblk0 Quote:
Last edited by twobob; 11-06-2012 at 08:22 AM. |
||
11-06-2012, 08:54 AM | #45 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
fdisk -l
(that's: ell) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Questions about repartitioning | simongee | Sony Reader Dev Corner | 47 | 11-06-2012 05:07 AM |
Kindle Touch: Bricked and readonly filesystem | pmugabi | Kindle Developer's Corner | 6 | 09-17-2012 01:50 AM |
PRS-T1 Completed guide for repartitioning. | homeos | Sony Reader Dev Corner | 20 | 04-05-2012 11:54 AM |
PB360 Filesystem error | ArchCarrier | PocketBook | 4 | 06-06-2010 08:46 AM |
Stock kindle 2 filesystem (2.0.3 or newer preferred) | eousphoros | Kindle Developer's Corner | 10 | 02-17-2010 08:40 PM |