• Welcome to Valhalla Legends Archive.
 

Hard Drive Problems..

Started by FaNtAsMa, October 05, 2005, 07:13 PM

Previous topic - Next topic

FaNtAsMa

Hello.  I know that I'm new here, but I'm looking for some rather simple help.  One of my hard drives is about ready to kick the bucket and I need to back the data up to my spare drive.  I'm pretty sure that the drive that's dying is the one that I have windows installed on.  So, my question is, if I copy all of the files from the dying drive that has widnows installed on it to my spare one, is windows still going to run correctly?  If not, is there any other way to back it up without having to reinstall windows?  I normally wouldn't mind reinstalling windows, but the last time I did it, I vowed that if I had to do it again, I was going to switch to linux.

Thanks in advance for any help,
FaNtAsMa

MyndFyre

Funny, installing Windows has never been particularly difficult for me.

I suggest you boot to a linux ISO that gives you access to a root prompt (Slackware's install disc would work).  Then:


dd if=/dev/hda of=/dev/hdb bs=1M --progress


This will make a byte-for-byte copy of your hard drive, including partition table.  Make sure your new hard drive is at least as big, or bigger, as your old drive.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

FaNtAsMa

Quote from: MyndFyre on October 05, 2005, 07:47 PM
Funny, installing Windows has never been particularly difficult for me.

I suggest you boot to a linux ISO that gives you access to a root prompt (Slackware's install disc would work).  Then:


dd if=/dev/hda of=/dev/hdb bs=1M --progress


This will make a byte-for-byte copy of your hard drive, including partition table.  Make sure your new hard drive is at least as big, or bigger, as your old drive.
I will give that a shot.  Would this work with a knoppix boot disc?  Would there be any trouble with it and my NTFS file system?

It's not that installing windows is hard, it's just that doing it over and over again is somewhat annoying.

quasi-modo

Yes, konopix will work
No, this makes an exact copy of all of the data on the first hard drive.

WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

FaNtAsMa

#4
Ok, so I finally got knoppix downloaded and there's a problem.  When I try to do it, it says this:

root@0[knoppix]# dd if=/dev/hda of=/dev/hdb bs=1M --progress
dd: unrecognized option `--progress'
Try `dd --help' for more information.

So, I tried it without the progress and it says this:

root@0[knoppix]# dd if=/dev/hda of=/dev/hdb bs=1M
dd: reading `/dev/hda': Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.000692 seconds (0 bytes/sec)

After this, I tried using the letters as knoppix has them labled.

root@0[knoppix]# dd if=/dev/hda1 of=/dev/hdb1 bs=1M
dd: reading `/dev/hda1': Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 0.000704 seconds (0 bytes/sec)


Does this mean that the harddrive is completely shot?

Newby

Hmm..

Type "cat /etc/fstab"

The /dev/?da or /dev/?db (probably /dev/sda and /dev/sdb) are the hard-drives you want.

Also, aren't there links to your hard-drive partitions on your desktop?

If so, tell us their names.

In the end, you want to dd if=olddrive of=newdrive -bs=1M --progress
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

FaNtAsMa

#6
Quote from: Newby on October 06, 2005, 07:30 PM
Hmm..

Type "cat /etc/fstab"

The /dev/?da or /dev/?db (probably /dev/sda and /dev/sdb) are the hard-drives you want.

Also, aren't there links to your hard-drive partitions on your desktop?

If so, tell us their names.

In the end, you want to dd if=olddrive of=newdrive -bs=1M --progress

root@0[knoppix]# cat /etc/fstab
/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
/dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 auto noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hdb1 /mnt/hdb1 auto noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hdb2 /mnt/hdb2 auto noauto,users,exec 0 0


The drives on the desktop are hda1, hdb1, and hdb2.  Hmm, perhaps I need to reformat my spare hard drive?  I believe that it was formatted to work for Fedora Core 3.

:EDIT: Also, how the hell do I get JavaOp2 running on linux?  I used to know how to do it, but I can't figure it out anymore  :-\

Newby

Ok, now, mount all of those drives (double click the icons on your desktop that say Hard Drive or whatever) and figure out which of the /dev/hd?'s is your Windows drive. My best guess is hda1... but confirm it.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

FaNtAsMa

I've tried mounting them.. it says something about a file system not being present.

Forged

Quote from: FaNtAsMa on October 06, 2005, 08:03 PM
:EDIT: Also, how the hell do I get JavaOp2 running on linux?  I used to know how to do it, but I can't figure it out anymore  :-\

I think it is 'Java filename' but I really don't rember
QuoteI wish my grass was Goth so it would cut itself

MyndFyre

Nononononono!  Don't copy the partitions.  Do NOT copy /dev/hda1.  You need to copy without a number after.

If you copy with partition numbers, you'll copy the data and the file system, but the computer won't know that there is even a partition there unless you've created a partition table already.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

FaNtAsMa

Ok, I restarted knoppix and it's working the way it's supposed to now.. minus the --progress thing.  --progress doesn't seem to be a valid option or whatever of dd.

Newby

I hope /dev/hdb is your new drive... :P
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

FaNtAsMa

#13
Ok, so the copying is done and it seems to have been sucsessful, but when I try to boot with it, I'm getting a no boot disk detected error.  So, I tried booting into knoppix and my second hard drive wasn't detected.  The first one mounts fine and appears to have everything the way it should be.  My second hard drive works fine in my other computer.  Is there something wrong with the IDE cable on this computer?  The motherboard?  Something else?

:EDIT: Ok, got windows working, but I'm not sure for how long.  I switched the new master drive to Master on the jumpers instead of Cable Select and it worked, but they're still making clicking noises when the computer is started.