Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-24-2004, 06:26 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 11

Rep: Reputation: 0
Hard drive duplication

I know this isn't a normal use of Linux, but I need some help, so here goes.
I'm working on my mother's computer, a straight windows xp installation.
This computer contains two hard drives, an eight gig and a 40 gig. The eight gig is dying; sounds indicative of failure, and excess heat. What I want to do is repartition the 40 gig into two partitions (which I have done, have one that is slightly bigger than the 8 gig), image the 8 gig hard drive to the new partition and make it bootable.
I have attempted DDing the partition over, seems to be correct. How can I make it bootable?

Some specifics:
Used Norton's to defrag, then QTParted to repartition.
Swapped the master / slave settings on the hard drives, so the 40 gig is now hda.
QTParted has a ~30 gig partition in the front, and the eight gig in the back.
The computer's bios supports LBA, so it *should* be able to boot from this back partition, if the documentation I have read is correct.
When using dd, the exact line I used is: dd if=/dev/hdb1 of=/dev/hda2.

Thanks guys.
Old 12-25-2004, 10:35 AM   #2
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
You could use fdisk to set that partition bootable I suppose. Let me know if that works for you if you decide to try it.
Old 12-25-2004, 10:57 AM   #3
LQ Newbie
Registered: Aug 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I thought that using "make active" under grub did that.. Which I've done.
Still doesn't work.
Thanks though.
Any other ideas?
Old 12-25-2004, 11:12 AM   #4
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
post the O/P of

fdisk -l /dev/hda
fdisk -l /dev/hdb

Old 12-25-2004, 10:12 PM   #5
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,894

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Did it not give you the option to make a bootable partition?
If not, I'd suggest you use cfdisk to remake the partition (it provides a nice screen with options listed at the bottom. use the arrow keys to select the options you want, such as 'bootable').
Using dd to copy the OS over can be dangerous. If you interrupt it, you can do irreversible damage to the OS (as in, make it non-bootable). My suggestion would be to investigate DAR. Use DAR to make a full backup of the partition you want to move, then restore it to the new partition.
DAR doesn't care about the size of the partition copied, or the size written to (unless it's too small). It takes some study to get the backup script configured correctly, but once it's done, WOW! It'll make compressed backups (each file individual; if one is hosed, the rest are still usable).
Testing, listing, restoring are all as easy as one command line. Dar even gives you the option to include a static version of itself in the backup, in case you should need it to restore your system.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
hard disk duplication sharkzf6 Linux - Software 13 02-02-2005 01:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration