You are not logged in.

#1 2009-03-16 11:58:45

sailor
Member
Registered: 2009-03-14
Posts: 5

[Solved]Can I install arch without a swap partition ?

I only have one primary partition free to install arch, with 3 primary partition and 1 extend partition, I have no other choice except install without swap partition.

Is there any suggestion? I will try it until I get a U storage to write .img in.

Last edited by sailor (2009-03-17 00:47:31)

Offline

#2 2009-03-16 12:07:45

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [Solved]Can I install arch without a swap partition ?

It should just work. I normally do this, and then create one in a file afterwards. There is no performance penalty to having swap in a file.

Offline

#3 2009-03-16 12:13:46

sailor
Member
Registered: 2009-03-14
Posts: 5

Re: [Solved]Can I install arch without a swap partition ?

I have read some topics that said the default setup script won't allow you to skip the swap mounting  step.
then I read the <Using the quickinst Script to Install Arch Linux> in wiki. But I am not familar with this kind of installation.
So I am a little worried wether the 2009.2.img will allow me to skip this step.

Offline

#4 2009-03-16 12:23:01

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [Solved]Can I install arch without a swap partition ?

I've never used a swap partition or swap file at all while being an Arch user (got 3GB RAM).

Never had any ill-effects due to this.


flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#5 2009-03-16 12:32:33

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: [Solved]Can I install arch without a swap partition ?

Sure, it's perfectly possible to use any linux system without swap. including arch.


There are 2 ways to do disk partitioning in /arch/setup:
1) autoprepare. with this method, you pick a disk (a disk you want to use entirely). you will be asked some questions (including how big swap should be). this method will create the partitions with the sizes you mention (/boot, swap, / and /home) optionally you can add additional fs'es
2) manual. the installer can launch cfdisk for you if you need to alter partitions (if you want this), and after that you can define pretty much your stuff the way you like it (eg no swap) iirc. i'm not 100% sure though.


Frankly I don't understand why you say "I have no choice", if you don't have enough partitions, you can always create additional ones.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2009-03-16 12:33:35

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: [Solved]Can I install arch without a swap partition ?

Ever since I switched to flash SSDs a few years ago, I have not used any swap partitions or files.  Never have had any problems, installing or using.  I've always been able to skip this step.  The Archlinux installer makes very few assumptions and considers all crazy installs equally valid.  Don't know about the most recent installer, but I hope you still can.

Regarding running without swap:  OOMs are pretty rare, but I also have it set up to start beeping/walling/popups when ram hits 95%.  (OOM only ever happened when I wrote dumb code, but it also teaches you a lot.)

Offline

#7 2009-03-16 12:42:45

sailor
Member
Registered: 2009-03-14
Posts: 5

Re: [Solved]Can I install arch without a swap partition ?

Dieter@be wrote:

Frankly I don't understand why you say "I have no choice", if you don't have enough partitions, you can always create additional ones.

Beacuse only less than four primary partitions are allowed on a disk?(certainly you can use extend partition to add more logical partitions)
Am I wrong?  ~_~

Offline

#8 2009-03-16 12:50:21

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: [Solved]Can I install arch without a swap partition ?

sailor wrote:
Dieter@be wrote:

Frankly I don't understand why you say "I have no choice", if you don't have enough partitions, you can always create additional ones.

Beacuse only less than four primary partitions are allowed on a disk?(certainly you can use extend partition to add more logical partitions)
Am I wrong?  ~_~

You're entirely correct.  But that does not answer the question.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#9 2009-03-16 13:24:45

sailor
Member
Registered: 2009-03-14
Posts: 5

Re: [Solved]Can I install arch without a swap partition ?

I already have three primary partitions and one extend partition, so there is "no choice" to add a additional partition except resizing one ot the logical partition.

Offline

#10 2009-03-16 16:32:21

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]Can I install arch without a swap partition ?

sailor wrote:

I already have three primary partitions and one extend partition, so there is "no choice" to add a additional partition except resizing one ot the logical partition.

Depending on how important the data on one of those primary partitions is, you can actually use GParted, to copy over the data to the extended partition/external drive, unallocate it, then create another extended partition in the newly created space...and then go from there..

Admittedly, its a lot of work and hassle.

Last edited by Inxsible (2009-03-16 16:32:42)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#11 2009-03-16 20:55:08

bwh1969
Member
Registered: 2008-01-05
Posts: 151

Re: [Solved]Can I install arch without a swap partition ?

I am surprised that this was not suggested.  It won't be helpful at install time but post install, if you want a swap space, just as sort of a "parachute" should you need it you can make a swapfile using this post

http://www.cyberciti.biz/faq/linux-add- … ile-howto/

You can even add the entry of the file to fstab.

Offline

#12 2009-03-16 21:39:03

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [Solved]Can I install arch without a swap partition ?

?How did you get that question mark ?


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#13 2009-03-16 21:48:49

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved]Can I install arch without a swap partition ?

haxit wrote:

?How did you get that question mark ?

It's a CJK fullwidth question mark. You can get fullwidth text with kakasi in AUR and

echo testing?! | kakasi -i utf8 -o utf8 -aE
testing?!

edit: by the way, utf8 is only in kakasi-cvs

Last edited by Procyon (2009-03-16 21:50:36)

Offline

#14 2009-03-16 21:54:53

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [Solved]Can I install arch without a swap partition ?

Procyon wrote:
haxit wrote:

?How did you get that question mark ?

It's a CJK fullwidth question mark. You can get fullwidth text with kakasi in AUR and

echo testing?! | kakasi -i utf8 -o utf8 -aE
testing?!

edit: by the way, utf8 is only in kakasi-cvs

Sweet thanks! Its an eye catcher.


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#15 2009-03-17 00:46:37

sailor
Member
Registered: 2009-03-14
Posts: 5

Re: [Solved]Can I install arch without a swap partition ?

select the NONE when prompt the swap partition mount point, now the system works well

Thanks you arch-guys.

I wonder if there is a source does not limit the download speed? I have a 100 mbps network at my studio, and want it entirely used.  -_^

Offline

Board footer

Powered by FluxBB