Setting Up a Swap File
18 April 2006For some reason during the install, the installer didn’t find the swap file even though I had repartitioned my drives before I started the install and created a 512MB Linux swap file. I followed the instructions on this forum page to set up the swap file. Specifics that I did:
- Debian: fdisk /dev/hdb [this starts fdisk pointed at the correct hard drive and brings up the fdisk prompt, which looks like this - Command (m for help);]
- command (m for help): p [entered p to see partiton table and verify that Linux swap partition existed and was recognized]
- command (m for help): q [exit fdisk by entering q]
- Debian: mkswap /dev/hdb4 [Make the swap.  Determine the correct partition number by viewing the partion table)Â
- Edit /etc/fstab file to add a swap entry that looks like this: /dev/hdb4   none   swap   sw   0   0
- Debian: swapon /dev/hdb4 [turn the swap on with this command]
- Debian: top [check that swap is on looking for correct size of swap file on fifth line of Top Display]
- probably not a bad idea to reboot at this point
No comments yet