Compatible Support Forums: create swap after install

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

create swap after install

#1 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 04:58 AM

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
0

#2 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 24 January 2004 - 05:12 AM

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?
0

#3 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 05:21 AM

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. ;(
0

#4 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 24 January 2004 - 05:43 AM

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.
0

#5 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 05:49 AM

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.
0

#6 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 24 January 2004 - 06:16 AM

There you have it!
0

#7 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 06:23 AM

may i ask what i have??? Me= Major Newbie 2 Linux...
0

#8 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 06:29 AM

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..
0

#9 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 06:33 AM

uhh... i dont know how to "Give it a go."
0

#10 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 06:39 AM

As root:

fdisk /dev/hda [enter]

Then:

m [enter]

for options. That should get you started. Good Luck!
0

#11 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 06:44 AM

call me a nooB but how do i become root?
0

#12 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 24 January 2004 - 06:55 AM

At a console, type su then hit the enter key.

type in the root password -> enter key
0

#13 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 06:57 AM

o i c*feels stupid* i alread knew that.. but i didnt know that it was called root lol.
0

#14 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 07:06 AM

So how do i set that partition to be my swap space?
0

#15 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 08:05 AM

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?
0

#16 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 08:11 AM

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?
0

#17 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 08:23 AM

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..
0

#18 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 08:24 AM

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?
0

#19 User is offline   Lou-Saydus 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 24-January 04

Posted 24 January 2004 - 08:25 AM

ext3
0

#20 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 24 January 2004 - 08:27 AM

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!!
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users