LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-03-2006, 02:01 PM   #1
Regulus
Member
 
Registered: Dec 2004
Posts: 41

Rep: Reputation: 15
Sharing swap between FC6 and Ubuntu


Hi,

On my laptop, I am trying to configure a dualboot of Fedora Core 6 and Ubuntu 6.10, and I would like to share the swap partition between the two distros. My 80GB disk is partitioned as follows:

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1217     9775521   83  Linux
/dev/hda2            1218        2191     7823655   83  Linux
/dev/hda3            2192        2446     2048287+  82  Linux swap / Solaris
/dev/hda4            2447        9729    58500697+   5  Extended
/dev/hda5            2447        9729    58500666   83  Linux
Where hda2 contains Ubuntu and hda1 contains FC6 (with /home on hda5). I first installed Ubuntu, which also formatted hda3. However, this partition was reformatted when installing FC6, and after that Ubuntu gives the following error upon booting:

Code:
fsck.ext3
Unable to resolve UUID=[some hexadecimal number]
The reformat by FC6 of hda3 removed the UUID number, hence the problem above. However, adapting /etc/fstab, by mounting /dev/hda3 instead of the UUID-string, does not help.

Any thoughts on what may be the problem and how it could be solved?

Many thanks in advance,
Regulus
 
Old 11-03-2006, 02:31 PM   #2
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
Check for the entries in the /etc/mtab file also. They may be a mismatch.
 
Old 11-03-2006, 02:35 PM   #3
Regulus
Member
 
Registered: Dec 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Redeye2
Check for the entries in the /etc/mtab file also. They may be a mismatch.
Yes, good point. Unfortunately, /etc/mtab does not contain a reference to the swap partition.

I get the impression that the reference to the UUID number must be in some other file.

Regards,
Regulus
 
Old 11-04-2006, 05:50 AM   #4
Regulus
Member
 
Registered: Dec 2004
Posts: 41

Original Poster
Rep: Reputation: 15
The problem has been solved.

I realized that after installing FC6 as the 2nd distro, I allowed the installer to reformat the swap disk, which I believe is the cause of the problems. I reinstalled Ubuntu on hda2 and did not allow the installer to reformat the swap disk and let Ubuntu use it as FC6 configured it. This worked flawlessly.

So, the bottom point is that when sharing swaps between distros, you should not allow installers to reformat the swap disk after it has been setup by the first distro you installed.

Regards, Regulus
 
Old 11-04-2006, 07:08 AM   #5
DavidTangye
LQ Newbie
 
Registered: Jun 2006
Location: Gold Coast, Queensland, Australia
Distribution: Ubuntu, Xubuntu, PC LinuxOS, Puppy, Knoppix
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by Regulus
The problem has been solved.So, the bottom point is that when sharing swaps between distros, you should not allow installers to reformat the swap disk after it has been setup by the first distro you installed.
I am pleased that you got the multi-boots cooperating. I think that your general rule might not be right though. It could be an Ubuntu issue. It would have been interesting to know if you had have let Ubuntu reformat the swap partition the second time through, whether FC6 would be happy with that. It might have been.

Lately I was sharing a swap partition between Puppy 2.10, Ubuntu 6.06, and PCLinusOS 0.93. I cannot remember what I first used to format it, maybe Knoppix or Puppy, and was always hopeful that it did not matter. Maybe I was just lucky :-).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6 beta3 upgrade to Final FC6 thyraios Fedora 1 09-18-2006 07:55 PM
FC5 / Ubuntu home directory sharing without sharing session information cdhgee Fedora 1 07-26-2006 05:47 PM
Sharing swap partitions Jongi SUSE / openSUSE 7 10-12-2005 08:36 AM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
Swap Sharing? Synesthesia Linux - General 1 05-06-2005 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration