The Following User Says Thank You to Xagoln For This Useful Post: | ||
![]() |
2013-12-30
, 02:01
|
Posts: 32 |
Thanked: 12 times |
Joined on Jan 2010
|
#192
|
/home/user # blkid | grep swap /dev/mmcblk1p2: TYPE="swap" LABEL="sdswap1" UUID="2c50fce7-3cf6-436d-bbcd-f8e8eb86a2c6" /dev/mmcblk1p3: TYPE="swap" LABEL="sdswap2" UUID="381b9bcb-84a7-40f1-b949-4ae7a0550d49" /dev/mmcblk0p3: TYPE="swap" UUID="a9c6b09e-4e9e-46e3-974d-462c9f03d3ac" /home/user # dpkg-query -W -f='${Version}\n' upstart 0.3.8-68+0cssu7 /home/user # cat /etc/default/mount-opts-overwrite swap_sd="1" /home/user # 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 swap partitions swap_opts="" # Options for different filesystems vfat_opts="utf8,uid=29999,shortname=mixed,dmask=000,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 -p for /home at boot time in /etc/event.d/rcS-late home_fsck="1" # Call fsck -p for user's partitions (MyDocs, SD cards, ...) user_fsck="1" # Include overwrite file if [ -f /etc/default/mount-opts-overwrite ]; then . /etc/default/mount-opts-overwrite fi /home/user # 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=writeback 0 2 /home/opt /opt none bind 0 0 /dev/mmcblk0p1 /home/user/MyDocs vfat noatime,nodiratime,noauto,nodev,exec,nosuid,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir 0 2 /dev/mmcblk1p2 none swap sw 0 0 /dev/mmcblk1p3 none swap sw 0 0 /dev/mmcblk0p3 none swap sw 0 0 /home/user #
![]() |
2013-12-30
, 12:05
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#193
|
I am experiencing the same result with fw190 although flopswap correctly sets swap_sd="1".
I used to have flopswap install with 1.2GB swaps. A few days ago I decided to flash my n900 because of reboots I couldn't solve. I made swaps of 1GB this time. That's the only difference I can think of. Can you please help me get flopswap running normally again?
Thank you it's seems I have found why FlopSwap is not working for you.
I have never seen anybody's internal swap have a UUID. This is not normal, also it appears the UUID is the same as one of your uSD partitions.
Due to this FlopSwap does not understand which is your internal swap. Internal swap shouldn't have a UUID. I am not quite sure how this has managed to happen on your system.
I have a special partition for Easy Debian on emmc - that was the whole starting point - easy debian on special aprtition and swap on sd so it all works as fast as possible.
Well I am not sure of the best way to solve that.
FlopSwap needs to know which is uSD and which is internal somehow.
This is the same way that system-services (rcS-late) works out internal and external swaps. IIRC you where having trouble with that?
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2013-12-30
, 21:11
|
Posts: 32 |
Thanked: 12 times |
Joined on Jan 2010
|
#194
|
/home/user # tune2fs /dev/mmcblk0p3 -U clear tune2fs 1.42.5 (29-Jul-2012) tune2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p3 Couldn't find valid filesystem superblock. /home/user #
![]() |
2013-12-31
, 09:18
|
Posts: 32 |
Thanked: 12 times |
Joined on Jan 2010
|
#195
|
The Following User Says Thank You to taxaza For This Useful Post: | ||
![]() |
2013-12-31
, 10:00
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#196
|
Maybe I am missing something since I am not a linux expert, so I would appreciate any help.
![]() |
2013-12-31
, 16:47
|
Posts: 32 |
Thanked: 12 times |
Joined on Jan 2010
|
#197
|
![]() |
2014-01-03
, 18:39
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#198
|
Thanks again for your help!
I tried the swapon/swapoff solution you proposed. Unfortunately mkswap is fixed now and always add UUID. The closer I got was to create an ext3 replacing the swap.
If I changed the label of internal swap to e.g. "swap" flopswap could also check for internal swap using this preagreed label.
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-01-03
, 20:49
|
Posts: 32 |
Thanked: 12 times |
Joined on Jan 2010
|
#199
|
I am trying to reproduce how the partition gets a UUID first but this could be an option.
blkid | grep swap | grep mmcblk0
![]() |
2014-01-03
, 23:20
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#200
|
If I understand correctly you want flopswap to locate the swap on the internal memory automatically. I am in no way an expert to give you advices but can't the swap be located by:
Thanks again for your efforts!Code:blkid | grep swap | grep mmcblk0
Perhaps it would be quite trivial to check that the SD swaps had UUIDs on startup?