Author Topic: Rescuing HDD [SOLVED]  (Read 10860 times)

Riki

  • Guest
Re: Rescuing HDD [SOLVED]
« Reply #105 on: August 09, 2009, 10:16:56 AM »
Quote
although I must say that Old-Polack's way of giving you step-by-step instructions is easier to follow.

(The video link gives you so much information in so short a time that most people won't be able to remember half of it.)

Also blackbird, the disk I have is of XP Pro and the version on the laptop is XP Home. I've tried it but at some point it warned me that I could lose the rest of the partitions, i.e. PCL. Anyhow, I'll  go back to the video and see if I can work something out. Thanks for your assistance.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6849
  • MLU
Re: Rescuing HDD [SOLVED]
« Reply #106 on: August 09, 2009, 10:50:20 AM »

Thanks JohnBoy. Good try but we are back to the "missing or corrupt" HAL.DLL which I have replaced several times to no avail. I am now finding myself with 21GB of useless space! I may have to start all over again.   :'(

Just shows that (hd0,0) is the correct one to use.

After that it is a matter of repairing the Win install.   ;)

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: Rescuing HDD [SOLVED]
« Reply #107 on: August 09, 2009, 11:25:52 AM »
Quote
although I must say that Old-Polack's way of giving you step-by-step instructions is easier to follow.

(The video link gives you so much information in so short a time that most people won't be able to remember half of it.)

Also blackbird, the disk I have is of XP Pro and the version on the laptop is XP Home. I've tried it but at some point it warned me that I could lose the rest of the partitions, i.e. PCL. Anyhow, I'll  go back to the video and see if I can work something out. Thanks for your assistance.

As long as you are just running the recovery console, to expand the hal.dl_, and doing the boot.ini replacement, it shouldn't make any difference.

That's a pretty good video. The part about the boot.ini makes sense, as your Windows was on /dev/hda2, and now is on /dev/hda1, it's probably looking for the boot files in the wrong place. That's probably why it warns about the partitions too. You can edit the boot.ini with Windows notepad, if you could only get Window running. ;D I used to multi-boot Windows, so if one failed, I could fix it from a running one, same as I do now with multi-booting Linux.

You can do it with kate also, but it would need to be done with Windows/DOS line ends. (Line ends are coded differently in Windows, than they are in Linux.) If you open the file with kate, under Tools --> End of Line check Windows/DOS. You could try that to see if it shows being on partition 2, and if so change the 2 to a 1, then save the file, and try to boot Windows again. It may not actually need a new HAL.DLL. What's the worst that could happen? You'd have to do it again, from the recovery console, as shown in the video.

If you mounted the Windows partition, you could use cat to see the contents of boot.ini, without actually opening it in a text editor. At least you'd know whether it needed to be edited or not.

Worst case, under the circumstances, would be to do it as in the video, along with the fixboot. Watch the video a few times, and take detailed notes, if it comes to that.

« Last Edit: August 09, 2009, 11:28:50 AM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Riki

  • Guest
Re: Rescuing HDD [SOLVED]
« Reply #108 on: August 09, 2009, 11:49:19 AM »
Contents of boot.ini:

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptOut
C:\CMDCONS\BOOTSECT.DAT="Consola de recuperaci�n de Microsoft Windows XP" /cmdcons

Shall I change (2) to (1) with kate?
« Last Edit: August 09, 2009, 11:55:52 AM by Riki »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: Rescuing HDD [SOLVED]
« Reply #109 on: August 09, 2009, 12:02:27 PM »
Contents of boot.ini:

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptOut
C:\CMDCONS\BOOTSECT.DAT="Consola de recuperaci�n de Microsoft Windows XP" /cmdcons

Shall I change (2) to (1) with kate?

That would be my first try at a fix. Do you have the partition mounted rw, so you can write to it?

Also note there are two 2s that need to be changed to 1s. Got to change them both. ;)
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Riki

  • Guest
Re: Rescuing HDD [SOLVED]
« Reply #110 on: August 09, 2009, 12:09:03 PM »
Done:

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptOut
C:\CMDCONS\BOOTSECT.DAT="Consola de recuperaci�n de Microsoft Windows XP" /cmdcons

Riki

  • Guest
Re: Rescuing HDD [SOLVED]
« Reply #111 on: August 09, 2009, 12:33:34 PM »
WEEEEEEEEHEEEEEEEEEE!!!!!!!!!!!!!

Got everything back!  ;D :D :)

On rebooting XP ran CHKDSK, performed some modifications (something about 17808, I think, whilst I downed a couple of glasses of vino) and IT'S ALL SORTED!!! Over the moon. Thank you so much OP and all you guys that have helped me to get over this massive hiccup. More than 2 weeks struggling....I'll sleep well tonight.
« Last Edit: August 09, 2009, 12:36:02 PM by Riki »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: Rescuing HDD [SOLVED]
« Reply #112 on: August 09, 2009, 02:48:25 PM »
WEEEEEEEEHEEEEEEEEEE!!!!!!!!!!!!!

Got everything back!  ;D :D :)

On rebooting XP ran CHKDSK, performed some modifications (something about 17808, I think, whilst I downed a couple of glasses of vino) and IT'S ALL SORTED!!! Over the moon. Thank you so much OP and all you guys that have helped me to get over this massive hiccup. More than 2 weeks struggling....I'll sleep well tonight.

I'm grinning like the old Cheshire cat, over that bit of news. Good on you for sticking it out. ;D ;D

I really like the simplicity of using kwrite for most of the text editing in Linux, but love kate for having the extra features to be able to do something like this. That was a whole bunch easier than using the rescue console bit. ;D 

I'll bet you'll remember kate, for a long time. She's a sweetheart, in a pinch.  ;D ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Grisen

  • Full Member
  • ***
  • Posts: 104
Re: Rescuing HDD [SOLVED]
« Reply #113 on: November 30, 2010, 10:54:13 PM »
You've built up a tremendous body of knowledge here in the forum OP.  I appreciate you once again!  (butt out of a sling on this hal.dll on a new dual boot).

You're like a Wiki in yourself (okay, okay, let's not get too carried away)  =)

Offline dvhenry

  • Full Member
  • ***
  • Posts: 106
Re: Rescuing HDD [SOLVED]
« Reply #114 on: December 17, 2010, 08:22:44 AM »
Hi,old-polack, you have  given an impressive and informative guide to solving this problem,  I've bookmarked it for future reference.

Out of interest, and for those who may read this thread and are in the position where there fdisk -l output does not include partitions and start and end cylinder info (a situation I had a while ago ). TestDisk http://www.cgsecurity.org/wiki/TestDisk Is a useful tool, a basic run through is given here http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step ,Although it talks about windows file systems, and is not specific to this situation, it is still a basic run through.

TestDisk has proven to be a very useful tool in a number of situations, for example, if the installer says the partition can't be resized to install linux on a system with only windows, and fdisk -l sees the file system as SFS (these days that means windows "dynamic disks" or LVM) Then TestDisk can be used to convert the disks to "basic", allowing linux to be installed. A guide is here http://mypkb.wordpress.com/2007/03/28/how-to-non-destructively-convert-dynamic-disks-to-basic-disks/ I use the Parted Magic liveCD for all of this.
« Last Edit: December 17, 2010, 04:52:34 PM by dvhenry »

uncleV

  • Guest
Re: Rescuing HDD [SOLVED]
« Reply #115 on: December 17, 2010, 10:51:03 AM »
Hi,old-polack, you have  given an impressive and informative guide to solving this problem,  I've bookmarked it for future reference.
Feel like writing it on the wall?
Yeah we know this feeling about old-polack posts ;)

Offline dvhenry

  • Full Member
  • ***
  • Posts: 106
Re: Rescuing HDD [SOLVED]
« Reply #116 on: December 17, 2010, 03:21:17 PM »
Quote
Feel like writing it on the wall?
Yeah we know this feeling about old-polack posts Wink
Yep, Until reading this thread I would have ( and did ) look straight past fdisk as a way to fix a problem like this, believing the tool to be to basic to handle it, this is an eye opener.
« Last Edit: December 17, 2010, 03:24:32 PM by dvhenry »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11689
  • ----IOFLU----
Re: Rescuing HDD [SOLVED]
« Reply #117 on: December 17, 2010, 03:41:11 PM »
Quote
Feel like writing it on the wall?
Yeah we know this feeling about old-polack posts Wink
Yep, Until reading this thread I would have ( and did ) look straight past fdisk as a way to fix a problem like this, believing the tool to be to basic to handle it, this is an eye opener.

Fdisk has been one of my favorite Linux toys, since my first Linux installation, going on 12 years ago, come March. ;D

I also like testdisk, very much too.
« Last Edit: December 17, 2010, 03:43:04 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline dvhenry

  • Full Member
  • ***
  • Posts: 106
Re: Rescuing HDD [SOLVED]
« Reply #118 on: December 17, 2010, 08:53:01 PM »
Quote
Fdisk has been one of my favorite Linux toys, since my first Linux installation, going on 12 years ago, come March. Grin

I also like testdisk, very much too.

I find the clear and concise explanations and examples you have given to a real life problem easier to relate to than the man or info pages, nicely done!  
« Last Edit: December 17, 2010, 08:59:47 PM by dvhenry »