LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-24-2006, 12:06 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
make exact copy of hda1 for new HD


hey there,
i am hosting a few websites and i need more hd space.
i want to buy a 200 gig hard drive and use that instead of the little
40g unit i have now. problem is, it took forever to set the system up
just the way i like it.
is it possible to make an exact copy of everything on my hda1 drive (everything including the mbr, / directory on up ? so that when i boot off the new drive, it is the same as the one i am using now ?

any suggestions appreciated.
 
Old 06-24-2006, 12:34 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
iv never had to do it but iv read in the past that the 'dd' command will be able to do this.
boot with a liveCD, you could download DSL in about 10 minutes if you dont have one (however, of course, any would work). make sure none of your partitions are mounted, and issue something like 'dd if=/dev/hda of=/dev/hdb'. search here or google.com/linux for info about the dd command first.
 
Old 06-24-2006, 12:48 PM   #3
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Thats probably the reason why I was taught to create LVM partitions. Hope you follow that.
 
Old 06-24-2006, 12:48 PM   #4
voger
Member
 
Registered: Oct 2005
Distribution: Arch
Posts: 68

Rep: Reputation: 15
How about "cp -Rp" from one disk to the other? After that just boot with a live cd and chroot to restore grub.
 
Old 06-24-2006, 01:15 PM   #5
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
i have used dd before to zero fill a hard drive. and i have a knoppix disc laying around somewhere.
suppose i could use that.

is it to late to do an lvm ?
dont know much about it or what its for.

thanks all,
 
Old 06-24-2006, 04:49 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
dd'ing the disk is pointless - you will have the same problem on a bigger (physical) disk. All the partitions will still be the same size.

LVM is an (good) option, but you'd be better off knowing about it first (i.e. before trying it).

Presumably your space problems are in data directories, not the system (/root, /etc whatever). Best option might be to move them over first using cp - if you organize things properly, you should be able to do this without taking them whole box down. After clearing some space on the current disk, start looking at LVM conversion.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make an exact copy of a compact flash card Pimple Linux - General 8 02-01-2006 11:37 AM
make exact copy of a hard disk in fedora AQG Linux - Hardware 6 08-07-2005 04:11 PM
How do I make an exact copy of a movie DVD u6jaf Linux - Software 1 07-08-2004 12:45 PM
make an exact copy of Fedora from 1 PC to another lothario Linux - Newbie 1 06-04-2004 12:34 PM
How to make an exact copy of a Hard Disk danishmr Linux - General 15 11-10-2003 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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