Jump to content


Photo

create swap after install


  • Please log in to reply
20 replies to this topic

#1 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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

#2 danleff

danleff

    Carpal Tunnel

  • Moderators
  • 2903 posts

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?

#3 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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

#4 danleff

danleff

    Carpal Tunnel

  • Moderators
  • 2903 posts

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.

#5 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

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.

#6 danleff

danleff

    Carpal Tunnel

  • Moderators
  • 2903 posts

Posted 24 January 2004 - 06:16 AM

There you have it!

#7 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

Posted 24 January 2004 - 06:23 AM

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

#8 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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

#9 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

Posted 24 January 2004 - 06:33 AM

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

#10 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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!

#11 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

Posted 24 January 2004 - 06:44 AM

call me a nooB but how do i become root?

#12 danleff

danleff

    Carpal Tunnel

  • Moderators
  • 2903 posts

Posted 24 January 2004 - 06:55 AM

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

type in the root password -> enter key

#13 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

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.

#14 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

Posted 24 January 2004 - 07:06 AM

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

#15 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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?

#16 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

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?

#17 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

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

#18 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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?

#19 Lou-Saydus

Lou-Saydus

    stranger

  • Members
  • 11 posts

Posted 24 January 2004 - 08:25 AM

ext3

#20 Dapper Dan

Dapper Dan

    Pooh-Bah

  • Moderators
  • 1703 posts

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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq