LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-21-2003, 03:20 PM   #1
n1wil
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
Question moving to a new hard drive


Hi,

thanks for reading my post. I have a red hat system running red hat 7.3. It is currently running on a 6 GB hard drive, and uses GRUB for the boot loader on the MBR. I have purchased a new 80GB hard drive and would like to "move" the whole filesystem from the old drive to the new drive.

Is there any easy way to do this?

There are a lot of user accounts, web applications, and MySQL databases living on the 6GB drive now, and I'd hate to loose all that data/configuration/work.

the new drive is still in the box and not formatted in any way.

If someone could please help, that would be great.

Thanks,


~ John
http://wizworks.net
SCO and M$ can kiss my ass!
 
Old 05-21-2003, 03:24 PM   #2
TheFishingGeek
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
Do a man on dd. It's a sector-by-sector transfer from one drive to another. Works like a charm.
 
Old 05-21-2003, 03:28 PM   #3
TheFishingGeek
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
Basically it works like 'dd -if /dev/hda -of /dev/hdb' where hda is the source and hdb is the destination. It creates the partitions, everything. I do believe that you need to do something to move your lilo/grub to hdb, though. Don't recall what that is, but I'm sure someone more guru that me can help you there.
 
Old 05-21-2003, 03:33 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
dd isn't that fexible - you would be better with partimage:
http://www.partimage.org/
 
Old 05-21-2003, 03:38 PM   #5
TheFishingGeek
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
True, dd is just a "copy entire hard drive from A to B" sorta thing. I was able to move ext3, NTFS, and FAT32 partitions from a 20 to a 30 gig awhile back. It's slow (couple hours) but it worked great and works well. No purdy interface, though.
 
  


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
Moving Hard Drive Files Zawi Linux - General 10 08-17-2005 12:08 PM
Moving Hard Drive After Install PiscisBos Linux - Software 2 02-14-2005 01:14 AM
Moving Hard drive between PC's the_imax Linux - Hardware 13 11-20-2004 01:55 PM
Moving partitions from one hard drive to another robthebob Linux - Software 2 07-15-2004 05:47 AM
moving my hard drive illtbagu Linux - General 2 02-08-2003 05:56 PM


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