LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2005, 02:47 PM   #1
FC3noob
LQ Newbie
 
Registered: Feb 2005
Posts: 9

Rep: Reputation: 0
easiest way to restore complete setup?


My FC3 Linux system consists of an old SCSI drive which is failing. I've got another larger replacement available, but don't want to lose all the work invested in tweaking, tuning gnome, installing xine, etc., in switching to the new disk. The current failing disk is set up with a /boot and / partition and boots from grub on the mbr:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1116 8859847+ 8e Linux LVM

I also have a big external USB drive that I use for backing up to (/dev/sdb mounts at /media/usbdisk). I'm thinking the easiest way to restore what I have to the new SCSI drive and eliminate the old one would be to:

1. Run tar as
# tar cf /media/usbdisk/archive.tar /etc /boot /root /home /usr/local
2. Remove the old drive.
3. Boot from FC3 setup CDs, allow Fedora to set up things as it did when I first installed the system (workstation, autopartition, etc.). This time, install all packages.
4. Assuming the USB drive appears at the same mount point as before, run
# cd /
# tar xf /media/usbdisk/archive.tar
5. Power down, remove the old drive, install the new one (should become /dev/sda) and reboot.
Does anyone see any problems with this approach, or is there an easier way? Should I include /var in the tar? Thanks for any advice --
 
Old 02-19-2005, 02:55 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Assuming you have space for 2 drives it would be quicker just to power up with the 2 drives attached and boot with a recovery cd. Once booted you can partition the new drive and copy the files with:
cp -ar /src /dest

Then put the bootloader on the mbr of the new drive and reboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Latest distro- yet easiest for complete newbie? H4rM Linux - Newbie 4 10-14-2005 08:20 PM
Easiest and best way to setup a firewall nepcw Linux - Security 2 03-24-2004 06:00 AM
REQ: DWL-650 complete setup instructions vrillusions Linux - Networking 4 09-01-2003 09:54 PM
Wireless card with easiest setup? pilot1 Linux - Wireless Networking 6 12-15-2002 07:21 AM
A complete step by step guidens needed to setup isp hitesh_linux Linux - Networking 4 04-04-2002 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:08 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