Loading ...
Sorry, an error occurred while loading the content.
 

Re: using "swapon" on a file

Expand Messages
  • dustinemptyspace
    Ok, now it works. For some reasons mkswap created a swap-partition (version 0) with a wrong signature. Running mkswap -c it creates a correct (version 1)
    Message 1 of 2 , Feb 27, 2006
      Ok, now it works.

      For some reasons "mkswap" created a swap-partition (version 0) with a
      wrong signature. Running "mkswap -c" it creates a correct (version 1)
      swap partition.


      thanks

      --- In nslu2-linux@yahoogroups.com, "dustinemptyspace"
      <dustinemptyspace@...> wrote:
      >
      > Ciao,
      >
      >
      > I have a usb-stick as unslunging partition and a HDD formatted vfat.
      > Since I have only 500K of free memory I decided to activate the swapping
      > on a file (since I don't want to repartition the HDD).
      >
      > I created the swapfile on HDD (as suggested in the mailinglist)
      > dd if=/dev/zero of=/share/myHDD/2/swapfile bs=1M count=256
      > mkswap /share/myHDD/2/swapfile
      > but whenever I try to mount the swap partition with:
      > swapon /share/myHDD/2/swapfile
      > I get an error message
      > "swapon: swapon: Invalid argument"
      >
      >
      >
      > .... Does swapon (BusyBox v0.60.4) accepts filenames? or it requires
      > partition names, as parameters?
      >
      >
      >
      >
      > Please help,
      > Dustin.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.