Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-30-2006, 09:42 AM   #1
LQ Newbie
Registered: Feb 2006
Distribution: Fedora Core 6
Posts: 16

Rep: Reputation: 0
problem creating swap on lvm2

I accidentaly deleted the swap (Logical Volume) and I can't create it back. I cannot set it's filesystem properties to swap (there's only) ext3, ext2 and GFS (local). I'm using system-config-lvm (I don't know how to work with other programs)
Old 03-31-2006, 03:56 AM   #2
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
you will have to use fdisk to create the swap partition if you did delete the partition.

fdisk is only usable as root, so you will have to su to be able to use it.
enter password for root access
man fdisk
this will give you the full usage tools for fdisk, how to see what partitions exist etc.
if no swap partition exists then you will have to use fdisk to create it.

parted is another tool to create partitions, and may be the distro default tool.
but it is partitioning tools not volume management tools to use for this purpose.
Old 03-31-2006, 09:20 AM   #3
LQ Newbie
Registered: Feb 2006
Distribution: Fedora Core 6
Posts: 16

Original Poster
Rep: Reputation: 0
tnx for your suggestion but the problem is that I already have 4 primary partitions and I cannot create one more. so I must create it in that logical volume group. any other suggestions would be helpful


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a swap partition on an old pc, WITHOUT using linux... TheMusicGuy Linux - General 17 08-09-2004 12:43 AM
problem creating swap partition during installation kristof Red Hat 11 07-03-2004 01:25 PM
creating swap lynos Linux - General 6 03-27-2004 07:07 AM
Creating a swap partition thejackal13 Linux - Newbie 6 10-30-2003 07:03 PM
Creating a swap partition dsuniln Linux - Newbie 9 06-30-2003 12:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration