Why does FSarchiver not restore
Based upon both my experience and some initial research, I concluded that FSarchiver does not restore grub to your destination drive.
#1 Why is that? It seems really silly to ignore the booting ability. #2 Is there any way I can get it to restore grub when it restores the image? In other words, I don't want to take a 2nd action just to restore grub. However, if I did have to take a 2nd action to restore grub, then what would be the easiest method? |
Bad conclusion. Or poorly worded.
fsarchiver restores the filesystem you backup up. What else would you expect ?. |
I disagree that the OP drew a bad conclusion. It is entirely legitimate to expect FSarchiver to restore the boot loader. Not that it is an absolute requirement that it does so, but partimage, for instance, does. My reason for using FSarchiver instead is the lack of support for ext4 in partimage.
When I restore a bootable partition with FSarchiver, I subsequently boot from a CD for the distro that I have just restored, mount the required directories with the "--bind" option (depends on which distribution you're working with), do a "chroot" into the restored partition, and run the commands to reinstate the boot loader. I'm willing to provide more details if you wish, but I cannot do so right now. Let me know if you want them (possibly telling me what's your distro), and I'll give you an example. |
luvr - thanks for your reply and yes, I welcome any examples.
I currently use Kubuntu 14.04 64 bit. I am using it on a bootable 16 gb USB flash device. Everything is on 1 partition (root) for simplicity. So, does this mean FSarchiver does not save boot? I don't understand why one would save only a "filesystem". Without boot, isn't a filesystem unaccessible, therefore useless? |
Quote:
Thus, partimage will restore the used disk blocks to there original locations on the disk, including the blocks required by the boot loader. FSarchiver, on the other hand, will restore each file in turn, and completely rebuild the filesystem from scratch. It will not take into account the original locations of the files on the disk, and it will ignore any blocks that are not part of any file—specifically, the “Root Block” (a.k.a. “Superblock”) of the partition, which contains the very first piece of boot loader code to get the system boot process going. Note:By the way, without boot, the filesystem isn’t really inaccessible; you can still mount it and use its contents. You just cannot boot it any longer.The above description does not apply if the boot loader for your Operating System sits on the Master Boot Record of your hard disk—in which case the Superblock of the partition will play no role in the boot process. Having said that, on to the important part: Quote:
To reinstate the boot loader for your Ubuntu system, follow these steps:
|
luvr - wow, thank you for the extensive information. I will look at the example too.
I noticed your Ubuntu "how-to" uses lots of command line. Is there a GUI alternative? Like most Windows users, command line frightens me! You stated FSarchiver makes a "file-by-file" backup instead of a "block-by-block" backup. Is that why FSarchiver can restore to a destination of any size, so long as the destination is big enough to hold the uncompressed files? |
Follow-up for luvr:
You wrote "It could well be that, if your boot loader is GRUB, and if it sits on the Master Boot Record, then your Operating System will be bootable without any further actions on your part after you restore it with FSarchiver—though I haven’t actually tested this." I want to test this. How would I do so? What steps must I perform? Thank you again. |
Quote:
Quote:
|
Quote:
For the sake of this discussion, I will assume that you are using a Windows computer, and that, whenever you boot the computer from the hard disk, Windows will automatically start. If that is the case, then your Master Boot Record contains the default Windows Boot Loader. If you want to install GRUB onto your Master Boot Record, then you will overwrite the Windows Boot Loader, and replace it with GRUB. From then on, whenever you boot your computer, a boot menu will appear, from which you can choose to start Windows or whichever Linux system(s) you have installed on your computer. One caveat: GRUB needs to load a number of files from its “boot” file system—which must be present on your hard disk, and should remain in place for as long as you want to keep using GRUB as your “Master Boot Loader”. The most common way to get the “boot” file system installed on your hard disk, is by installing Linux onto your hard disk. If you install the entire Linux system into a single partition, then the “boot” file system will be that partition (you will find the “boot” file system contents in the “/boot” directory within the partition). In this case, the GRUB boot sequence works something like the following:
From the above description, one critical observation should be made: Quote:
I hope that, from the above, you can work out whether or not it is doable or desirable to install GRUB onto your “Master Boot Record”. If you need any further information, just let me know. |
luvr - thank you for the explanation. Now I better understand FSarchiver.
Regarding my computer setup: Win7 on its own HDD. The 2nd HDD is NTFS format and only used for data storage. My Linux is restricted to a removable, bootable 16 GB USB flash. I purposely do so because I want to separate the Windows boot from the Linux boot. Right now, my USB is on a higher boot priority than the Win7 HDD. Thus: If I plug in the USB I go to Linux. If I don't have the USB then I go to Win7. Knowing these setup details, would I still follow the same "experiment directions" you gave earlier? Once again, thank you for your patience! |
Quote:
Quote:
Quote:
|
luvr - in the interest of simplicity, would it be possible to make a small "boot partition" on my flash device so I could boot directly from it? Currently, the flash has only 1 partition: Kubuntu 14.04 root.
My thinking is if I somehow isolate and protect "boot" in one partition and have the OS with root in another, then I could restore the OS at will without worrying about boot problems. |
Quote:
|
How large of a partition would I need for boot? So far, my research shows only a very small size (a few MB) is needed.
I was thinking I could use gparted to shrink my /root enough for /boot. Would that work? |
Quote:
And yes, you can perfectly use gparted as you note. |
All times are GMT -5. The time now is 11:30 AM. |