LinuxQuestions.org
Review your favorite Linux distribution.
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 06-30-2005, 10:37 AM   #1
basilogics
LQ Newbie
 
Registered: Jun 2005
Location: Netherlands
Distribution: Suse 9.1 pro
Posts: 26

Rep: Reputation: 15
backing up suse to another drive


hello,

is it possible to backup suse (9.1 pro) from one hdd to another? when this hdd crashes, a few hours work will be lost.
it would be a quite simple solution if i put the new hdd (with the suse backup) in the computer and can continue working.

basilogics
 
Old 06-30-2005, 11:01 AM   #2
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
install the new disk as secondary master or primary slave, which ever you prefer.
Then you need to partition it the way you want it, if you're dual booting then install windows once the partitions have been made.

boot to a live cd which gives write permissions to the hard disks and mount the old and new disks
to somewhere like: /mnt/old and /mnt/new
then just use:
Code:
cp -Rp /mnt/old /mnt/new
if your partitions on the new disk are different to the ones on the old, then you'll need to edit /etc/fstab and you boot config(/boot/grub/menu.lst if you're using grub) to reflect the changes.

then you can install the new disk as primary master and all should ok.
 
Old 06-30-2005, 11:13 AM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,860

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"is it possible to backup suse (9.1 pro) from one hdd to another? when this hdd crashes, a few hours work will be lost.
it would be a quite simple solution if i put the new hdd (with the suse backup) in the computer and can continue working."

Yes, it is possible. However don't try to do it by creating disk images with dd. Using dd can cause all kinds of flaky problems which you don't need in a backup/restore scenario. You can use a series of cp commands in a script to copy a working system onto a partition on a seperate hard drive. I do this with the cpbk command which is an archaic program similar to cp. A major advantage to doing it this way is that you can set up the backup to only copy files which have changed, thus cutting down backup time significantly.

In the past I have created a new Linux operating system on a spare drive and then swapped drives to install the new system. About 30 years ago I used to routinely install new OSs that way. But I don't recommend it as a backup/restore method. Instead I recommend that you use cp to create a backup partition on a seperate hard drive. To restore, boot a rescue CD and then copy over enough of the backup system to restore the broken system to working order. If you lose a complete hard drive due to hardware failure you could swap hard drives and then boot a rescue CD to do the work of making the replacement hard drive a working system.

--------------------------
Steve Stites

Last edited by jailbait; 06-30-2005 at 11:17 AM.
 
Old 06-30-2005, 12:03 PM   #4
basilogics
LQ Newbie
 
Registered: Jun 2005
Location: Netherlands
Distribution: Suse 9.1 pro
Posts: 26

Original Poster
Rep: Reputation: 15
ok, thanks. i think i can manage this.

basilogics
 
  


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
Backing up to SCSI tape drive stokes Programming 2 11-22-2005 10:58 AM
backing up a directory to another hard drive aducarrab Linux - Newbie 1 01-29-2005 09:27 PM
Backing up my hard drive? brynjarh Linux - Newbie 1 07-04-2004 05:28 PM
backing up directory to CD-RW drive? jermo5 Linux - Software 2 08-06-2003 03:09 PM
Adding Hard Drive and Backing Up Cynthia Blue Linux - Hardware 2 12-26-2002 11:50 AM


All times are GMT -5. The time now is 08:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration