Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2012, 03:55 PM   #46
AeroFengBlade
Junior Member
AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 5
Karma: 87422
Join Date: Sep 2012
Device: Kindle Touch
Quote:
Originally Posted by knc1 View Post
Well, if you find you have to use a partition (a device) rather than a file...

You can also make a new node inside /dev/ called swap for easier access:
Code:
mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number
Make a separate directory in /mnt/us/ called swap:
Code:
mkdir /mnt/us/swap
cd /mnt/us/swap
Make a new swap file:
Code:
dd if=/dev/zero of=swapfile bs=1M count=128
mkswap swapfile
Turn the file into a block device:
Code:
losetup /dev/swap /mnt/us/swap/swapfile
I made some scripts in /mnt/us/swap/ for easy swapping on/off:
swapon.sh
Spoiler:

mknod /dev/swap b 7 8
losetup /dev/swap /mnt/us/swap/swapfile
swapon /dev/swap

swapoff.sh
Spoiler:

swappoff /dev/swap #You don't really need a script for this, but I'm lazy

Swap on...swap off Sounds like wax on, wax off from the original Karate Kid, if you know what I'm talking about

Last edited by AeroFengBlade; 10-26-2012 at 04:00 PM.
AeroFengBlade is offline   Reply With Quote
Old 10-26-2012, 03:59 PM   #47
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4


I liked the old Karate Kid movie better than the new one...
qlob is offline   Reply With Quote
Advert
Old 10-31-2012, 12:26 AM   #48
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
No host found for xkid.biz
aditya3098 is offline   Reply With Quote
Old 10-31-2012, 07:16 AM   #49
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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 yeah. it's down... so I dug around...

Quote:
dd if=/dev/zero of=debian.ext3 bs=1M count=500 oflag=append conv=notrunc e2fsck -f debian.ext3 resize2fs debian.ext3
is the only fragment I could find from that host.

Which looks a lot like

https://www.mobileread.com/forums/showthread.php?t=96048

here's more of the same:

http://tomashg.com/?p=330
hope that helps


enjoy

Last edited by twobob; 10-31-2012 at 07:23 AM.
twobob is offline   Reply With Quote
Old 11-01-2012, 03:54 PM   #50
AeroFengBlade
Junior Member
AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 5
Karma: 87422
Join Date: Sep 2012
Device: Kindle Touch
Luckily I downloaded the image a few days before it went down (like a few months ago). I don't have the original, but if you want my current copy of it, I'm currently uploading it.
AeroFengBlade is offline   Reply With Quote
Advert
Old 11-01-2012, 05:59 PM   #51
AeroFengBlade
Junior Member
AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.AeroFengBlade knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 5
Karma: 87422
Join Date: Sep 2012
Device: Kindle Touch
Ok guys, here it is:

https://dl.dropbox.com/s/mft5c4vgjk8...t3.tar.gz?dl=1

It's on Dropbox since it's too large to attach, and because I don't have a site to host it on.
AeroFengBlade is offline   Reply With Quote
Old 11-01-2012, 09:00 PM   #52
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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:
Originally Posted by AeroFengBlade View Post
Ok guys, here it is:

https://dl.dropbox.com/s/mft5c4vgjk8...t3.tar.gz?dl=1

It's on Dropbox since it's too large to attach, and because I don't have a site to host it on.
http://bit.ly/k5debian
for a ge.tt mirror of that mate.
HTH
twobob is offline   Reply With Quote
Old 11-06-2012, 12:00 AM   #53
EternalCyclist
Member
EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.EternalCyclist for a long time would go to bed early.
 
Posts: 17
Karma: 17948
Join Date: Oct 2012
Device: KT
Quote:
Originally Posted by geekmaster View Post
But I thought we were supposed to avoid using /mnt/base-us/.
Using /mnt/base-us seems to work unless you are accessing userstore from host PC at the same time.

The lock ups might not be caused by loop mounting in general, but by fsp. /etc/fstab includes:
Code:
 fsp#/mnt/base-us  /mnt/us       fuse   
rw,max_write=65536,max_readahead=65536,noatime,exec,nosuid,nodev,nonempty
Quick look at fsp:
Code:
strings /sbin/fsp
says that it is a "filesystem proxy".

Code:
ps  -eo %mem,rss,args | grep fsp
shows
Code:
 0.4  1116 fsp /mnt/base-us /mnt/us -o rw,nosuid,nodev,noatime,max_write=65536,max_readahead=65536,nonempty
fsp uses 0.4% of physical memory, 1116 kB. Not too bad. But maybe it changes dynamically.
EternalCyclist is offline   Reply With Quote
Old 11-06-2012, 08:00 AM   #54
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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
I use winscp (on linux) to push stuff onto the mounted /mnt/debain/stuff/here directly from my linux mint box.

never had a complaint, mounted or otherwise. Since that works flawlessly seemingly I am sticking with that. HTH (it's mounted via /mnt/base-us IIRC at mount time)
twobob is offline   Reply With Quote
Old 11-06-2012, 08:58 AM   #55
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
I use winscp (on linux) to push stuff onto the mounted /mnt/debain/stuff/here directly from my linux mint box.

never had a complaint, mounted or otherwise. Since that works flawlessly seemingly I am sticking with that. HTH (it's mounted via /mnt/base-us IIRC at mount time)
It has to be.
At least it does if you want the device nodes to work within the chroot environment.

Note the "nodev" attribute on /mnt/us.
knc1 is offline   Reply With Quote
Old 11-06-2012, 09:06 AM   #56
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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:
Originally Posted by knc1 View Post
It has to be.
At least it does if you want the device nodes to work within the chroot environment.

Note the "nodev" attribute on /mnt/us.
ah yeah. I do, now you mention it
twobob is offline   Reply With Quote
Old 11-07-2012, 12:17 AM   #57
aditya3098
Guru
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
That clears my cross compiling nightmares!
aditya3098 is offline   Reply With Quote
Old 09-29-2013, 03:44 PM   #58
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
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
Lightbulb

Quote:
Originally Posted by AeroFengBlade View Post
You can also make a new node inside /dev/ called swap for easier access:
Code:
mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number
Make a separate directory in /mnt/us/ called swap:
Code:
mkdir /mnt/us/swap
cd /mnt/us/swap
Make a new swap file:
Code:
dd if=/dev/zero of=swapfile bs=1M count=128
mkswap swapfile
Turn the file into a block device:
Code:
losetup /dev/swap /mnt/us/swap/swapfile
I made some scripts in /mnt/us/swap/ for easy swapping on/off:
swapon.sh
Spoiler:

mknod /dev/swap b 7 8
losetup /dev/swap /mnt/us/swap/swapfile
swapon /dev/swap

swapoff.sh
Spoiler:

swappoff /dev/swap #You don't really need a script for this, but I'm lazy

Swap on...swap off Sounds like wax on, wax off from the original Karate Kid, if you know what I'm talking about
I do exactly this save for one thing

losetup /dev/swap /mnt/base-us/swap/swapfile

I run mine via base-us.

Unsure if this has any impact but the other way occasionally locked up.
(possibly the whole Fuse file proxy thing again)

Thought I would share...
twobob is offline   Reply With Quote
Old 09-29-2013, 04:00 PM   #59
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Yup - you can't run swap over the anything fuse - it is a deadlock path in the kernel.
I think the same restriction applies to NFS (or, at least, it used to apply).

And there is no reason to turn the swap file into a device - 'swap' can use a file as well as a device.
So just "use it" as a file after you run mkswap on it.
knc1 is offline   Reply With Quote
Old 10-09-2013, 09:16 AM   #60
NullNix
Guru
NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.NullNix ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 15576314
Join Date: Jan 2013
Location: Ely, Cambridgeshire, UK
Device: Kindle Oasis 3, Kindle Oasis 1
Quote:
Originally Posted by knc1 View Post
I think the same restriction applies to NFS (or, at least, it used to apply).
Recent kernels can swap over NFS, but it was a very hard problem: a huge patchset brewing for literally years. The solution involves an emergency memory pool that the network subsystem can dip into for packet buffers, so it won't make it any more possible to swap to FUSE. *That* is risky as hell even if you mlockall() your entire FUSE daemon into memory, because stack allocations can still happen...
NullNix is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting my kindle3g locks up when I go online carbide08 Amazon Kindle 5 08-21-2011 02:35 PM
Kobo locks up on this ePub RSaunders Devices 3 08-10-2011 01:55 PM
Library Software Locks Up sakura-panda Sony Reader 8 01-02-2010 01:40 AM
Document locks up Kindle 2 Rhett Amazon Kindle 0 10-25-2009 07:45 PM
HanLin V3 locks up roytravis HanLin eBook 8 05-27-2009 10:03 AM


All times are GMT -4. The time now is 05:25 AM.


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