1. A method of upgrading an operating system of an electronic device, the method comprising: detecting operating system upgrade initiation; generating labeling information on each piece of user data; and relabeling the user data based on the labeling information.