Sugi
April 29th, 2009, 09:42 AM
Deleting a Primary Swap Partitiion and Making a New Extended Partition with a Swap Partition inside of that.
Get your LiveCD ready and put it into your computer and reboot
*sudo reboot
Now running off your livecd, open up Partition Editor *gparted*
Select your old swap partition -> Right Click -> SwapOff
Select your old swap partition and delete it.
Now create a new partition with the remaining space of your old swap partition (mine was 512 BM)
Create the new partition as an "Extended" partition.
Select your new "Extended" partition and create your new swap partition inside of that. (Once again my new swap partition will be 512 MB)
Select your New Swap partition -> Right Click -> SwapOn
Find your new swap partition, swapon -s, My new swap partition was /sda5.
Find the UUID of your new Extended Swap Partition,
*sudo blkid
Take the UUID number and replace it with /deb/sda# in your fstab
*sudo nano /etc/fstab
Example:
Before:
/dev/sda3 swap swap defaults 0 0
After:
3578985eh-587y-krf3-84683t3u26 swap swap defaults 0 0
****Please remember this is only an example, this is not a real UUID number and you should not use it for your own UUID. You will have to look up your UUID for your new swap parition. Once again, will be *sudo blkid
If all is well, boot back into your OS. Open up your terminal and:
*swapon -s
It should return with all of your active swap partition. If it does, you're all ready to go. You now have a new extended partition with your new Swap parition inside of it and you freed up another Primary partition. Now go install another OS!!!
TROUBLESHOOTING:
But if it doesn't return any Swap Partitions, Let's try activate all Swap Partition
(if this returns any information at all that means there are issues with your fstab.)
*sudo swapon -a
Your error message will probably say something like
swapon: 3578985eh-587y-krf3-84683t3u26: no such file or directory
The best way to fix this, is find your UUID and repaste it back into your fstab. This should fix it.
*sudo blkid
Copy the UUID number correct, the whole thing and input it into your fstab
sudo nano /etc/fstab
Example:
3578985eh-587y-krf3-84683t3u26 swap swap defaults 0 0
Now save the fstab and let's see if it's working again.
swapon -s
If it returns with your swap partition. Then all is good and everything is fixed.
Credit: geirha from IRC provided information on the troubleshooting.
Cheers,
Sugi
The Original Post
I have installed the following OS on my laptop in order: Ubuntu Hardy, Vista, and now Osuse 11.1. I am trying to install on my single harddrive, everything has gone oh kay until now. I am stuck at the point where I need to setup my partition table for my third OS. Which I am having a problem with, because the LiveCD of OpenSUSE 11.1 does not see my free space which is 29 gigs.
My current setup:
sda 1 WIndows Vista
sda 2 Hardy /
sda 3 Hardy swap
sda 4 Hardy /home .
I think I know the problem, all of these partition is set to primary (if I have remembered correctly). And if I am not mistaking, a harddrive can not go over 4 primary partitions of a harddrive. Is this correct? By the way, I am unable to see which partition is primary or logical with the OpenSuse LiveCD.
And if this is the issue, is there any way around this besides from reinstalling the Ubuntu OS with logical parition.... I do not think this is possible.
Thank you,
Sugi
Get your LiveCD ready and put it into your computer and reboot
*sudo reboot
Now running off your livecd, open up Partition Editor *gparted*
Select your old swap partition -> Right Click -> SwapOff
Select your old swap partition and delete it.
Now create a new partition with the remaining space of your old swap partition (mine was 512 BM)
Create the new partition as an "Extended" partition.
Select your new "Extended" partition and create your new swap partition inside of that. (Once again my new swap partition will be 512 MB)
Select your New Swap partition -> Right Click -> SwapOn
Find your new swap partition, swapon -s, My new swap partition was /sda5.
Find the UUID of your new Extended Swap Partition,
*sudo blkid
Take the UUID number and replace it with /deb/sda# in your fstab
*sudo nano /etc/fstab
Example:
Before:
/dev/sda3 swap swap defaults 0 0
After:
3578985eh-587y-krf3-84683t3u26 swap swap defaults 0 0
****Please remember this is only an example, this is not a real UUID number and you should not use it for your own UUID. You will have to look up your UUID for your new swap parition. Once again, will be *sudo blkid
If all is well, boot back into your OS. Open up your terminal and:
*swapon -s
It should return with all of your active swap partition. If it does, you're all ready to go. You now have a new extended partition with your new Swap parition inside of it and you freed up another Primary partition. Now go install another OS!!!
TROUBLESHOOTING:
But if it doesn't return any Swap Partitions, Let's try activate all Swap Partition
(if this returns any information at all that means there are issues with your fstab.)
*sudo swapon -a
Your error message will probably say something like
swapon: 3578985eh-587y-krf3-84683t3u26: no such file or directory
The best way to fix this, is find your UUID and repaste it back into your fstab. This should fix it.
*sudo blkid
Copy the UUID number correct, the whole thing and input it into your fstab
sudo nano /etc/fstab
Example:
3578985eh-587y-krf3-84683t3u26 swap swap defaults 0 0
Now save the fstab and let's see if it's working again.
swapon -s
If it returns with your swap partition. Then all is good and everything is fixed.
Credit: geirha from IRC provided information on the troubleshooting.
Cheers,
Sugi
The Original Post
I have installed the following OS on my laptop in order: Ubuntu Hardy, Vista, and now Osuse 11.1. I am trying to install on my single harddrive, everything has gone oh kay until now. I am stuck at the point where I need to setup my partition table for my third OS. Which I am having a problem with, because the LiveCD of OpenSUSE 11.1 does not see my free space which is 29 gigs.
My current setup:
sda 1 WIndows Vista
sda 2 Hardy /
sda 3 Hardy swap
sda 4 Hardy /home .
I think I know the problem, all of these partition is set to primary (if I have remembered correctly). And if I am not mistaking, a harddrive can not go over 4 primary partitions of a harddrive. Is this correct? By the way, I am unable to see which partition is primary or logical with the OpenSuse LiveCD.
And if this is the issue, is there any way around this besides from reinstalling the Ubuntu OS with logical parition.... I do not think this is possible.
Thank you,
Sugi