LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2009, 02:04 PM   #1
Kurt0316
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Moving to new boot drive


I am getting messages that my primary/boot drive is dying so I want to move/clone everything on a new drive. What is the best way to do this?

Thanks
 
Old 12-26-2009, 03:44 PM   #2
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
Quote:
Originally Posted by Kurt0316 View Post
I am getting messages that my primary/boot drive is dying so I want to move/clone everything on a new drive. What is the best way to do this?

Thanks
I guess it depends on what you mean by "best". You will probably have to use a Linux boot CD/DVD to do the copying.

Here are some choices.

You can use the Linux "cp -a" command. You have to create partitions on the new hard disk and format them first. Use a Linux boot CD/DVD to create the partitions, format the partitions and copy files. Use the "chroot" command to set the new Linux root partition as the root filesystem and then install your boot loader software. If some files on the old hard disk can't be read you will have to copy folders selectively and decide if it's worth trying to copy to OS or simply reinstall that.

You can use the Linux "dd" command to copy the entire hard disk or individual partitions. The drawback is that it will not change the size of the partitions. If your new disk is larger then you have to resize the partitions or create new ones afterward. If your new disk is smaller you have to shrink each partition after copying or do other things to make them fit. This doesn't work well if your entire old hard disk can't be read without errors.

You can use partition copying software such as Ghost, Paragon Hard Disk Manager or one of the free programs. As long as all of your old hard disk can still be read these should work fine. If you have errors, then you might have to use the "cp" command and figure out if the unreadable files are important.
 
Old 12-27-2009, 09:13 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,473
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
Hi,

Welcome to LQ!

Quote:
Originally Posted by Kurt0316 View Post
I am getting messages that my primary/boot drive is dying so I want to move/clone everything on a new drive. What is the best way to do this?

Thanks
You will find partimage on 'SystemRescueCD', 'UBCD' and 'RIP' LiveCD to use for copy, moving of partitions.

You can take a look at the 'Tools, Recovery, Diagnostic, Emergency' section of 'Slackware-Links' for other tools. More than just SlackwareŽ links!

 
Old 12-28-2009, 08:34 AM   #4
Kurt0316
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Moved to new boot drive

Thanks Erik and onebuck. This pointed me in the right direction and I got it done.
 
  


Reply

Tags
clone, copy, harddisk, hdd, migrate


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 FreeBSD hard drive to new computer - won't boot DJOtaku *BSD 3 01-13-2009 01:36 PM
Moving FreeBSD hard drive to new computer - won't boot DJOtaku *BSD 2 01-13-2009 10:33 AM
Moving grub from external drive to internal drive krunaldsoni Linux - Newbie 4 11-24-2008 01:07 PM
Question about moving /boot partition to new drive rogun64 Linux - Newbie 1 02-05-2006 08:17 AM


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