![]() |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
The program stopped to work after 1.0 and 1.1 update:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900:~# / -sh: /: Permission denied Nokia-N900:~# blkid | grep swap /dev/mmcblk1p2: TYPE="swap" UUID="f7f14492-53ab-4310-93f5-fd4c44925742" /dev/mmcblk1p3: TYPE="swap" UUID="3edcec31-58eb-455d-8ec3-fa8dcf370281" /dev/mmcblk0p3: TYPE="swap" UUID="3edcec31-58eb-455d-8ec3-fa8dcf370281" Nokia-N900:~# dpkg-query -W -f='${Version}\n' upstart 0.3.8-68+0cssu6 Nokia-N900:~# cat /etc/default/mount-opts-overwrite swap_sd="0" Nokia-N900:~# cat /etc/default/mount-opts # !!! Do not edit this file. It can be overwritten in next update !!! # !!! Instead create and edit file /etc/default/mount-opts-overwrite !!! # Options for mounting all filesystems common_opts="noatime,nodiratime" # Options for mounting root's filesystems (/, /home) root_opts="errors=continue,commit=1,data=writeback " # Options for mounting user's filesystems (MyDocs, SD cards, ...) user_opts="noauto,nodev,exec,nosuid" # Options for different filesystems vfat_opts="utf8,uid=29999,shortname=mixed,dmask=00 0,fmask=0000,rodir" ntfs_opts="nls=utf8,uid=29999,umask=0000" # Renerate fstab at boot time in /etc/event.d/rcS-late genfstab="1" # When generating fstab add also swap partitions from SD card (if exists) swap_sd="0" # Call fsck.<fstype> -p for /home at boot time in /etc/event.d/rcS-late home_fsck="0" # Call fsck.<fstype> -p for user's partitions (MyDocs, SD cards, ...) user_fsck="0" # Include overwrite file if [ -f /etc/default/mount-opts-overwrite ]; then . /etc/default/mount-opts-overwrite fi Nokia-N900:~# cat /etc/fstab # This file was generated by script /etc/event.d/rcS-late # !!! Do not edit this file. It will be overwritten in next device startup !!! # If you want static /etc/fstab add genfstab="0" to file /etc/default/mount-opts-overwrite rootfs / rootfs rw 0 0 ubi0:rootfs / ubifs rw,bulk_read,no_chk_data_crc 0 0 /dev/mmcblk0p2 /home ext3 noatime,nodiratime,errors=continue,commit=1,data=w riteback 0 2 /home/opt /opt none bind 0 0 /dev/mmcblk0p1 /home/user/MyDocs vfat noatime,nodiratime,noauto,nodev,exec,nosuid,utf8,u id=29999,shortname=mixed,dmask=000,fmask=0000,rodi r 0 2 /dev/mmcblk1p2 none swap sw 0 0 /dev/mmcblk1p3 none swap sw 0 0 /dev/mmcblk0p3 none swap sw 0 0 Nokia-N900:~# |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
Is the "Enable uSD Swaps" checkbox ticked in settings? All seems fine apart from "mount-ops-overwrite" This should be made "swap_sd="1" with the checkbox ticked. You'll need to reboot to set the swap spaces correctly in FlopSwap |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
I have it ticked. I have rebooted twice. No matter what I click I get operation failed. If I click show current it informs me that 1p2 and 0p3 is in use. Conky shows 1.53 GB of swap which means probably sd and standard as I have boths swaps on sd of 800mb size. I also get a warning: please check only one swap active. I didn't change anything before upgrading to 1.0 and 1.1.
Edit: I also did something like this - I took out the card and now it showed me the swap properly in flopswap. Then I put the card inside and after boot I still get 1.53 GB of swap and flopswap is not working. Edit 2: Now I think I know what is the problem. The program thinks that my two swaps are sd swap and mmc swap ans is switching between them. When I click swap to device I get no swap in conky. Freshing swap brings rotation begtween mmc swap and sd swap but previously it changed between my two sd swaps. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
I have been testing this on CSSU-Devel upstart/system-services and CSSU Stable (stock upstart) with no issues. I am going away next week so maybe a little bit before I can figure it out. Some things to try if you feel like testing in this order please:- *Uninstall flopswap with "apt-get remove --purge flopswap" Re-install and reboot to test. *Un-check and Check "Enable uSD Swaps" then cat /etc/default/mount-ops-overwrite if it's swap_sd="1" reboot and test. *Manually edit /etc/default/mount-ops-overwrite to swap_sd="1" then reboot to test. *Remove Flopswap as above upgrade Upstart packages to CSSU-Devel version then re-install. FlopSwap will show "operation failed" if more than one swap is active, for some reason the upstart script has not swapoff'ed your 0p3 partition at boot. An alternative temporary workaround is to "swapoff /dev/mmcblk0p3" and flopswap should work again. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
I removed it and will try to nstall. Here is the output of purging:
~ $ sudo apt-get remove --purge flopswap Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: flopswap* 0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded. After this operation, 176kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 25420 files and directories currently installed.) Removing flopswap ... Backup Upstart file Clean Upstart file Remove sudoers Update sudoers Purging configuration files for flopswap ... Backup Upstart file cp: cannot stat '/etc/event.d/relocateswap': No such file or directory Clean Upstart file rm: cannot remove '/etc/event.d/relocateswap': No such file or directory Remove sudoers rm: cannot remove '/etc/sudoers.d/flopswap.sudoers': No such file or directory Update sudoers ~ $ Edit: Purging resutled in conky seeing my 3 swaps as one, and after reboot 1,53 GB of swap. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
|
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Purging didn't help: reverting to 0.6 also is a no go. I will try to make the rest of your suggestions. I forgot to mentio that I'm on latest thumb.
Edit: swap_sd is set to 1 but I still have 1.53 GB of swap. I do not want to install things from devel which could brake my N900. What to do now? Edit 2 when I uncheck enable uSD swap flopswap works -well kinda. I can swap between one of the sd swap and normal swap. It only uses one swap. If I check it again I always get two swaps at one time and operation failed. So basicly that option checked brakes flopswap and with it unchecked I can not swap between two sd swaps. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
After each step in the ordered list above you needed to reboot to test if that was successful. You can re-install 0.0.6 from extras-testing and reboot, but I really would prefer to diagnose and fix any bugs than rollback to an old flawed version. FlopSwap needs to move away from hardcoded values, really. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
ok. Then I will stay with the latest version and will try to help.
I'm not so eager to tinker with experimental stuff like devel as after 3.5 years of tinkering, flashing, changing I'm very happy now with my setting. I always did a reboot as suggetsed by you so there is a huge chance that it is not my foult that something doesnt work :) |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
I did a test and ticked the uSD box then turned off the phone. It didn't want to boot. Taking off the cover helped and it booted again. The box is checked but swaping goes only between the mmc and first sd swap.
|
| All times are GMT. The time now is 07:25. |
vBulletin® Version 3.8.8