I'm trying to clear out an old ubuntu installation on a different partition (sda5). I'm currently running ubuntu from sda1 partition.
- Is it safe to do the following (just checking):
root@my-laptop:/media/sda5# rm -R /media
I'm only asking because:
root@my-laptop:/media/sda5# ls -R /media
obviously shows a lot of files referenced in there...
PS: Is there anything that needs saving from that partition??? (I've got the old /home directory on a different partition.) I've heard about some /home encryption files being stored within /var (doesn't apply to me anyway). Are the mysql data there by default? Any other issues?
The question was really about: if I delete the contents of sda5 with
rm -R, do the symbolic links to media/ also lead to deleting content on those linked partitions (in the same way as
ls -R does give me the files even on the other partition)? I don't think so, but would like to be assured. I.e. the question is not how to delete directories on one partition, but whether this can be done using
rm -R without deleting linked content.