Added interface to save/restore root directory in the partition.