Notices


Reply
Thread Tools
Posts: 1,417 | Thanked: 2,619 times | Joined on Jan 2011 @ Touring
#121
Is there a way to prevent the SD card from unmounting when the back comes off. I have had several pocket drops where I loose the battery door but the battery stays in, it still kills the system and about 30% requires backupmenu and a good backup.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#122
Originally Posted by biketool View Post
Is there a way to prevent the SD card from unmounting when the back comes off. I have had several pocket drops where I loose the battery door but the battery stays in, it still kills the system and about 30% requires backupmenu and a good backup.
While completely unrelated to FlopSwap the easy way to do this is glue a small powerful magnet over the back cover sensor. This tricks the device into thinking the back cover is closed and stopping swap from unmounting. There is a thread somewhere about this.

In my one or two unfortunate cover removals while live, I have not had any trouble after a reboot. Not to say corruption couldn't happen.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Posts: 459 | Thanked: 669 times | Joined on Sep 2007 @ The DMV
#123
Originally Posted by klinglerware View Post

In any case, since you and others have been able to use the SanDisk 64gb without running through hoops, I am beginning to suspect that the culprit is likely the card itself. With the 64gb card installed, I experienced 4 or 5 random reboots a day with swap enabled on the card. The reboots stopped when I switched back to the 32gb card (again with swap enabled on the card).
Just to close the loop on this, I decided to RMA my SanDisk 64gb card. The replacement that SanDisk sent me works perfectly. I've been using swap on the card without any random reboots for a week or so now.
 

The Following 3 Users Say Thank You to klinglerware For This Useful Post:
Posts: 252 | Thanked: 221 times | Joined on Jul 2010
#124
I am seeing "0% fresh swap written" every time I Check Status.

The only possible culprit is that I've just installed Easy Debian while swap was on the SD card (only). Easy Debian, I think, wanted to restart the swap but tried to do it on the device swap, and then reported something like a wrong argument (/dev/mmcblk0p0) for swapoff. I checked /proc/swaps and saw that swap was now both on the device and on the SDcard. I rebooted, and told Flopswap to swap to Fresh Swap. It is showing (Show Current) the correct swap file (on the SD card), but even after starting half a dozen programs it still says 0% fresh swap written. Please advise.

I've used Flopswap for months and have never seen this 0% business.
__________________
21.2011.38-1Smaemo7 (CSSU Stable)
2.6.28.10power53 (not overclocked)
Yes, I search before posting.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#125
Originally Posted by chill View Post
I am seeing "0% fresh swap written" every time I Check Status.

I've used Flopswap for months and have never seen this 0% business.
It is possible to get 0% Fresh Swap Written but not for long if you are using the device.

More likely the issue is that Easy Debian has moved the partitions so FlopSwap is no longer monitoring the correct partition. Because FlopSwap's partitions are "hardcoded" this would make it incompatible.

I have never used Easy Debian but I do believe it modified the partitions somehow.

Code:
cat /proc/swaps
cat /proc/diskstats
cat /proc/partitions
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#126
Originally Posted by sixwheeledbeast View Post
I have never used Easy Debian but I do believe it modified the partitions somehow.
ED does not modify partitions on its own. In fact, the default installation runs from an image in /media/mmc1. It may, however, be installed in a partition (most common use case is on the SD), which requires a manual preparation. Might it be possible that chill moved partitions around to fit ED and the new arrangement fooled FlopSwap?

Caveat: I have never used FlopSwap and cannot test.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 252 | Thanked: 221 times | Joined on Jul 2010
#127
I didn't manually move the partitions. I did have Flopswap on prior to installing ED, and swap was on the SD card. ED installation then first reported an invalid argument to swapoff (I think the argument was /dev/mmcblk0p3). Then, while the ED image file was decompressing, I did a cat /proc/swaps and saw that both the N900 and the SD card were used for swapping (the N900's swap had 0 bytes used, though). Not that this explains everything...When I installed ED before (circa a year ago), I was not swapping to SD card, and subsequent Flopswap and swapping to SD card worked fine (I'd write 94% fresh swap in just a few hours or so).

I also did cat /proc/diskstats now. Looking at Flopswap's swapused.sh, it seems that swapused.sh calculates the fresh swap correctly (and I don't see any errors in the script) - the problem is that the number of written blocks (in diskstats, the 7th argument after the device name) is too low, generally 10000-30000, and rising very slowly (so it takes hours just to get to 5% fresh swap); meanwhile Conky reports hundreds of MB of swap written.

So what could be happening to my /proc/diskstats, and how could ED cause it? Obviously this doesn't look like a Flopswap issue (anymore), but if I moved this to the ED thread I might come across as a cross-poster.
__________________
21.2011.38-1Smaemo7 (CSSU Stable)
2.6.28.10power53 (not overclocked)
Yes, I search before posting.

Last edited by chill; 2013-09-11 at 20:30. Reason: correction: I believe the argument was /dev/mmcblk0p3, though I didn't pay that close attention
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#128
This is an issue with Easy Debian package IMO.

I have looked through the sources, Easy Debian package assumes your swap is on the device (0p3) when running the installer.

"/home/user/debian-installer.sh" - Line 145

Code:
sudo swapoffon
"/sbin/swapoffon"
Code:
#!/bin/sh
swapoff /dev/mmcblk0p3
swapon /dev/mmcblk0p3
IMPORTANT NOTE:-
It seems anyone wishing to install Easy Debian with Swap on uSD should move Swap back to the device (0p3) before installing.


As for a fix I would hope a reboot should put it straight but you say you have tried this. I have not spotted anything in the source which would change any partitions.

The calculations are designed to increase slowly to avoid hitting "int32" (see earlier posts) However, it could be that your swap has been stripped between the card and device somehow.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 252 | Thanked: 221 times | Joined on Jul 2010
#129
Ok, my /proc/swaps looks ok:

Filename Type Size Used Priority
/dev/mmcblk1p2 partition 683000 85804 -1

but look at my /proc/partitions:

major minor #blocks name

7 0 3145728 loop0
179 0 15558144 mmcblk0
179 1 14191600 mmcblk0p1
179 2 683008 mmcblk0p2
179 3 683008 mmcblk0p3
179 8 31264768 mmcblk1
179 9 28315648 mmcblk1p1
179 10 2097152 mmcblk1p2
179 11 786432 mmcblk1p3

So my 16GB SD card is now on mmcblk0? And I am swapping to mmcblk1p2? How'd that happen? Where is the swap actually?

Meanwhile Conky correctly reports the intended (SD card) swap size, i.e. 667 MB. Fresh Swap on Flopswap also goes through.
__________________
21.2011.38-1Smaemo7 (CSSU Stable)
2.6.28.10power53 (not overclocked)
Yes, I search before posting.
 
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#130
Hmm, do you still have KP installed?
Have you installed any other updates recently?
Seems something has changed your boot setup,


--Edit

Also noticed that easy debian deletes and increases the size of the /tmp directory. This will mess up calculation of swap until a reboot.

The word "kludge" is used many times in the source of easy-debian
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.

Last edited by sixwheeledbeast; 2013-09-12 at 19:22.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:26.