I made a trial on my 5big2. I used an usb stick of 1 GB and was able to make a swap of 1GB
I loaded the standalone kernel from fvdw-sl console 5.5.
The usb device was recognized as /dev/sej
To use it as swap I deleted all partitions on it and made a one new partition
I did this
- Code: Select all
fdisk /dev/sej
To delete existing partitions use within fdisk the command "d" (without quites)
Delete all partitions if there are more then 1 (you can list the partition table with command "p"
When it is empty create a primary partition using commands "n" and choose p accept the default start and end cylinder the partition will then get total size of your usb stick.
Before writing the new table change the partition id to swap using the command "t" and as hex value 82.
Write the new table to the stick using the command "w"
If you don't do this last step then the new table is not written to the stick.
Check if everything went well
fdisk -l should list /dev/sej like this
- Code: Select all
Disk /dev/sej: 1040 MB, 1040187392 bytes
32 heads, 62 sectors/track, 1024 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Device Boot Start End Blocks Id System
/dev/sej1 1 1024 1015777 82 Linux swap
initialize the swap
- Code: Select all
mkswap /dev/sej1
Switch on the swap
- Code: Select all
swapon /dev/sej1
check if swap is available
- Code: Select all
oot@fvdw-sta-kirkwood:/ # free
total used free shared buffers
Mem: 511936 9340 502596 0 4
-/+ buffers: 9336 502600
Swap: 1015804 0 1015804
root@fvdw-sta-kirkwood:/ #
or
- Code: Select all
root@fvdw-sta-kirkwood:/ # cat /proc/meminfo
MemTotal: 511936 kB
MemFree: 502604 kB
MemAvailable: 499120 kB
Buffers: 4 kB
Cached: 3616 kB
SwapCached: 0 kB
Active: 1504 kB
Inactive: 2320 kB
Active(anon): 1504 kB
Inactive(anon): 2316 kB
Active(file): 0 kB
Inactive(file): 4 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 1015804 kB
SwapFree: 1015804 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 228 kB
Mapped: 648 kB
Shmem: 3616 kB
Slab: 2728 kB
SReclaimable: 156 kB
SUnreclaim: 2572 kB
KernelStack: 408 kB
PageTables: 52 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1271772 kB
Committed_AS: 4780 kB
VmallocTotal: 499712 kB
VmallocUsed: 5588 kB
VmallocChunk: 493408 kB
root@fvdw-sta-kirkwood:/ #
Hopefully now the xfs_repair command will be able to run :whistle
edit---from what I read on the Internet on memory shortage with xfs_repair it seems our swap trick should solve this problem. of course you can use a bigger usb stick as well if 1 GB is not sufficient.
I will also look if I can compile a newer version of xfs-repair there seesm to be some memory usage improvements
--edit-2, attached the newest version of xfs_repair 3.2.3
It also needs the mini glibc stuff
---edit---
With the last version 6.0, no need to upload xfs_repair manually. Use a new option with fvdw-programs menu :
* run on the telnet window the command: fvdw-sl-programs
(then a menu will appear)
* select "Upload and extract glibc mini and tools"
Jocko
You do not have the required permissions to view the files attached to this post.