create swap after install

This is a discussion about create swap after install in the Everything Linux category; A friend of mine just installed Morphix-Gnome on his pc and he didn't create a swap. This wouldn't be a problem since he's running 512 ram, but there's a program he needs that will not install without a swap.

Everything Linux 1800 This topic was started by , . Last reply by ,


data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
A friend of mine just installed Morphix-Gnome on his pc and he didn't create a swap. This wouldn't be a problem since he's running 512 ram, but there's a program he needs that will not install without a swap. Morphix comes with fdisk. Can he now create a swap in any way, or is it pretty much going to have to be a nuke and pave job to get it? Thanks

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jan 24
Created
Jan 24
Last Response
0
Likes
5 minutes
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
One thins that I can think of right off.
 
Get Knoppix and use qtparted. Resize the last partition on the drive (from the end), create a swap partition at the end of the drive and add it to the fstab.
 
Is it an ext3 partiton at the end of the drive?

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
He's dual booting. If he's got a copy of Partition Magic, could he then resize the last partition with a fairly minimal chance of data loss? I've never resized a Linux partition after install, so I'm in the dark here. ;(

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
I have. If he has PartitionMagic, this would be the preferred utility. I note using the end of the drive, as it is easier to figure out what the swap space partition designation is.
 
Using PartitonMagic assures that partitionmagic is able to read the partiitons later on if needed. You may recall, I did have trouble with qtparted corrupting the partitions, at least seemingly so, resulting int PartitionMagicbeing unable to read the drive.
 
So, if he knows that the last ext3 partition is hda6, for example, then the swap space partition hopefully will be hda7. Adding it elsewhere sometimes changes the partition designations
 
Whatever utilities that he has to view the partitons on the system could be used to id the swap space.
 
I use Linux fdisk very little, but I would guess that doing and fdisk /dev/hda (if this is the drive), then "p" to show the partitons will verify which is the swap. Then add the usual to his fstab.
 
Can't remember the correct utilities/commands right off.

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
im so glad im not a total idiot! Oh ya almost forgot Im the "Friend" lol. Anyway i was saying
when i installed morphix i made an extra 200mb partition at the end of my disk "Just in case" would i be able to use that for my swap space? the partition is still totaly empty.

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
may i ask what i have??? Me= Major Newbie 2 Linux...

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
Lou, you should then be able to use Partition Magic to create a swap partition at the end of your drive in that space. Do you have a copy of PM? You didn't seem to have any problem using fdisk though. If you are comfortable using that, then give it a go..

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
uhh... i dont know how to "Give it a go."

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
As root:
 
fdisk /dev/hda [enter]
 
Then:
 
m [enter]
 
for options. That should get you started. Good Luck!

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
call me a nooB but how do i become root?

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
At a console, type su then hit the enter key.
 
type in the root password -> enter key

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
o i c*feels stupid* i alread knew that.. but i didnt know that it was called root lol.

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
So how do i set that partition to be my swap space?

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
I'm afraid I can't help you there. You did so well using fdisk to install Morphix, I was willing to bet you could just figure it out!
 
If you decide it's too daunting to use fdisk to make that last partition a swap, let me ask..
 
If you are dual booting, is there a complete install of Trespasser on your Windows?
 
If so, it may be easier to just cross over into your Windows partition and run it, or copy it over to Linux, and then run with Winex3. Which version of Windows are you using?

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
naw im just lazy so i dont really like looking but somtimes it can be fun lol. So how do i set my
swap space?

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
Well since i know my way around linux a little
 
i think i should reinstall morphix and fix what i need to....
 
what do u think Dan..

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
fdisk should give you a way to create that blank space as a swap. When you installed Morphix to cd, did you use ext2, ext3 or rieserFS as a file system?

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
OP
Quote:Well since i know my way around linux a little

i think i should reinstall morphix and fix what i need to....

what do u think Dan..

Since you've not yet really configured it, yes, I think a complete nuke and pave would be the path of least resistance at this point. Back up your Windows though!! Be sure tro create a / partition, a swap (1 gig if you have the space) and a /home partition. Be sure to use ext3. Don't use ext2!!

data/avatar/default/avatar15.webp

11 Posts
Location -
Joined 2004-01-24
lol i have two seprerate drives ill just "nuke" one of them lol.
 
so ill see you in about 1-2hrs