LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-13-2005, 11:01 PM   #1
glenn_roth
LQ Newbie
 
Registered: Mar 2005
Distribution: Mandrake 8.1 (current-switching to Debian)
Posts: 7

Rep: Reputation: 0
Question LILO Problems With Mandrake 8.1 and Win2K Dual Boot


I have recently installed Mandrake 8.1 onto my Win 2K machine. I initally attempted to get the windows boot loader to recognize both OS's and give me a choice. That didn't work, so I attempted to install LILO. I had some troubles from that point on.
I can get into Mandrake now, but I can't get into windows anymore. I have tried booting with a Windows Boot disk. I get to the C: drive, but can't get a file listing.
When I do a dir (at the dos prompt that the boot disk gets me to), it says that the file is not found... it then says the volume name is w2k_linux, which is actually the name of my last partition, not the first one where the W2k OS is located. I have tried using the W2K installation disk to repair the installation, but it can't seem to find any windows files on the HD. It asked for an emergency disk, but I forgot to create one before I installed LILO. - Mistake

When I load up Linux, I can mount all the HD partitions but the first one where the Windows OS resides. Fdisk has the first partition (hda1) listed as an NTFS filesystem, the second one is an extended partition (LBA), since I have one 40 gig HD with six partitions. The rest of the filesystems match what I expect. When I try to mount the first partition (mount -t ntfs /dev/hda1), it returns that it is the wrong fs type, a bad option, or bad superblock on /dev/hda1.

If I had to guess, I have messed up the MBR somehow, and now it can only get to Linux. Is there a way to repair that so I can get back to windows? I have thought of a couple things to try, but I am not sure enough to forge off on my own, given my track record.

I could:
1) Start over, formatting that first partition and re-installing windows. This is not terrible, since I was using a separate partition for my documents and files, and that is still mountable, and fine. the one issue is that I do have my tax files for this year on there, and I would like to at least get those off. Except for that and the hassle of starting over from scratch, this isn't a bad option in my view.
2) I could use a rescue disk from a different w2k machine. Anyone know if that disk is unique to a machine or just general files?
3) Regenerate the MBR somehow... I am not sure about how to do this.
4) Make LILO recognize W2K. The lilo.conf file entry for W2K is:

other=/dev/hda1
label=win2k
table=/dev/hda

I am not sure what could be missing. The lilo install was somewhat cryptic. I couldn't even choose between loading it on the MBR or the first linux partition. I am afraid that I have narfed up the HD, but I know the windows stuff is still there.

I have another computer, and may resort to moving the HD to that one, and using some software to try and recover the HD.

Any help/advice would be greatly appreciated!

Thanks,

Glenn
 
Old 03-14-2005, 02:08 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
If you have an old windows/dos boot disk, boot with that and type
Code:
fdisk /mbr
Failing that, I think you can boot from the WinXP CD and run
Code:
fixboot or
fixmbr
I can't remember which exactly it is. That'll restore the MBR so you can boot Windows.

HTH
Baldrick
 
Old 03-14-2005, 06:05 AM   #3
floppywhopper
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Mageia , Centos
Posts: 643
Blog Entries: 2

Rep: Reputation: 136Reputation: 136
I'm not sure if Mandrake 8.1 will read Win 2k files but it should at least see them and using Konqueror be able to move them from your Win C drive to your Win D drive, you might have to log in as the root user.

It looks like a case of format C, reload Windows etc etc and then reload Lilo by using the Mandrake installation disk as a rescue disk.

hope this helps
floppy
 
Old 03-15-2005, 10:28 PM   #4
glenn_roth
LQ Newbie
 
Registered: Mar 2005
Distribution: Mandrake 8.1 (current-switching to Debian)
Posts: 7

Original Poster
Rep: Reputation: 0
I have tried mounting the partition where the windows OS is located, and it seems that something is wrong there, and it can't access it. I haven't tried to get to the same partition in X, but I don't expect that will work much better.
It is interesting that I can mount all the other partitions on the drive (NTFS or FAT).. just not that first one. Are there any LINUX packages that can read a damaged partition and extract files from it? There are such programs for Windows. This is an NTFS partition, but Linux should be able to read those. I think the MBR is messed up... The really funny thing is that LINUX can recognize all the partitions that I have on there. It can't read the first one, but it knows it is NTFS formatted. When I boot from the Win2K disk, it can't recognize the first partition at all. It declares it unpartitioned space. Strange...
 
Old 03-16-2005, 02:17 AM   #5
floppywhopper
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Mageia , Centos
Posts: 643
Blog Entries: 2

Rep: Reputation: 136Reputation: 136
Download the Penguin Sleuth kit

http://luge.cc.emory.edu/psl.html

and run the CD
its a knoppix with special recovery tools
must get it myself

If this helps
drop the mod unSpawn a note to say thanks
cos thats where I got it from
at
http://www.linuxquestions.org/questi...threadid=45261
post 5
unspawn moderates the security section

hope this helps
floppy
 
Old 03-16-2005, 05:29 AM   #6
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Quote:
I think the MBR is messed up...
What happened when you did the fdisk /mbr?

Baldrick
 
Old 03-18-2005, 12:47 AM   #7
glenn_roth
LQ Newbie
 
Registered: Mar 2005
Distribution: Mandrake 8.1 (current-switching to Debian)
Posts: 7

Original Poster
Rep: Reputation: 0
Talking THANKS!!!

Well, I just want to say thanks to all the contributions to my question.

Baldrick, I tried fdisk /mbr, and even used my Win2K disk to boot from and then tried the FIXMBR routine there. Neither had any effect, but there was also a FIXBOOT option on that disk. After some trepidation and worry, I tried that one. It checked the disk, gave a message that said that something was screwed up, checked the first partition, realized it was NTFS, then re-wrote the boot sector. I rebooted, and EUREKA! It booted to Windows. Now, obviously, I can't get to linux through LILO, but that is an issue to tackle at another time.

Floppy, thanks for the tip on the KNOPPIX version with the extra disk features. I still think I will try to get ahold of that one, since it could come in VERY handy.

Thanks again, problem solved, and fortunately I didn't have to reformat or reinstall... everything is back to the way I left it. Now I just have to get LINUX and W2K to coexist on the HD happily.

Thanks!
 
  


Reply



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
lilo/win2K dual boot probs granny Linux - General 2 07-18-2003 01:01 PM
Dual Boot Win2k and Mandrake 9.1 mib Linux - General 9 07-05-2003 10:10 AM
LILO problems: Mandrake XP dual-boot with SCSI/IDE venky Linux - General 1 03-30-2003 07:30 AM
Mandrake 9.0 and Win2K Dual Boot BatakZ Linux - General 2 02-20-2003 10:51 AM
Dual boot: Win2k and Mandrake 8.1 mjgeiger Linux - General 1 03-21-2002 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 PM.

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
Open Source Consulting | Domain Registration