I accidentally deleted the
root partition using the default partition editor, the partitions just disappeared. When I open GParted, I receive the following error message :
Partition(s) 6, 7, 8, 9 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
I want to restore the partitions because it seems that the kernel is still keeping a cached image. How can I restore the partitions (before rebooting)?