You are not logged in.

#1 2013-07-04 15:08:03

partho222
Member
From: Dhaka
Registered: 2013-06-13
Posts: 6

[SOLVED] problem with sharing swap

i am facing some uncommon problem ... while i was using arch as single boot , i don't have such problem ...

after installing debian x64 i share my swap with arch but while i boot in Arch i found my swap partition is not mounted on mount point [SWAP] so i mount swap manually .
after shutting down Arch , I boot into debian & it was fine .

but again when i boot in arch i found swap is not mounted

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0  80.1G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda3   8:3    0  29.3G  0 part 
├─sda5   8:5    0     4G  0 part    (this is my swap partition but not mounted)
└─sda6   8:6    0 352.4G  0 part /home

please help

Last edited by partho222 (2013-07-04 17:37:08)


Arch i686 , Debian x64 , KDE , XFCE

Offline

#2 2013-07-04 15:41:52

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] problem with sharing swap

Welcome to Arch.

Debian changes the UUID for swap when it installs, and if you are using UUIDs in your Arch fstab, swap will not be mounted correctly (in Arch) after the Debian install. You need to change your Arch fstab to use the new UUID (or /dev/sda5) for swap.

Sharing a swap partition between distros works perfectly well, if fstab is correct.

Last edited by 2ManyDogs (2013-07-04 15:45:11)

Offline

#3 2013-07-04 16:24:41

partho222
Member
From: Dhaka
Registered: 2013-06-13
Posts: 6

Re: [SOLVED] problem with sharing swap

Thanks a lot @2ManyDogs    big_smile
just edited /etc/fstab

but i'm confused why it is changed ?


Arch i686 , Debian x64 , KDE , XFCE

Offline

#4 2013-07-04 16:37:58

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] problem with sharing swap

Because the swap partition was reformatted. If you use GPT, you can use PARTUUID (which does not change on filesystem changes) instead of UUID to avoid such problems in the future.


This silver ladybug at line 28...

Offline

#5 2013-07-04 16:42:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] problem with sharing swap

partho222 wrote:

<snip>

NAME   MAJ:MIN RM   SIZE      RO TYPE   MOUNTPOINT
sda         8:0        0    465.8G   0   disk
├─sda1   8:1        0    80.1G     0   part       /
├─sda2   8:2        0     1K          0  part
├─sda3   8:3        0    29.3G     0  part
├─sda5   8:5        0     4G         0  part     (this is my swap partition but not mounted)
└─sda6   8:6        0   352.4G    0  part      /home

Just FYI, for this kind of stuff (that is, commands, output from commands, or log/journal data), you should use [ code ] tags.  To see how this is done, you can click on the quote button on the bottom of my post here and see how I created this box below.  Otherwise, you can see all the BBCode options by following the "BBCode" link on the bottom of the page.

I am a code block... I am awesome.

Offline

#6 2013-07-04 16:53:10

partho222
Member
From: Dhaka
Registered: 2013-06-13
Posts: 6

Re: [SOLVED] problem with sharing swap

thanks a lot all of you smile


Arch i686 , Debian x64 , KDE , XFCE

Offline

#7 2013-07-04 17:24:09

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] problem with sharing swap

You're welcome. If you are happy with the solution, please mark your thread [SOLVED] (edit the title of your first post).

Last edited by 2ManyDogs (2013-07-04 17:25:01)

Offline

Board footer

Powered by FluxBB