fdisk complete + hd install; how to mount swap?


Forum: HD Install
Topic: fdisk complete + hd install; how to mount swap?
started by: tefflox

Posted by tefflox on July 07 2006,02:07
I managed to get through an fdisk tutorial and my dsl and grub are running fine, but my swap (/dev/hda1) is not mounted, shows 0 space.  The panel in the lower right says "hda mounted" but hda1 unmounted.  Clicking the "unmounted" button registers a popup window which only says "Error: or too many mounted file systems."  What should I do?  thx
Posted by kerry on July 07 2006,06:21
Are you running 3.0 with unionfs, if so add legacy to your boot line or grab a copy of 3.0.1. I had that problem with unionfs. Not sure if this is your problem since it sounds like you did a regular hd install.

You should not be able to see swap in the mount tool. try running> sudo mkswap /dev/hda1 < to mkake the swap again than> sudo swapon -a < to turn it on.

also i reccommend to everyone who just can't get the hang of fdisk or cfdisk to grab a copy of gparted live cd to work with partions. it makes it easy to set up and resize or change partions. very handy to have around. you can grab that here-> < http://gparted.sourceforge.net/livecd.php >

Posted by brianw on July 07 2006,11:53
use "sudo fdisk -l" to list the partition table.  If you are using hda1 as swap it should be type 82.
to make the swap useable you need to run:
sudo mkswap /dev/hda1
reboot and dsl should recognize it automatically (or just run "sudo swapon" to start using it right away, we are not using windows here so reboots are not required in most cases).  If you have torsmo starting up the swap should show something like "Swap Used: 0/128M 0%" (unless you use the swapon. it may not work with torsmo untill a reboot or exit X and startx or kill -HUP <torsmo pid>)
if no torsmo run the system stats from the menu (or stats.lua from a terminal) and check the mem tab.

Posted by tefflox on July 07 2006,14:46
I'm running version 2.4 with debian install.  The computer is a pentium 200mmx with 64/2160M memory.  The swap is /dev/hda1 and is 256M.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.