Link to home
Start Free TrialLog in
Avatar of hnguyenhn
hnguyenhn

asked on

Very urgent !! RedHat7.0 and WinNT4

Hi,
I'm getting a terrible problem, let me explain the situation. I have a hard disk with this configuration :
NTFS - WiNT4(
FAT- nothing
What I did is I installed RH7.0 on FAT area, actually I deleted FAT and created a linux native partition, the installation was successfula( I didn't install LILO, I boot linux by floppy disk )  and then I can run both linux and winnt. I want to add some more components of linux so I did install few times.
But yesterday after installing linux as I did usually, I want to run WinNT then I remove foppy disk and reboot but there's something wrong, the screen displayed "LI" and my PC hung at there, that's all it says. I remember I did not install LILO, how come it display "LI".
After all I have tried few solution in sequence :
1. Boot my PC by WinNT installation CDROM disk, choose REPAIR option, but it still display "LI" after reboot, OK I tried the second method
2. Install a fresh winnt on NTFS partition, but it still display "LI" after reboot, OK I tried the third method
3. Install a fresh WinNT on linux partition( first I delete linux partition and create a FAT when installing winnt), It's no point, the same problem when reboot. OK tried the last one
4. Re-installed linux but choose to install LILO, after reboot and can run linux but if I chose WinNT then it display "Loading DOS" and hung at there.

What can I say after trying? I have a lot importance data on NTFS, I want to get it back with winnt. Please putting any solutions that you think it will work

Thanks a lot
Hieu


Avatar of vsamtani
vsamtani

First, make sure you have a working boot disk that can at least get you into the linux system. Keep this in a safe place. From what you said above, I am assuming that you now have lilo on your disk and it can boot into linux bot not NT for you. If so, boot off the hd, go into linux and open the /etc/lilo.conf file for editing, having first made a backup copy of it. Try adding a line

lba32

near the top of the file, and before the Winnt/Dos section of the file, save the file and try to reboot into NT.

Vijay
One really easy way to fix this is just to restore your NT MBR .. If you have access to another NT machine, boot off of your linux installation disk, or even the installation floppy, then on the NT machine grab the first 512 bytes off of your hard disk with the following command;

mount /dev/fd0 /mnt
dd if=/dev/hda of=/mnt/mbr.raw bs=512 count=1

You can use any ms dos formated disk. Then go back to your NT machine and do the oposite;

mount /dev/fd0 /mnt
dd if=/mntmbr.raw of=/dev/hda bs=512 count=1

That should restore you NT MBR (Master Boot Record) and you should then be able to boot NT. All this depends on your having access to a working NT system though. If someone out there has access to an NT system then then can do the first dd command and then attach the file to you via email or something. Any way it should work.

I'm afraid with all the shuffling you did with OSs before, that you may have damaged it beyond repair though. NTFS is sensitive about how you play with it.

If this does work, I think the best thing you can do is mount your NTFS partition from Linux, back up all your data, completely reformat your disk and install from scratch. ;)
ASKER CERTIFIED SOLUTION
Avatar of Member_2_263671
Member_2_263671

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That last one was funny. BS. hehehe... Sorry, had to laugh. Yes, `fdisk /mbr` will also re-write your MBR.
Avatar of hnguyenhn

ASKER

Thanks all you guys
I've chosen hendrik999 because it's easest way do do. Yes, it works, even I don't have to reinstall WinNT. Now I can run linux from floppy disk or WinNT from HD.

Great works
Hieu