Please login or register.

Login with username, password and session length
Advanced search  


Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Mounting Swap Partition  (Read 2891 times)


  • Member
  • *
  • Posts: 17
Mounting Swap Partition
« on: August 10, 2009, 07:18:57 pm »

I installed Vector Linux, but forgot to make a swap partition.
My computer is working, but its slow. I've had my computer freeze up completely several times when I had more than one program opened.

I used my Gparted live CD to make a swap partition, but when I try to mount it using VASM I get an error: "Unable to mount dev/hda2, try formatting?"

No tried reformatting the partition but keep getting the same error.


  • Administrator
  • Vectorian
  • *****
  • Posts: 4459
Re: Mounting Swap Partition
« Reply #1 on: August 10, 2009, 07:43:21 pm »

Here is a good guide on how to manually enable swap, as well as how to edit your fstab for automatic operation.


  • Administrator
  • Vectorian
  • *****
  • Posts: 3497
Re: Mounting Swap Partition
« Reply #2 on: August 10, 2009, 08:15:38 pm »

You dont mount swap partitions you just nable them
Code: [Select]
mkswap /dev/hda2
swapon /dev/hda2

and to make sure it loads up at boot
Code: [Select]
echo "/dev/hda2 none swap sw 0 0" >> /etc/fstab
Do all that as root