Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2006, 08:01 AM
|
#1
|
Member
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102
Rep:
|
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?
|
|
|
07-03-2006, 08:06 AM
|
#2
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
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).
|
|
|
07-03-2006, 08:54 AM
|
#3
|
Member
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241
Rep:
|
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.)
|
|
|
07-04-2006, 01:46 AM
|
#4
|
Member
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102
Original Poster
Rep:
|
I have watched man pages about chroot, but i did not understand what for is this command?
|
|
|
07-04-2006, 01:52 AM
|
#5
|
Member
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102
Original Poster
Rep:
|
Or can someone explain with more detais all this procedure?
i am using LILO
please
Last edited by Hondro; 07-04-2006 at 02:04 AM.
|
|
|
07-04-2006, 02:08 AM
|
#6
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
|
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.
|
|
|
07-04-2006, 02:47 AM
|
#7
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
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
Last edited by gbonvehi; 07-04-2006 at 02:49 AM.
|
|
|
All times are GMT -5. The time now is 10:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|