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
Samsung - S Pen Creator Edition - White
$38.00
Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023
$149.99
Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8" Android Tablet - Black
$42.99
Samsung Chromebook XE350XBA-K05US 15.6" 1080p FHD Laptop Intel 4GB RAM 128GB SSD
$89.20
Samsung Chromebook 3 4GB 16GB SSD 11.6-Inch Laptop XE500C13-K02US HDMI WIFI
$39.59
1 pcs Sticker for SAMSUNG Label Aufkleber Badge Logo 30mm x 6mm Chrome color
$2.99
Samsung Galaxy Tab Active3 8.0 64GB (Unlocked) SM-T577U/DS Black
$124.99
Samsung Galaxy Tab S9+ 12.4-inch Slim EF-DX810 S9 FE+ BOOK COVER KEYBOARD
$44.99
OEM SAMSUNG Keyboard FOR Galaxy Tab S8+, S7 FE, S7+ Lite w/ Large Key SIZE
$46.99
SAMSUNG Galaxy Tab A9 Plus 5G Metro By T-Mobile Or Wifi Only
$149.95