Scenario:
The current system is currently using the Fedora 14 OS. Several files are existing in the /media/usrOSBak and /media/usrbak. These folders contains some .jpg, docs, xls, iso, exe and some other file types. The system was upgraded to Fedora 15 using the pre-upgrade. After the upgrade, the two folders were deleted during the install.
Recovery:
By using the testdisk for Linux, the folders may be recovered by the following steps
0. DO NOT USE THE LINUX PARTITION UNTIL YOU HAVE CONDUCTED THE RECOVERY OF THE FILES.
1. Download and unzip the testdisk into a Linux partition. DO NOT USE THE PARTITION WHERE YOU ARE RECOVERING THE FILES!. You may overwrite the files you are planning to recover. It would be best if you can use a usb drive formatted in Linux.
2. Sudo as root
3. Make the testdisk_static to executable by: # chmod a+x testdisk_static.
4. Run the testdisk by: # ./testdisk_static
5. Select a media -> Disk /dev/sda (where your Fedora 15 is now residing) -> Proceed
6. Please select the partition table type, press Enter when done.
Select the [Intel] Intel/PC partition and then press Enter
7. Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Select [Advanced] Filesystem Utils and press Enter
Select 3 P Linux [_Fedora-14-i686] and then use the left arrow to select [List] and press Enter
8. Use the down arrow key to go to the 'media' folder and press Enter.
9. Use the down arrow key to go to the 'OSBAK' folder and press c (lower case)
10. Select the destination to the mounted usb drive. DO NOT RESTORE INTO THE SAME PARTITION, USE AN EXTERNAL DRIVE!
11. Use the down arrow key to go to the 'usrbak' folder and press Enter.
12. Select the destination to the mounted usb drive. DO NOT RESTORE INTO THE SAME PARTITION, USE AN EXTERNAL DRIVE!
13. Verify that the files are not corrupted before using the Linux box again.
Note:
Try to upgrade next time using the yum option
see: Upgrading using yum
No comments:
Post a Comment