Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Unable to create swap file during boot from CD

  1. #11
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    12
    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!

  2. #12
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    12

    Some more thoughts...

    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?

  3. #13
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    12
    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.

  4. #14
    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!

  5. #15
    Junior Member registered user
    Join Date
    Sep 2006
    Posts
    12

    Some thoughts...

    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.

  6. #16
    Junior Member
    Join Date
    Jan 2007
    Posts
    1
    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.

    1. Select Cancel from the endlessly repeating swapfile dialogue and let Knoppix boot up with a simpler interface.
    2. Open a terminal (will probably open by default) and type the following, pressing enter after each line:
      Code:
      su
      cd /mnt/hda1
      ls
    3. At this point, if you see a bunch of filenames pop up, skip this step. If nothing happens, type:
      Code:
      mount /media/hda1
      cd /mnt/hda1
      ls
      Now those files should pop up, which you'll recognize as some stuff on your old crappy Windows partition.
    4. Next type
      Code:
      mkdosswapfile
      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.
    5. 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

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Unable to create swap file.
    By Ham13 in forum MS Windows & New to Linux
    Replies: 0
    Last Post: 09-05-2006, 01:09 AM
  2. Second boot after dos swap file made.
    By hitchup in forum Hardware & Booting
    Replies: 0
    Last Post: 09-04-2006, 09:50 PM
  3. set swap file on boot up
    By fr3dt3ch in forum Hardware & Booting
    Replies: 1
    Last Post: 06-05-2006, 11:30 PM
  4. Disable harddrive swap file on boot?
    By lgriske in forum Customising & Remastering
    Replies: 6
    Last Post: 06-17-2003, 06:31 AM
  5. Killing the swap file on boot
    By lockejr in forum Customising & Remastering
    Replies: 1
    Last Post: 05-12-2003, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$38.00



Samsung Galaxy Tab A9+ 11.0

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

Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8" Android Tablet - Black

$42.99



Samsung Chromebook XE350XBA-K05US 15.6

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 picture

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 picture

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 picture

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 picture

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 picture

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 picture

SAMSUNG Galaxy Tab A9 Plus 5G Metro By T-Mobile Or Wifi Only

$149.95