My problem is with the mkdosswapfile command. It does not appear to work even from root. How should the permissions be set on /mnt/hda1? Could it be that mkdosswapfile or dd can not write to a fat32 file system?
Well I followed Capricorny's advice and tried to create the swapfile manually. I was able to cd to /mnt/hda1 and run the command dd if=/dev/zero of=swapfile -bs=1M count =256. Note: there is 1 gigabyte of free space on the disk (hda1). The command returns 'No more space left on device 3526656 records' When I ls -l the file it has been created and is 3526656 blocks. The swap file does appear in the /proc/swap file. My understanding is that dd creates a DOS file and that it should be persistant after Knoppix is halted. The routine in Knoppix that should create the swap file also states that the file remains and can be removed using Windows. I can not locate the swapfile on the root of the C: (hda1) drive with Windows. The Knoppix FAQ states that the /etc/fstab should be edited to include the new swap file. Is this correct? Must it be edited each time the system is booted as I'm using a Live-CD?
If I ever get this swap file created... How do I load KDE? startx /etc/bin/kde causes multiple errors. By the way Fluxbox works but, its a mater of principle now. I want to get KDE running however slow.
Thanks fo the replies guys!
My problem is with the mkdosswapfile command. It does not appear to work even from root. How should the permissions be set on /mnt/hda1? Could it be that mkdosswapfile or dd can not write to a fat32 file system?
Looks like the solution was to mount HDA1. The boot up routine did not mount the disk. After mount /dev/hda1 /mnt/hda1 the file system on the HDD was accessable and the swap file could be created. The boot up routine should mount any dos partitions it finds. This would save a lot of effort and time on the users part to diagnose the problem. Hope this info will be of help to others with the same problem.
Seems this is my exact same problem "no partition available for swapfile"
Using this system:
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 1 Build 2600
OS Manufacturer Microsoft Corporation
System Name
System Manufacturer VIA Technologies, Inc.
System Model KM266A-8235
System Type X86-based PC
Processor x86 Family 6 Model 8 Stepping 1 AuthenticAMD ~1494 Mhz
BIOS Version/Date Phoenix Technologies, LTD 6.00 PG, 9/16/2004
SMBIOS Version 2.2
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\System32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer
User Name
Time Zone Taipei Standard Time
Total Physical Memory 128.00 MB
Available Physical Memory 9.64 MB
Total Virtual Memory 324.17 MB
Available Virtual Memory 61.70 MB
Page File Space 228.68 MB
Page File C:\pagefile.sys
What should I do? I posted this in another thread but this thread seems to be getting to where I want to go since it is exactly the same problem as with the thread-starter's.
How do I create a partition so that the "no partition available for swapfile" does not appear?
Thanks!
My problem was that the /dev/hda1 was not mounted and therefore the system could not see or write to it. Suggest you do the following:
Cd /mnt/hda1 (Your hard disk partition)
ls -l to display a list of files. You should be able to see all the files on your HDD. If you can see the files then the file system is mounted and this IS not your problem.
If you need instructions see the FAQ or the rest of the replies on this topic.
Sorry I can not be of more help this is new to me also and my unix is very rusty.
Hey, just wanted to say thanks for the help for a beginner. I was trying to recover some files from a really old IBM Thinkpad Windows 98 partition that was totally screwed up and ran into this problem. I couldn't figure out how to access the Windows files, or how to transfer them into Linux since I am a bit of a noob. The option to create a swapfile kept repeating when I pressed enter. Here was my step-by-step (combines tips from previous posts). Forgive me if this is really really dumbed down, but I want it to be do-able to absolute beginners like myself.
- Select Cancel from the endlessly repeating swapfile dialogue and let Knoppix boot up with a simpler interface.
- Open a terminal (will probably open by default) and type the following, pressing enter after each line:
Code:su cd /mnt/hda1 ls- At this point, if you see a bunch of filenames pop up, skip this step. If nothing happens, type:
Now those files should pop up, which you'll recognize as some stuff on your old crappy Windows partition.Code:mount /media/hda1 cd /mnt/hda1 ls- Next type
A dialogue should pop up. Select your hard drive, and then pick a file size for the swap. I set it at the maximum recommended size.Code:mkdosswapfile- Once that's finished, go into the menu structure (by left- or right- clicking on the desktop) and there should be an option in the menu to restart/switch the Knoppix desktop. Select fluxbox (or KDE or whatever).
Be warned that everything works R E A L L Y S L O W L Y in KDE. For me anyway. Also, read the rest of these posts because I Am Not An Expert; I'm just telling you what worked for me. Thanks for your help, guys!
loclarkey

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay
$107.99
QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working
$149.99
9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US
$49.50
Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed
$34.99
2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2
$119.99
Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller
$64.99
Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M
$1150.00
TerraMaster D5-300C 5-Bay USB-C Hard Drive Enclosure
$115.00
Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003
$639.69
Lacie 2big Quadra RAID 2 x 2 TB 4 TB Only 158 hours
$199.00