First of all I would like to thanks dibl, who helped me with this process.
Now I don't know if this was written before, but I think it wasn't.
Sometimes you want /must to reinstall your Kubuntu, but the problem is that you can't keep your settings.
So what to do that your personal data is not lost in this new install?
This how to supposes that you already have home on different partition (I'll try to write what to do if this is not the case, but I might be wrong)
For easiest way to complete this How-to you'll need Yakuake.
Step 1; Partitioning of the "original" install:
So first thing is to choose set partitions manually in your installation of Kubuntu.
You make three (3) partitions:
- / (root)
- home
-swap
Step 2; reinstalling of Kubuntu:
When you are reinstalling the system and the current system has the above partitions, you just add a root partition but no home or swap, as you'll
use the existing partitions.
Once you're finished installing Kubutu, you'll notice that you have to mount the old home partition and that the root has new home.
So now you have to change the new home with the old home.
Step 3; changing new home with old home (on other partition):
Step 3.1; getting the UIID of old home partition:
First you'll need UUID of the old home partition. You'll get it with this command (the best thing is to use Yakuake for all the console work):
Now locate the partition that is called home (if your disk with Kubuntu is your primary disk partition with home is most likely to be sda5).
You copy the UUID.
Step 3.2; renaming new home and making a new home (which will link to old home on other partition):
Then you rename your current home (which was made with your new install). Rename it in something like home-old or home-newinstall...
You rename it with:
Now you renamed the home now make new home with:
useful (but a bit outdated site for all the basic commands Linux Newbie Guide
Step 3.3; editing /etc/fstab:
In yakuake write:
if you prefer CLI
or
if you prefer GUI (note that this might not work as your home is now empty and all of the config and . files are in home-newinstall. So it might be better to use nano instead.)
Your fstab will look something like that:
that's my Kubuntu disk...
Anyway you'll have to add this to fstab:
And save the fstab.
Then you have to restart/logout and it should work.
1.a; What if your current Kubuntu installation doesn't have different partition for home?
If that's the case you'll need gParted or install qtParted:
After you burn gParted to CD you boot it and resize (or go to qtparted) your Kubuntu disk and add a new partition which
you designate as home.
Then you just copy home to this new partition:
Then you just go with all the other steps and it should worktm
Hope that this will help anyone, any comments, corrections ... are welcomed!
Now I don't know if this was written before, but I think it wasn't.
Sometimes you want /must to reinstall your Kubuntu, but the problem is that you can't keep your settings.
So what to do that your personal data is not lost in this new install?
This how to supposes that you already have home on different partition (I'll try to write what to do if this is not the case, but I might be wrong)
For easiest way to complete this How-to you'll need Yakuake.
Step 1; Partitioning of the "original" install:
So first thing is to choose set partitions manually in your installation of Kubuntu.
You make three (3) partitions:
- / (root)
- home
-swap
Step 2; reinstalling of Kubuntu:
When you are reinstalling the system and the current system has the above partitions, you just add a root partition but no home or swap, as you'll
use the existing partitions.
Once you're finished installing Kubutu, you'll notice that you have to mount the old home partition and that the root has new home.
So now you have to change the new home with the old home.
Step 3; changing new home with old home (on other partition):
Step 3.1; getting the UIID of old home partition:
First you'll need UUID of the old home partition. You'll get it with this command (the best thing is to use Yakuake for all the console work):
Code:
sudo blkid
You copy the UUID.
Step 3.2; renaming new home and making a new home (which will link to old home on other partition):
Then you rename your current home (which was made with your new install). Rename it in something like home-old or home-newinstall...
You rename it with:
Code:
sudo mv /home /home-newinstall
Code:
sudo mkdir /home
Step 3.3; editing /etc/fstab:
In yakuake write:
Code:
sudo nano /etc/fstab
or
Code:
kdesudo Kate
Your fstab will look something like that:
Code:
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sdb1 UUID=c032f76b-0531-4fdc-ab97-ea84a737abca / ext3 relatime,errors=remount-ro 0 1 # /dev/sdb6 UUID=66736552-73f5-4457-90c6-13d9f57df68c none swap sw 0 0
Anyway you'll have to add this to fstab:
Code:
UUID= "number goes here" /home ext3 auto,users,rw,exec,relatime 0 2
Then you have to restart/logout and it should work.
1.a; What if your current Kubuntu installation doesn't have different partition for home?
If that's the case you'll need gParted or install qtParted:
Code:
sudo apt-get install qtparted
you designate as home.
Then you just copy home to this new partition:
Code:
sudo cp /home /media/"newpartition"
Hope that this will help anyone, any comments, corrections ... are welcomed!
Comment