So here I am again after http://kubuntuforums.net/forums/inde...opic=3098527.0 was solved.
I tried to repartition my hard drive in my Laptop with Kubuntu 8.04 installed with the help of the gparted live CD 0.3.9-4 (http://gparted.sourceforge.net/livecd.php).
At the beginning the partitions looked like this:
So, what I wanted to do is making my Linux partition bigger. The free space results from formerly installed windows partitions. (That's also why my Linux partition is /dev/sda3.) In fact I wanted and want to have a swap partition at the beginning about 3 GB big (because I have 1.5 GB RAM), a 10 GB big partition for / and the rest in a separate partition for /home (as it was suggested by Imilano in the above mentioned thread):
So here is the new adventure:
First step: Backup
As I found out, you can copy a partition with gparted, so I thought: Yeah, now I'm save! So I made a copy of /dev/sda3 to the very end of the hard drive:
This went very well and my system still booted without problems after that. So I moved to the next step.
Second step: Resize swap partition and create partition for /
Next, I wanted to make the swap partition /dev/sda1 bigger and create a 10 GB partition right after it. This went smoothly, too:
So, now comes the crucial part: Making my system partition bigger. For safety reasons I divided this step, because I thought that first moving /dev/sda3 to the left (towards the start of the /dev/sda) and then making it bigger may be safer. (Don't know, if this is true...) To be on the safe side, I tried to boot my system after step two, successfully.
Third step: Move /dev/sda3
Went well and the boot test showed no error.
Fourth step: Resize /dev/sda3
Here I had the biggest doubts, but I felt safe because of the backup partition. Though, everything went well:
I added a journal to /dev/sda3 as mentioned in the link provided by Snowhog in the other thread:
After this I could boot and I was satisfied. But, wait, why is KTorrent still saying that I have not enough free space?! 'df -h' revealed to me, that I was actually on /dev/sda2, so the copy of my old partition /dev/sda3...
A few changes to /etc/fstab resulted in funny contradictory statements of 'df -h' and 'sudo fdisk -l' where the naming of the partitions (i.e. /dev/sda*) was not the same! So I had the situation, that the 40 GB partition (which should be my old, but resized /dev/sda3) was shown as /dev/sda2...
I figured, that changes to /etc/fstab are only on the specific partition and that I would have to tell GRUB, which partition to boot from, but how? The /boot/grub/menu.lst is there twice (40 GB partition and copied 20 GB partition), so which one is loaded and where is this information stored?
So, in short, what I want is the following:
1) Make sure that the 40 GB is the partition my system boots from and that I didn't loose data.
2) Understand the system behind the naming /dev/sda* and make it convenient (i.e. renumbering the partitions from the start of the hdd)
3) Copy / to the newly created 10 GB partition and make sure, that my system boots from there with my /home still on the 40 GB partition
4) Remove / from the 40 GB partition (so that only /home remains), remove backup partition at the end of the hdd, resize 40 GB to the maximum (to the end of the hdd)
Uff, a lot happened, apparently. Thanks for reading so far, hope you can help me out again.
Cheers,
Cornelius
I tried to repartition my hard drive in my Laptop with Kubuntu 8.04 installed with the help of the gparted live CD 0.3.9-4 (http://gparted.sourceforge.net/livecd.php).
At the beginning the partitions looked like this:
Code:
/dev/sda1 swap 1.5 GB free space 20 GB /dev/sda3 Linux system ext2 20 GB free space 40 GB
Code:
/dev/sda1 swap 3 GB /dev/sda2 ext3 for / 10 GB /dev/sda3 ext3/xfs for /home rest
First step: Backup
As I found out, you can copy a partition with gparted, so I thought: Yeah, now I'm save! So I made a copy of /dev/sda3 to the very end of the hard drive:
Code:
/dev/sda1 swap 1.5 GB free space 20 GB /dev/sda3 Linux system ext2 20 GB free space 20 GB /dev/sda2 copy of /dev/sda3 20 GB
Second step: Resize swap partition and create partition for /
Next, I wanted to make the swap partition /dev/sda1 bigger and create a 10 GB partition right after it. This went smoothly, too:
Code:
/dev/sda1 resized swap 3 GB /dev/sda4 new partition for / 10 GB free space 10 GB /dev/sda3 Linux system ext2 20 GB free space 20 GB /dev/sda2 copy of /dev/sda3 20 GB
Third step: Move /dev/sda3
Code:
/dev/sda1 resized swap 3 GB /dev/sda4 new partition for / 10 GB /dev/sda3 Linux system ext2 20 GB free space 30 GB /dev/sda2 copy of /dev/sda3 20 GB
Fourth step: Resize /dev/sda3
Here I had the biggest doubts, but I felt safe because of the backup partition. Though, everything went well:
Code:
/dev/sda1 resized swap 3 GB /dev/sda4 new partition for / 10 GB /dev/sda3 Linux system ext2 40 GB /dev/sda2 copy of /dev/sda3 20 GB
Code:
/dev/sda1 resized swap 3 GB /dev/sda4 new partition for / 10 GB /dev/sda3 Linux system now ext3 40 GB /dev/sda2 copy of /dev/sda3 20 GB
A few changes to /etc/fstab resulted in funny contradictory statements of 'df -h' and 'sudo fdisk -l' where the naming of the partitions (i.e. /dev/sda*) was not the same! So I had the situation, that the 40 GB partition (which should be my old, but resized /dev/sda3) was shown as /dev/sda2...
I figured, that changes to /etc/fstab are only on the specific partition and that I would have to tell GRUB, which partition to boot from, but how? The /boot/grub/menu.lst is there twice (40 GB partition and copied 20 GB partition), so which one is loaded and where is this information stored?
So, in short, what I want is the following:
1) Make sure that the 40 GB is the partition my system boots from and that I didn't loose data.
2) Understand the system behind the naming /dev/sda* and make it convenient (i.e. renumbering the partitions from the start of the hdd)
3) Copy / to the newly created 10 GB partition and make sure, that my system boots from there with my /home still on the 40 GB partition
4) Remove / from the 40 GB partition (so that only /home remains), remove backup partition at the end of the hdd, resize 40 GB to the maximum (to the end of the hdd)
Uff, a lot happened, apparently. Thanks for reading so far, hope you can help me out again.
Cheers,
Cornelius
Comment