LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Backup restore on empty hdd (https://www.linuxquestions.org/questions/slackware-14/backup-restore-on-empty-hdd-460543/)

Hondro 07-03-2006 07:01 AM

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?

raskin 07-03-2006 07:06 AM

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).

ledow 07-03-2006 07:54 AM

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.)

Hondro 07-04-2006 12:46 AM

I have watched man pages about chroot, but i did not understand what for is this command?

Hondro 07-04-2006 12:52 AM

Or can someone explain with more detais all this procedure?
i am using LILO
please :)

raskin 07-04-2006 01:08 AM

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.

gbonvehi 07-04-2006 01:47 AM

It can't be simpler than: chroot = change root
That means, change the root partition (root = /) ;)

Specifically from the man page:
Code:

SYNOPSIS
      chroot NEWROOT [COMMAND...]

DESCRIPTION
      Run COMMAND with root directory set to NEWROOT.


Want details? man chroot


All times are GMT -5. The time now is 07:59 AM.