Ga naar inhoud


Swapfile, funtion not implemented


Aanbevolen berichten

Geplaatst:

Kent iemand deze error, ik kan er niets over terugvinden:

 

Code:
  [b] ~ > swapon /hdd/swapfileswapon: /hdd/swapfile: Function not implemented [/b]  

 

Mijn hdd is een NFS mount van mijn linux server.


Geplaatst:

In een paar guides op het net stond er een uitleg over hoe het moest, maar ik kreeg het niet aan de praat.

 

copy van doom9:

 

To create a swap file, you can either use the swap plugin available in the MisterX image, or create one manually. To manually create a swapfile, telnet to the Dreambox and type

 

dd if=/dev/zero of=/hdd/swap_file bs=1024 count=262144

mkswap /hdd/swap_file

This will create a swap file of 256 MB and activate it. The creation of the swapfile can take a while. After its creation, you can activate the swapfile by typing

 

swapon /hdd/swap_file

To enable the swapfile at each boot, it is best to add the last line to the init file in /var/etc so it will be executed each time the Dreambox boots. Once again, make sure you're using an UNIX aware editor like UltraEdit when editing the init file.

 

In case you have no harddisk in the Dreambox, you need to set up NFS as well as configure the network before doing so. The following lines will take care of that:

 

ifconfig eth0 192.168.0.24 netmask 255.255.255.0 mtu 1400 up

sleep 2

mount -t nfs -o wsize=4096,rsize=4096,nolock 192.168.0.1:/dreambox /hdd

sleep 2

Then the swap file has to be enabled using the swapon command as previously described.

 

The process is the same for other images, so it's now time for you to start experimenting and install other images.

Geplaatst:

Thanks, ik heb het werkend <img src="/forums/images/graemlins/laugh.gif" alt="" />

Geplaatst:

Ik mis iets hier, heb gisteren via blue panel gewoon een swap file van 256MB kunnen creeren en activeren op mijn DB.

 

Alleen ik weet niet zeker of deze mijn Gemini kan dooen vertragen want die staat op de HD schijf ook. Zodoende heb ik de swap weggegooid.

 

Ben geen echte Linuxer, maar ik neem het aan dat de swap op hetzelde manier functioneren als in windows. Dus heeft nut als er veel plugins (applicaties) draait.?? toch

VU+ UNO 4K SE

VU+ UNO 4K
VU+ SOLO2
4 ALPS QUAD LNBs 0.5db

Geplaatst:

Swap op Linux werkt niet zoals op Windows, Linux zal eerst alle RAM gebruiken voor dat ie naar de swap gaat, Windows zal zelf bepalen welke processes al naar de swap mogen voor dat de Ram vol is.

 

Swap is altijd trager dan Ram, logish, en inderdaad het is enkel handig als je veel plugins tegelijk draait.

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...