LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-03-2006, 07:01 AM   #1
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Rep: Reputation: 15
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?
 
Old 07-03-2006, 07:06 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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).
 
Old 07-03-2006, 07:54 AM   #3
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
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.)
 
Old 07-04-2006, 12:46 AM   #4
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Original Poster
Rep: Reputation: 15
I have watched man pages about chroot, but i did not understand what for is this command?
 
Old 07-04-2006, 12:52 AM   #5
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Original Poster
Rep: Reputation: 15
Or can someone explain with more detais all this procedure?
i am using LILO
please

Last edited by Hondro; 07-04-2006 at 01:04 AM.
 
Old 07-04-2006, 01:08 AM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 07-04-2006, 01:47 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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 01:49 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
restore backup nkeever Linux - Newbie 2 06-19-2006 09:03 AM
the simple way to backup and restore HDD prince amir Linux - Newbie 1 01-09-2006 10:07 AM
backup / restore 5pints Linux - Software 2 01-11-2005 09:08 AM
Restore a partition from empty space Rotwang Linux - Software 4 03-16-2004 09:26 PM
How to restore the Empty/Full trash Icons? tr4nce Slackware 2 04-13-2003 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration