PDA

View Full Version : [ubuntu] Use existing partitioning when reinstalling



MANielsen
February 22nd, 2010, 09:25 AM
I have a laptop running Ubuntu 8.04 LTS and I need to upgrade to the new Ubuntu, I order to get complete use of my hardware.
Usually when I install a new version of Ubuntu, I have the opportunity to use my old partitioning, but now I can only use the entire disk or create a new partition table.


The laptop has other partitions that is a data and a Windows partition as I want to preserve.




How can I install the new Ubuntu on the old Ubuntu partition and preserve the data on other partitions?



Thanks
Morten Nielsen

zvacet
February 22nd, 2010, 02:26 PM
Using manual way you should be able to remove your root and on that free space install Karmic.

MANielsen
February 22nd, 2010, 05:52 PM
My current partitioning are not shown when choosing manual partitioning, as fare as I can see my only option is to make a new partition table.

darkod
February 22nd, 2010, 06:01 PM
It seems you have some issue with your hdd. Don't write a new partition table, that usually writes new blank partition table.
Your existing partitions data will be lost.

antigooner
February 22nd, 2010, 06:17 PM
Hi I'm very new to Linux. I've installed Karmic on my Eee PC1000 and all the system files along with the 'home' directory have gone on the first 8gb SSD leaving the second 32gb SSD untouched.

Is there a way to get karmic to mount and use the existing files and file structure on the 32gb SSD? ie; home/user etc? (Original file structure was from the default Xandros OS).

Any help, links or scripts really would be much appreciated.

Many thanks in advance
Mel
(linux & forum newbie)

darkod
February 22nd, 2010, 06:37 PM
Hi I'm very new to Linux. I've installed Karmic on my Eee PC1000 and all the system files along with the 'home' directory have gone on the first 8gb SSD leaving the second 32gb SSD untouched.

Is there a way to get karmic to mount and use the existing files and file structure on the 32gb SSD? ie; home/user etc? (Original file structure was from the default Xandros OS).

Any help, links or scripts really would be much appreciated.

Many thanks in advance
Mel
(linux & forum newbie)

You can mount the 32GB SSD to be used but not as /home. It already have a home folder in the new install you created. If you wanted to use the existing /home you need to do it during the install.
I'm not sure you can add it later, and plus it's from different distro so there might be incompatibility.

antigooner
February 22nd, 2010, 06:48 PM
Thank you Darko for your very prompt response to my problem. I suspected this might be the case and backed up all my stuff in anticipation. My problem now is how to specify that configuration on re-installing"

Thanks again

Mel

darkod
February 22nd, 2010, 06:56 PM
Thank you Darko for your very prompt response to my problem. I suspected this might be the case and backed up all my stuff in anticipation. My problem now is how to specify that configuration on re-installing"

Thanks again

Mel

In step 4 of the installer select Advanced (Manual) partitioning, that's the only way to do it.
It will show you all partitions and they will have Not Used mark. Linux always does that to avoid deleting your data by accident. It will never automatically use a partition even if it is a linux partition.
So you will need to click on each partition one by one, then the Change button at bottom. And for each partition select the corresponding options.
For /
Mount point /
Filesystem ext4
Format Yes (tick the box)

For /home
Mount point /home
Filesystem as it is on the current
Format NO NO NO (if you want to keep the data)

Do the same for swap

gadolinio
February 22nd, 2010, 07:12 PM
I have a laptop running Ubuntu 8.04 LTS and I need to upgrade to the new Ubuntu, I order to get complete use of my hardware.
Usually when I install a new version of Ubuntu, I have the opportunity to use my old partitioning, but now I can only use the entire disk or create a new partition table.


The laptop has other partitions that is a data and a Windows partition as I want to preserve.




How can I install the new Ubuntu on the old Ubuntu partition and preserve the data on other partitions?



Thanks
Morten Nielsen

If you want to eliminate the old ubuntu installation in order to place the new one there, try using gparted from a liveCD. Turn on the pc with livCD, choose to try ubuntu. In the live session go to system--> administration--> gparted partition editor. You'll see a bar representing your hard disk(s). Right-click the one where you have the old ubuntu and delete it. That space will become "unassigned". Then click apply changes. Close gparted, and double-click the install icon on the desktop, and tell the program to install in the unassigned space.

MANielsen
February 24th, 2010, 06:59 PM
Hey, thank you for your answer.
But gparted just state that my hardisk is "unallocated". I belive that I need some way to restore my partition table... but how:-)

darkod
February 24th, 2010, 07:04 PM
Hey, thank you for your answer.
But gparted just state that my hardisk is "unallocated". I belive that I need some way to restore my partition table... but how:-)

TestDisk. But I don't know how to use it. Fortunately I never needed it. :)
http://www.cgsecurity.org/wiki/TestDisk

MANielsen
February 27th, 2010, 03:09 PM
TestDisk (http://www.cgsecurity.org/wiki/TestDisk) where the solution.
http://www.cgsecurity.org/wiki/TestDisk_Download

I scanned my HDD, chose the partition I wanted and wrote it to the disk.
Here is a forum thread that guided me: http://ubuntuforums.org/showthread.php?t=413745

gadolinio
February 27th, 2010, 07:35 PM
Once gparted shows your partition as unallocated, can you execute the installer, and make it install ubuntu in that unallocated space? try that. When asked, select the option of manual installation and choose the unallocated space. can you?

MANielsen
February 28th, 2010, 10:57 AM
Yes I can
and I did that