Page 1 of 3

Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 7:08 pm
by ispyisail
Bug Fix's

and

"automatically detect and use swap partitions on USB disks"
I'm implementing this now -- in the next version swap partitions on USB drives will be mounted automatically, and if that provides enough memory Tor will be enabled.

Also, it would be wrong to say that Tor "works" now on routers with < 64MB of memory, even though it is enabled in 1.5.1. That's the problem -- if Tor is enabled without enough memory the router crashes. The check is only to keep people from shooting themselves in the foot.
USE AT YOUR OWN RISK

Revision 968471be 27 Dec 2011.7z
http://goo.gl/jeEiW

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 7:18 pm
by ispyisail
"automatically detect and use swap partitions on USB disks"

I can see no indication that this is working

TP-Link WR1043nd
Built 20111226-2151 git@968471b
4 Gig Flash Drive

Code: Select all

usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
scsi 1:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 2
sd 1:0:0:0: [sdb] 7823296 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 1:0:0:0: [sdb] Assuming drive cache: write through
sd 1:0:0:0: [sdb] Attached SCSI removable disk
Image

Image

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 7:22 pm
by hnl_dk
ispyisail wrote:"automatically detect and use swap partitions on USB disks"

I can see no indication that this is working
...
But have you created a SWAP partition on your HDD?

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 7:34 pm
by ispyisail
hnl_dk wrote:
ispyisail wrote:"automatically detect and use swap partitions on USB disks"

I can see no indication that this is working
...
But have you created a SWAP partition on your HDD?
are no

how does one go about that?

There was data on the stick, I'm in the process of removing the data and then I was going to format fat32.

But now in going to google SWAP

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 7:46 pm
by hnl_dk
ispyisail wrote:
hnl_dk wrote:
ispyisail wrote:"automatically detect and use swap partitions on USB disks"

I can see no indication that this is working
...
But have you created a SWAP partition on your HDD?
are no

how does one go about that?

There was data on the stick, I'm in the process of removing the data and then I was going to format fat32.

But now in going to google SWAP
Check this: http://www.tldp.org/HOWTO/Partition/fdi ... oning.html
You will need to use fdisk to repartition your HDD, when you have made a backup of the data that you need.
I have not yet used this on Gargoyle, but I can see that the included fdisk can be used.

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 8:29 pm
by ispyisail
now were cooking

Image

I used Acronis Disk director (easy)

I now need to write something on the wiki

A method from a windows machine using open source, any suggestions?

Re: Revision 968471be 27 Dec 2011.7z

Posted: Mon Dec 26, 2011 8:35 pm
by hnl_dk
ispyisail wrote:now were cooking

Image

I used Acronis Disk director (easy)

I now need to write something on the wiki

A method from a windows machine using open source, any suggestions?
You could try GParted: http://gparted.sourceforge.net/

Re: Revision 968471be 27 Dec 2011.7z

Posted: Tue Dec 27, 2011 12:08 am
by ispyisail
Looks like 4 gig SWAP is a little excessive

Image

Will reduce to 128MB

Re: Revision 968471be 27 Dec 2011.7z

Posted: Tue Dec 27, 2011 12:14 am
by ispyisail
Just for fun I decided to pull the usb swap drive out while the router was running

Code: Select all

usb 1-1: USB disconnect, address 2
Read-error on swap-device (8:0:167)
Read-error on swap-device (8:0:175)
Read-error on swap-device (8:0:183)
Read-error on swap-device (8:0:191)
Read-error on swap-device (8:0:408)
Read-error on swap-device (8:0:416)
Read-error on swap-device (8:0:432)
Read-error on swap-device (8:0:440)
Read-error on swap-device (8:0:448)
Read-error on swap-device (8:0:1864)
Read-error on swap-device (8:0:592)
Read-error on swap-device (8:0:600)
Read-error on swap-device (8:0:608)
Read-error on swap-device (8:0:616)
Read-error on swap-device (8:0:624)
Read-error on swap-device (8:0:632)
Read-error on swap-device (8:0:1568)
Read-error on swap-device (8:0:1576)
Read-error on swap-device (8:0:1584)
Read-error on swap-device (8:0:1592)
Read-error on swap-device (8:0:1600)
Router kept running but the GUI still says

Image

Which I would suggest is impossible?

Re: Revision 968471be 27 Dec 2011.7z

Posted: Tue Dec 27, 2011 12:25 am
by ispyisail
I've now split my USB thumb dive up

128 SWAP
3.x GIG fat32

unfortunately gargoyle no longer recognises the fat 32 partition

Image

Thoughts?