Posted: 7/1/2015 6:51:41 PM EDT
|
I recently reinstalled windows 7 on my laptop, which had fedora 22 running along side it. That wiped out the grub2 bootloader so I had to copy my /home directory to an external drive and then reinstall Fedora 22. I lost all of my installed apps (obviously) but I was able to remember most of them.
I'm concerned that when I upgrade to windows 10 at the end of this month it will again wipe out the bootloader and I'll be forced to reinstall fedora for a third time. Is there any way I can back up my installed programs, or perhaps the entire fedora installation and then restore it after the upgrade to windows 10? |
|
I use the free version of this program for managing the bootloader and it works great! |
|
I you have your Linux install in a separate partition then there shouldn't be any problems other than the bootloader (managing the bootloader is simple). If you install a new Windows OS and allow it to remove partitions and wipe the whole disk - don't choose that option, install Windows in its own partition. I don't know if W10 is a clean install or an OS upgrade. |
| I've always just been able to reinstall the bootloader with a grub disk and have it revive my existing Linux install. Just make sure to do a custom install of Windows (don't let it use the entire drive) and manually select the same partition that Windows previously inhabited and your Linux shouldn't be touched (though the bootlegger will be overwritten, hence the need for the grub disk to reinstall it). |
|
Quoted:
I you have your Linux install in a separate partition then there shouldn't be any problems other than the bootloader (managing the bootloader is simple). If you install a new Windows OS and allow it to remove partitions and wipe the whole disk - don't choose that option. I don't know if W10 is a clean install or an OS upgrade. That's not what I'm asking. I want to know how to back up my entire fedora installation and then restore it. Managing the bootloader SHOULD be simple, but it wasn't in my case. When I reinstalled grub it did not detect my fedora installation.. only the windows 7 was detected by the grub installer and os-prober.
I didn't know what to do after that so I just backed up everything off my home folder and reinstalled just to get grub to work. That is simple enough, but I've already got this second install of fedora set up relatively like I want it to be and I don't want to have to re-download all of my packages and dependencies and all of the little tweaks I've done all over again. I also tried repair-boot-disk (an live linux iso specifically for restoring the bootloader) which didn't work at all and told me to install the grub2 repository IN the fedora installation I was trying to fix.. which was impossible, since I couldn't boot into it. |
|
Quoted:
Have you tried LILO instead of grub? Did windows overwrite the linux partition? Was the linux partition the first partition on the disk or the first disk in the machine? Fedora doesn't give you the option of choosing another bootloader. Grub works fine for me, except the part where when I reinstall it it doesn't detect the fedora install. And no, windows did not overwrite the linux partition. I could still see it by running fdisk -l on the live cd.. but os-prober, amd grub2-install would not detect it. The linux partition was on sda4 or sda5. Disk /dev/mapper/fedora_monolithnix-root: 55.9 GiB, 59999518720 bytes, 117186560 sectors |
|
Quoted:
To back up EVERYTHING you could just tar the root directory. You will have to edit the boot loader afterwards though. What I'd rather do is just create a list of my installed packages and save it to a file and then have yum/dnf read from that list and re-install the packages again on a fresh install of fedora after I upgrade to windows 10 (assuming it wipes out the bootloader again). |
|
Quoted:
Are you running grub from the live distribution or are you using the rescue mode ? Try booting from the CD and type "linux rescue" at the prompt. Live distribution. Apparently fedora doesn't have a rescue mode except for the fedora server netinstall version which I did just download. I'm going to try to use that if this happens again, but I've never done it before. But I don't understand why reinstalling grub from the live cd would install grub but not detect the existing fedora install on my system. |
| I can't remember the name of the program, but Ubuntu had a program that would create a live, installable ISO of YOUR install that could be installed like any other live disk. Otherwise, you could use sorting like clonezilla to clone your Linux partition, then just restore it AFTER you install Linux and have a functioning bootloader that will allow you to access the Linux partition. |
