-
Junior Member
registered user
swap on a regular file
I'm trying to set up swap on a regular file.
I created the file using dd, initialised it with mkswap, and tried to mount it with swapon.
On the 3.8 knoppix, swapon reports simply "invalid argument" and fails.
On the 3.7 knoppix, swapon says the swapfile doesn't have a signature. I checked with od, and sure enough, there is no signature.
Any advice?
-
Junior Member
registered user
Where are you trying to make the file?
On a NTFS partition perhaps?
Or maybe on the ramdisk?
I did a quick test on this (Debian sid) machine and it worked OK:
Code:
wander:/tmp# dd if=/dev/zero of=./swapfile bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 0.437670 seconds (239581359 bytes/sec)
wander:/tmp# mkswap ./swapfile
Setting up swapspace version 1, size = 104853 kB
no label, UUID=9dccb944-ed87-465f-bbbe-a37df2517ca8
wander:/tmp# swapon ./swapfile
wander:/tmp# free -m
total used free shared buffers cached
Mem: 1011 966 45 0 72 705
-/+ buffers/cache: 188 823
Swap: 100 0 100
wander:/tmp#
Perhaps this is of any use?
Similar Threads
-
By fr3dt3ch in forum Hardware & Booting
Replies: 1
Last Post: 06-05-2006, 11:30 PM
-
By aad in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 01-25-2006, 07:55 PM
-
By herbyweed in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 02-07-2005, 06:31 PM
-
By lothario in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 08-17-2004, 08:46 AM
-
By fjon13 in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 04-29-2003, 06:13 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage Apple 2e A2S2064 Desktop 1.023mhz 128k Ram No Storage READ DESCRIPTION picture](/store/img/nI0AAOSwbK5mhDcy/s-l225//Vintage-Apple-2e-A2S2064-Desktop-1-023mhz-128k-Ram.jpg)
Vintage Apple 2e A2S2064 Desktop 1.023mhz 128k Ram No Storage READ DESCRIPTION
$399.99
![1984 APPLE MACINTOSH 128K 40th Anniversary MATCHING # BOX Set 1st Mac M0001 NICE picture](/store/img/ccYAAOSwzC1mkete/s-l225//1984-APPLE-MACINTOSH-128K-40th-Anniversary-MATCHIN.jpg)
1984 APPLE MACINTOSH 128K 40th Anniversary MATCHING # BOX Set 1st Mac M0001 NICE
$7999.99
![Macintosh Platinum Mouse - Apple 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW picture](/store/img/~R8AAOSw5opkqjoc/s-l225//Macintosh-Platinum-Mouse-Apple-128K-512K-512Ke-Mac.jpg)
Macintosh Platinum Mouse - Apple 128K 512K 512Ke Mac Plus Lisa IIe M0100 - NEW
$44.99
![Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk picture](/store/img/GVIAAOSwrPpl~3Sd/s-l225//Vintage-Apple-Macintosh-Classic-128K-Application-O.jpg)
Vintage Apple Macintosh Classic 128K Application On New 400K Double Density Disk
$26.99
![Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping picture](/store/img/8mwAAOSw2I1mIvLI/s-l225//Apple-Macintosh-128k-512k-Plus-Analog-Board-Capaci.jpg)
Apple Macintosh 128k 512k Plus Analog Board Capacitor Re-Cap Kit - US Shipping
$23.95
![1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE picture](/store/img/9FYAAOSwen9mCtep/s-l225//1984-APPLE-MACINTOSH-Model-M0001-1st-MAC-128K-40th.jpg)
1984 APPLE MACINTOSH Model M0001 1st MAC 128K 40th Anniversary PICASSO KIT NICE
$4999.99
![Macintosh 128k, 512k, Plus Keyboard Cable (beige replacement cable) U.S. Seller picture](/store/img/HYEAAOSwXs1lrmdF/s-l225//Macintosh-128k-512k-Plus-Keyboard-Cable-beige-repl.jpg)
Macintosh 128k, 512k, Plus Keyboard Cable (beige replacement cable) U.S. Seller
$9.50
![Apple Macintosh ROM Set Replacement Chips for 128K, 512K, 512Ke, Mac Plus EPROM picture](/store/img/thkAAOSwBnlj1deS/s-l225//Apple-Macintosh-ROM-Set-Replacement-Chips-for-128K.jpg)
Apple Macintosh ROM Set Replacement Chips for 128K, 512K, 512Ke, Mac Plus EPROM
$23.99
![RARE Vintage Apple MacBag by Linebacker for Macintosh 128k 512k picture](/store/img/A7gAAOSw~vxmXP~C/s-l225//RARE-Vintage-Apple-MacBag-by-Linebacker-for-Macint.jpg)
RARE Vintage Apple MacBag by Linebacker for Macintosh 128k 512k
$150.00
![Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984 picture](/store/img/PKUAAOSwQ2Vk0TIr/s-l225//Apple-Macintosh-128K-M0001-Computer-with-Mouse-no-.jpg)
Apple Macintosh 128K M0001 Computer with Mouse, no keyboard. Case included. 1984
$511.00