LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2004, 10:06 AM   #1
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Rep: Reputation: 15
Question Can I Use knoppix to fix Mandrake bootloader?


I cannot get Mandrake (latest version) to boot by it self (reference earlier thread by me). Knoppix works fine. I was wondering if I could somehow fix the bootloader from within knoppix and if so exactly how?

I have two harddrives 1st primary master - maxtor 120gb - win 98
2nd primary slave - IBM 40gb - where Mandrake is


Tried both lilo and grub, neither worked. I even got an error when I tried to create a linux bootdisk from the mandrake installer. I am faily clueless when it comes to command line statements within linux. So step by step would help a lot.


PLEASE HELP

esj
 
Old 01-02-2004, 12:36 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
Exactly what problems are you getting when you try to boot mandrake? Do you get the lilo or grub boot menu? If not, you did not install the bootloader to the mbr which I believe is the default. If you get the boot menu but the bootup hangs when you select mandrake, where does it hang? More info please.
 
Old 01-02-2004, 12:51 PM   #3
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
Im sure that the mbr is changed since win98 does not load automatically.

Depending on the bootloader i get different errors.

Lilo: I get half a screen of 1 and 0
grub: just a black screen


Is there a way to reinstall lilo or create a bootdisk from within linux (knoppix) so that I can boot the already installed mandrake? Again as detailed as possible not to loose me.

thanks
 
Old 01-02-2004, 01:51 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
If you have lilo installed on mandrake, you can reinstall it to the mbr using the chroot command in knoppix. Here's how:

1. Boot into knoppix off the cd;
2. Open a console in knoppix and su to root:

$ su

3. That should bring you to a root prompt("#"). Then mount the partition where mandrake is installed:

# mount /dev/hdx

where 'x' corresponds to your mandrake partition;

4. Run your chroot command:

# /sbin/chroot /mnt/hdx

again, where 'x' corresponds to your mandrake partition;

5. Reinstall lilo:

# /sbin/lilo -v

However, you can do the same thing easier using the mandrake install cd1. Just boot off it and hit F1 when you see the initial install screen which will take you to a boot prompt. There type "rescue" w/o quotes and hit Enter. That will take you to a menu with one option to reinstall lilo. Select that one. I'd recommend doing it this way because it's easier. Both methods do exactly the same thing - they rewrite the lilo to the mbr.

I'm not sure how to do grub as I'm not that familiar with it. If you have grub installed, using the mandrake install cd in rescue mode will reinstall it for you if you follow the above.

However, I think something else is going on here. Try the above and see if it works. If not post back with some hardware specs.
 
Old 01-02-2004, 02:15 PM   #5
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
Ive tried to do it from the mandrake cd before with the exact same results.

Ive read some posts that say you need to have the linux partition set to "active" before it will boot. How can I check the my slave drive (where mandrake is install) to see if it is set to active? The linix drive is an older IBM 40gb drive. Is there a way to check the stability of the drive (through knoppix), make sure there are no bad sectors?

as for hardware specs:

cpu pent 3 866 mhz
384 mb ram
two hard drives
(hda1 to hda3-win98 partitions on 120gb drive; hdb1 to hdb4 -> mandrake partitions)
sblive sound card
nvidia geforce video card
pioneer dvd rom
zip 250 drive
56 k modem
10/100 lan card using with a cable modem


Thanks once again
 
Old 01-02-2004, 02:53 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
Is that zip drive a usb drive or an ide drive? These drive have been known to cause problems, particularly the ide zip drives. Try disconnecting the drive and then redoing the install. I suspect this may be the problem.
Linux does not need to be on an active partition by the way.
 
Old 01-02-2004, 03:01 PM   #7
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
it is an ide drive. Is there a way to keep linux from detecting it without manually disconnecting it. does it just need to be disconnected for the install or will I have to disconnect each time I boot?

Thanks
 
Old 01-02-2004, 03:24 PM   #8
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
You'll have to disconnect it for the install. If that fixes the problem, you can reconnect and try doing a setup for it in mandrake. I think the mandrake install program is seeing it as a hard drive but zip drives don't have an mbr like hard drives do.

If this works, post back before reconnecting the zip drive and I'll try and help you get the zip drive setup.
 
Old 01-03-2004, 11:49 AM   #9
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
Install did not work. Still have the same problem with lilo. Should I try a new distro? Is there a scandisk equivelant in linux that I can use from the rescue disk to make sure the harddisk is still good?
 
Old 01-03-2004, 01:22 PM   #10
Pingue
LQ Newbie
 
Registered: Dec 2003
Location: Right here!
Distribution: Knoppix 3.3 with Win ME 4.90.3000
Posts: 7

Rep: Reputation: 0
I suppose that you are using a dual-boot setup. You know that you can make a Knoppix Bootdisk using mkfloppy.bat from within the KNOPPIX folder on the CD.

Will a Windows bootdisk enable you to get to your D: drive?

I am a Newbie myself so please don't come back with anything technical as regards Linux, as the answer will be ... I don't know!
 
Old 01-03-2004, 02:51 PM   #11
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
I still had the same problem with the bootloaders not working.

Now knoppix will not boot (kernal panic). Is there a way to check the harddrive from the rescue prompt (program like scandisk) to make sure that the harddrive does not have bad sectors on it?

thanks
 
Old 01-03-2004, 03:18 PM   #12
Pingue
LQ Newbie
 
Registered: Dec 2003
Location: Right here!
Distribution: Knoppix 3.3 with Win ME 4.90.3000
Posts: 7

Rep: Reputation: 0
I think you can use: scandisk /all /surface , from your Windows bootdiskette.

You can also use: scanreg /fix /opt , to repair and optimise the registry, but you probably know all this.

The kernal panic is sometimes fixed by removing the CD, booting to Windows and then re-booting to the CD.
 
Old 01-08-2004, 08:28 AM   #13
esj
LQ Newbie
 
Registered: Dec 2003
Location: Cary, NC
Distribution: Mandrake 9.2 with Win 98
Posts: 21

Original Poster
Rep: Reputation: 15
Ok still no luck!

I tried fdisk and scandisk from the dos prompt and neither can see my linux drive.

Knoppix can see all my drives. Does it have any disk tools that I can use to check my linux drive out?


Also still no luck with the bootloader -- any additional hints/tips/suggestions are appreciated!


Thanks
 
Old 01-08-2004, 08:39 AM   #14
Pingue
LQ Newbie
 
Registered: Dec 2003
Location: Right here!
Distribution: Knoppix 3.3 with Win ME 4.90.3000
Posts: 7

Rep: Reputation: 0
To be honest I really don't know. I would start a new thread at this juncture. I am still learning myself and find that Knoppiw won't see my Eicon Diva ADSL USB modem, so I'll have to try a Thompson SpeedTouch Ethernet modem.

Do you know if you can INSTALL both a USB modem and an Ethernet modem under Windows at the same time to be able to use one of them (ADSL USB modem) with Windows and the other (Ethernet modem) with Knoppix Linux?

Damn it if when I tried by ISP went down and then I couldn't connect (I thought) because they had reverted by password to the original.

Arrggh!
 
Old 01-08-2004, 12:10 PM   #15
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
Your problem is really puzzling. Gave it a little thought and wondered if you are running something in win98 that might be causing problems re the mbr. I know if you have GoBack installed it will cause problems. You have to disable it if you want the boot loader to work properly.

As far as checking the hard drives, you can download the diagnostic programs from the manufacturers' websites. Both maxtor and IBM have them. They are much better and much more thorough than any windows disk utilities.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootloader problem. I know how it was caused, but I dont know how to fix it! Eerath Linux - General 1 07-24-2005 11:30 AM
How can I fix the bootloader? madrat Linux - Software 5 06-01-2005 04:43 PM
IPAQ 3970 - damaged bootloader - how to fix it ? ds2k4 Linux - Laptop and Netbook 4 12-29-2004 11:29 AM
Installing Lilo bootloader from knoppix CD for LFS nmares Linux - Software 3 10-07-2004 09:45 AM
Fix the Bootloader or Reinstall the System? Sadie Newlinux Mandriva 6 08-26-2003 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration