I don't know why you should remove the /home
partition, but I'm sure that copying the contents of the /dev/sda6
to the Ubuntu's /
in the home directory and deleting the entry of the fstab
file on Ubuntu, should suffice.
Using live CD (or whatever you got at hand that allows you mount
and cp
) lets copy your files:
sudo mkdir /mnt/ubunturoot
sudo mkdir /mnt/ubuntuhome
sudo mount /dev/sda1 /mnt/ubunturoot
sudo mount /dev/sda6 /mnt/ubuntuhome
Ok, now lets check we got the files:
ls /mnt/ubuntuhome
anas lost+found
All good, lets continue (you should be aware that in Ubuntu's root you should have more free space that you have occupied on /home
):
sudo mkdir /mnt/ubunturoot/home
sudo cp -PR /mnt/ubuntuhome/* /mnt/ubunturoot/home/
Wait a long time... lets verify that everything's there:
ls -lR /mnt/ubuntu/home > newhome
ls -lR /mnt/ubuntuhome > oldhome
comm -23 <(sort newhome) <(sort oldhome) ## this can be done however you like
Now edit the fstab
file and comment out the /home
entry:
sudo nano /mnt/ubunturoot/etc/fstab
Reboot, check everything's an OK, and now you can delete your partition however you like.