Page 2 of 3

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:37 pm
by hnl_dk
SWAP enabled after saving the settings for the shared disk.
SWAP enabled after saving the settings for the shared disk.
gargoyle_format3.png (13.32 KiB) Viewed 8923 times

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:37 pm
by ispyisail
I discovered that the SWAP area is not setup (mkswap), when the swap partition is setup (image one, in gargoyle called "format"). The SWAP area is first setup (mkswap) when you save the "shared disk" (look at image two).
Are you confirming that there is a problem or not?

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:41 pm
by hnl_dk
ispyisail wrote:
I discovered that the SWAP area is not setup (mkswap), when the swap partition is setup (image one, in gargoyle called "format"). The SWAP area is first setup (mkswap) when you save the "shared disk" (look at image two).
Are you confirming that there is a problem or not?
There is no problem on my maschine. Except that you need to save the shared disk before mkdisk is "run". But that is more a need of documentation or that it should simply be changed to that mkswap will be run in the same process when the partitions are setup (called format here).

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:45 pm
by hnl_dk
ispyisail wrote:...
see no change to the drive
format3.png
...
The partitioning process has not worked at all for you, as you can see, is the partition still fat32 and not ext4 that gargoyle creates.

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:51 pm
by hnl_dk
hnl_dk wrote:
ispyisail wrote:...
see no change to the drive
format3.png
...
The partitioning process has not worked at all for you, as you can see, is the partition still fat32 and not ext4 that gargoyle creates.
And it looks like you have several partitions on your HDD (see sda5).
If I where you, could I enter the routers through ssh and remove all partitions on the HDD (using fdisk) and then create a single partition, before you try again.

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:54 pm
by hnl_dk
You have maybe not removed the share before making the changes on the HDD?

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 7:56 pm
by ispyisail
This makes sense

But from the point of a novice user with no SSH access we need ................

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 9:12 pm
by hnl_dk
ispyisail wrote:This makes sense

But from the point of a novice user with no SSH access we need ................
Yes, I see the problem.
Did you remove the shared disk before you did repartitioning the HDD?
If you already have a shared disk setup, do I not think that it is enough "just" to unmount what is on the disk. You will properly need to remove the share first.

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 9:46 pm
by ispyisail
ok

Removed USB drive and reboot the router

Insert USD drive

Code: Select all

usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 7823296 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda2 < sda5 >
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
Nothing mounted
format4.png
format4.png (27.42 KiB) Viewed 8915 times
Click unmount all USB disks
format5.png
format5.png (6.27 KiB) Viewed 8915 times
Format Drive
format6.png
format6.png (31.43 KiB) Viewed 8915 times
Drive formatted

Code: Select all

sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda2 < sda5 >
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda2 < sda5 >
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda2 < sda5 >
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda2 < sda5 >
now reboot the router

and nothing
format7.png
format7.png (26.88 KiB) Viewed 8915 times

Re: SWAP formatting is not working

Posted: Sat Mar 03, 2012 9:47 pm
by ispyisail
I suspect that manual deleting the drive format I could fix the problem but I suspect others will have this problem in the future?