SWAP formatting is not working

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post 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 8924 times
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: SWAP formatting is not working

Post 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?

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post 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).
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post by hnl_dk »

You have maybe not removed the share before making the changes on the HDD?
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: SWAP formatting is not working

Post by ispyisail »

This makes sense

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

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: SWAP formatting is not working

Post 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.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: SWAP formatting is not working

Post 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 8916 times
Click unmount all USB disks
format5.png
format5.png (6.27 KiB) Viewed 8916 times
Format Drive
format6.png
format6.png (31.43 KiB) Viewed 8916 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 8916 times

ispyisail
Moderator
Posts: 5194
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: SWAP formatting is not working

Post 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?

Post Reply