LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2008, 02:59 PM   #1
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Rep: Reputation: 15
Unhappy swap deactivated in some distros in amultiboot machine after installing Ubuntu 8-10


Hello,

I have a problem in my Linux only multi-boot machine. After installing both Ubuntu 8-10 i386 and amd64, which have not seen my swap partition at all, caused swap to disappear in some other installed distros in the same system as well: Sidux amd64, Mandriva 2009 i386 and same amd64.

Now I have found out from this Forum site and was able to activate swap again, in Sidux where I tried, using: "# /sbin/swapon -v /dev/sda1" ,(sda1 being my swap partition).

What I cannot find out is how to activate it permanently as it disappears after rebooting. Edit some file probably, but I do not know which.


Thank you for your attention,

borgibo
 
Old 11-06-2008, 03:09 PM   #2
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
Quote:
Originally Posted by borgibo View Post
Hello,

I have a problem in my Linux only multi-boot machine. After installing both Ubuntu 8-10 i386 and amd64, which have not seen my swap partition at all, caused swap to disappear in some other installed distros in the same system as well: Sidux amd64, Mandriva 2009 i386 and same amd64.

Now I have found out from this Forum site and was able to activate swap again, in Sidux where I tried, using: "# /sbin/swapon -v /dev/sda1" ,(sda1 being my swap partition).

What I cannot find out is how to activate it permanently as it disappears after rebooting. Edit some file probably, but I do not know which.
<snip>
Take a look in your /etc/fstab file. This should have an entry that looks like (Note you may have a UUID instead of /dev/sda1):

/dev/sda1 none swap sw 0 0

If you do not have a similar line - that is, nothing marked swap, I suggest you add it or you'll have to swapon at every boot meaning these letters will quickly rub off your keyboard. :-)
 
Old 11-06-2008, 04:51 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
If it indeed is using UUID, it will have been changed by the Ubuntu install - it automatically locates swap and issues a mkswap. I suggest you change it to the above on all (other) systems.
 
Old 11-06-2008, 06:56 PM   #4
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
My god such quick replies !

I went in Sidux and added in /etc/fstab the "/dev/sda1 none swap sw 0 0", and it worked. There is a line UUID swap which I did not erase.

I will do the same with the rest.

Thanks a lot. I wonder if I will ever learn UNIX/Linux. I have never used Microsoft or Apple so I am really inexperienced.


borgibo
 
Old 11-06-2008, 07:06 PM   #5
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Forgot to state that I do not know what is or how do I: "I always presume you have a verified B-A-C-K-U-P before taking any advice given."

Sounds incongruous but unfortunately is the truth !


borgibo
 
Old 11-06-2008, 08:02 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
If you have authority to update a file, the following should suffice in most cases
Code:
cp <filname> <filname>.bkp
Sounds like you should search LQ for recommendations for newbies - I'm sure I saw such a thread within the last few days.
 
Old 11-07-2008, 02:17 PM   #7
mjlouis
Member
 
Registered: Nov 2008
Posts: 48

Rep: Reputation: 16
Quote:
Originally Posted by borgibo View Post
My god such quick replies !

I went in Sidux and added in /etc/fstab the "/dev/sda1 none swap sw 0 0", and it worked. There is a line UUID swap which I did not erase.

I will do the same with the rest.

Thanks a lot. I wonder if I will ever learn UNIX/Linux. I have never used Microsoft or Apple so I am really inexperienced.


borgibo
You're off to an excellent start though - asking questions; there's no such thing as a dumb one...except the one not asked!

You will learn Linux and Unix and you will also at some point break something badly (I did when I started!) so make sure you keep a copy of important stuff on a CD, USB drive or external hard disk for the day you do something followed by "Ah...oh dear". :-)

If you haven't come across this already, use the manual pages - man <command>:
man fsck
for example. This will tell you all about a command and how to use it.
 
Old 11-07-2008, 04:05 PM   #8
borgibo
Member
 
Registered: Aug 2007
Posts: 47

Original Poster
Rep: Reputation: 15
I laughed but shivered as well with your fsck !

You are right, I have to keep important documents 'backed up' in a cd for example. I guess I will have to cp the file(s) where I keep my correspondence. I did it with a lot of videos before to send to a relative a dvd.

Actually I did have a problem some months ago but not due to a mistake of mine. Some 60 GB of video files, ( I love cartoons ), had to be deleted from /home as after updating a well known distro they refused to play any more. I tried many tricks even installed another distro in '/' in place of the old one to no avail. At that time I did not know enough and could not post in the distro's forum to ask for help. I had used miro to get them so I downloaded them again, using Sidux this time, up to now no accidents !

So I was lucky in that case, I suffered no real harm. But I know what you mean. Hence my shiver !


Thanks a lot, you are all very helpful,


borgibo
 
  


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
How to I swap CDs when installing a guest OS using the Virtual Machine Manager? jc_cpu Linux - Distributions 4 10-26-2008 12:21 AM
Installing ubuntu 6.06 LTS on vista machine gets stuck :"Installing Hardware drivers" anksphenomenon Linux - Newbie 1 12-16-2007 02:57 PM
Installing SLED on XP & Ubuntu machine amitabhishek SUSE / openSUSE 5 10-15-2007 01:27 PM
Installing Ubuntu on windows machine please HELP tacm Linux - General 2 01-18-2007 04:17 AM
Ubuntu Updates have stopped all Linux distros installing or working properly! HELP!! blastradius Linux - Hardware 2 07-06-2005 04:35 PM


All times are GMT -5. The time now is 08:41 AM.

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