Backup restore on empty hdd
Hi, i have a full system archive(slack 10.2) which i have made with this command:
# tar cvpzf /arj/system.tar.gz --directory / --exclude=proc --exclude=arj --exclude=tmp My question is how to restore whole system in empty hdd(hdd have two partitions: ext3 and swap), the file system.tar.gz is written in CD? |
Boot from CD, mount your hdd, cd to it and issue tar xzpf /system.tar.gz (or where it resides). You still will have to chroot to your hdd afterwise and reinstall bootloader (don't know what Slack uses now).
|
Slackware still uses lilo, so you'd have to chroot and re-run lilo. If you've substituted grub, you'll have to do a similar thing for that. Be careful, if you are moving the drives around in a computer, your lilo/grub entries may change (hda1->hdb1 etc.)
|
I have watched man pages about chroot, but i did not understand what for is this command?
|
Or can someone explain with more detais all this procedure?
i am using LILO please :) |
Chroot is giving you a shell for which named directory is /. So all paths to configuration and libraries, usually hardcoded as absolute paths in programs, change to paths relative to given dir. For example, lilo will go to /boot for kernel - and it will be on hdd, not rescue cd.
|
It can't be simpler than: chroot = change root
That means, change the root partition (root = /) ;) Specifically from the man page: Code:
SYNOPSIS Want details? man chroot |
All times are GMT -5. The time now is 07:59 AM. |