![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Hardware & Laptops Problems with hardware & laptops not being detected or supported during or after install. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
my swap partition not recognized
When I installed Hoary I didn't make a swap partition because with 1Gb of RAM I didn't think it would be necessary. Now I want one so I can try to get hibernate to work. I created a swap partition, but when I run the free command this is what it shows:
Quote:
More info...here's my disk partition setup: Quote:
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() |
||
|
|
|
|
#2 |
|
Skinny Soy Caramel Ubuntu
![]() |
Re: my swap partition not recognized
You must tell the machine that you have a swap partition now.
on the command line you can type swapon /dev/hda6 And make your entry into /etc/fstab, like this. /dev/hda6 none swap sw 0 0 That does it. |
|
|
|
|
#3 | ||
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
Re: my swap partition not recognized
Thanks for the reply.
For the command - swapon /dev/hda6 - here is the output: Quote:
Quote:
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() Last edited by matthew; July 22nd, 2005 at 09:10 PM.. Reason: additional info |
||
|
|
|
|
#4 | |
|
Ubuntu Extra Shot
![]() Join Date: Apr 2005
Location: 2630m closer to the stars
My beans are hidden!
|
Re: my swap partition not recognized
Quote:
Code:
sudo swapon /dev/hda6 |
|
|
|
|
|
#5 | |
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
Re: my swap partition not recognized
Nope. Here's the output. BTW, it didn't matter if I used "sudo swapon /dev/hda6" or "sudo swapon -a"
Quote:
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() |
|
|
|
|
|
#6 | |||
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
Re: my swap partition not recognized
I found the answer!!
I couldn't turn the swap on because it had never officially been made. Here's the code: Quote:
Quote:
Quote:
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() |
|||
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Location: export HOME=Lund, Sweden
Beans: 130
Ubuntu 8.04 Hardy Heron
|
Re: my swap partition not recognized
Strange. I experienced the same thing (and the solution here solved it).
The thing that makes me confused is that I'm sure the swap partition worked earlier... It might be the fact that I have my swap partition on LVM an that I shrinked another logical volume last night... It might also be that I tried the acpi hibernation.sh script earlier, and that didn't work (just did a "bad" shutdown...). But as I said, the solution here ("mkswap [device]" and then "swapon -a") solved it.
__________________
Proud Ubuntu user, with Debian experience. (Ubuntu as main OS since March 2005) Registered Linux User: #386006 (Linux Counter) Registered Ubuntu User: #5184 (Ubuntu Counter) |
|
|
|
|
#8 |
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
Re: my swap partition not recognized
Very cool. Glad that helped you out. I would guess that the swap file was deactivated when you resized and as you discovered just needed to be reactivated.
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() |
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() Join Date: Apr 2005
Beans: 430
|
Re: my swap partition not recognized
Hi guys
Since we are talking about swap and hibernation, let me ask a question... I have a swap 512 Mb, and since my hibernation is not working, I thought maybe it's because of swap being too small. Anyone knows how can I resize the swap partition, make it bigger? Thanks a lot. |
|
|
|
|
#10 |
|
Bubbleheaded Star Child
![]() Join Date: Apr 2005
Location: Parts Unknown
Beans: 9,507
Ubuntu Development Release
|
Re: my swap partition not recognized
You can use the install disk to do this. Boot from it and get to the partitioner. Resize as you want and then stop the installation before it goes further. You need to do this because you cannot resize an active partition. If you don't want to do it from the installer, I believe gparted or qparted is included on the live cd and I know qparted is included on the Knoppix cd.
Your swap partition will need space next to it if you are to enlarge it. See what partitions are adjacent first and if any of them may be resized slightly to give room for the increase. Read this for a little more detailed info. https://wiki.ubuntu.com/forum/installation/Partitioning
__________________
Forum FAQ | Forum CoC | what's a troll? | are you imposing? | GNU/Linux?
my blog | my writing Don't ask support questions in PMs--post a thread so everyone can benefit! ![]() Last edited by matthew; July 29th, 2005 at 06:59 PM.. Reason: clean up |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|