You are not logged in.

#1 2015-07-15 01:02:56

kAldown
Member
Registered: 2015-07-15
Posts: 24

Share FreeBSD swap partition with Arch

Hello.
This is my first day walking with Arch. Very likely I'll use this distro for a long time, it's very beauty big_smile

But now I faced some problem with systemd. Could someone tell me in two words, how could I run something like this:

mkswap /dev/sdaX
swapon /dev/sdaX

Just in case, /dev/sdaX was created in FreeBSD 10.1 enviroment, as soon as FreeBSD doesn't care, Arch want to swapfile been exactly with certain headers.
So I should implement this two lines above just before system calls `swapon -a`.

Would be very appreciate for any suggestion.

http://unix.stackexchange.com/q/216049/91378

Last edited by kAldown (2015-07-15 01:08:32)

Offline

#2 2015-07-15 01:08:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Share FreeBSD swap partition with Arch

Not a Sysadmin issue, moving to Newbie Corner...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-07-15 01:10:21

kAldown
Member
Registered: 2015-07-15
Posts: 24

Re: Share FreeBSD swap partition with Arch

jasonwryan wrote:

Not a Sysadmin issue, moving to Newbie Corner...

So that's not the case for This forum is for technical issues revolving around the ongoing maintenance and fine tuning of Arch systems. ?

Offline

#4 2015-07-15 01:15:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Share FreeBSD swap partition with Arch

kAldown wrote:
jasonwryan wrote:

Not a Sysadmin issue, moving to Newbie Corner...

So that's not the case for This forum is for technical issues revolving around the ongoing maintenance and fine tuning of Arch systems. ?

Keep reading...

Sysadmin sticky *second sentence* wrote:

It is intended for challenging and interesting issues; solutions and posts here are expected to provide value to the more competent GNU/Linux users and established members of the community.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-07-15 02:18:39

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Share FreeBSD swap partition with Arch

kAldown wrote:

Share FreeBSD swap partition with Arch

THAT'S DISGUSTING! That's like sharing chewed bubble gum. wink

...I'm sorry, I don't know the answer to your question, but I thought I'd point out: A couple years ago I deleted my swap partition. I don't use swap any more, just my regular 4 GB of RAM. I don't miss having swap space at all. And if I do want swap space, I can follow the Arch Wiki and create a "swap file" without even needing to use a separate partition. smile

Offline

#6 2015-07-15 04:52:22

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Share FreeBSD swap partition with Arch

kAldown wrote:

Could someone tell me in two words, how could I run something like this...

You can't.

The Linux and FreeBSD kernels handle swap in fundamentally different ways, so you can't share a swap partition between the two. Seconding what drcouzelis said, if you have a desktop or laptop with 4G of RAM or more, swap is almost certainly unnecessary anyway.

Offline

Board footer

Powered by FluxBB