LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-15-2002, 06:19 AM   #1
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Question Disk copy


I have a failing 30 gb hard drive on my Linux box. It has /, /boot, and my swap space on it. Is there any way to make a complete image of this hard drive onto another 30 gb drive so I do not have to start my system over from scratch?

Is it possible to do this on another drive of a different size if say I'm only using 10 gb of data? (IE: on a 20 gb or 40 gb hd)

Thanks!

Andy
 
Old 11-15-2002, 07:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,914

Rep: Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290
For installing to different size drives tar will work. For each partition create a tar file. You can use a rescue CD/floppy disk to recreate the partitions and then use tar to copy back.

Just one idea.
 
Old 11-15-2002, 11:05 AM   #3
bfloeagle
Member
 
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
I'm not trying to play dumb here, but doesn't a rescue disk need a kernel on a fixed disk in order to run? Or is that just for the boot disk?

In either case, how do I make my own rescue disk?
 
Old 11-15-2002, 02:56 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,914

Rep: Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290Reputation: 3290
rescue boot

Just for the boot disk.

Just boot the RH CD and type rescue at the prompt.

Or look here
http://www.toms.net/rb/

Last edited by michaelk; 11-15-2002 at 02:59 PM.
 
Old 11-16-2002, 05:42 AM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
ah, tar is a headache, about a year ago they added a little used feature to cp, yeah just little regular old cp, I had to do this same mess about a month ago when my server's / drive (all but /home) started giving the click of doom, I was about to make a huge tar archive when my friend that was with me said, "dude, no way, cp -a"

"cp -a?"

"yeah cp -a, makes an archive copy, no stupid following of symlinks!"

"cp -a!"

And what followed was a lot more like a "who's on first routine", but anyway, drop the little 10 gig on the machine, cut the 3 partitions, mount what will be / and:

cp -a /* /mnt/newdrive

Easy as that, then of course the rebooting with a boot disk and re-installing your bootloader mess.

Cheers,

Finegan
 
  


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
use dd to copy a disk ubuntu-norm Linux - Software 1 07-28-2005 02:43 PM
Copy over the Live disk Kamikazextreme Linux - Hardware 1 07-04-2005 03:44 PM
copy linux installation from old disk to new disk rmanocha Linux - Software 4 07-20-2004 06:21 AM
How do I copy a floppy disk? kdmstng66 Linux - Newbie 3 04-22-2003 01:58 PM
How do I copy a floppy disk? kdmstng66 Linux - Newbie 1 04-22-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration