LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-24-2004, 05:52 PM   #1
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Rep: Reputation: 30
Simple Mandrake/Grub question


I have known how to edit menu.lst and I am comfortable doing that. It is easy.
But I have a simple question. One that I never thought of before until I had a small problem when I used Harddrake to play around with my partitions. If one needs to re-install the bootloader with the first disk of Mandrake 10.0 Official, by hitting the f1 key and then typing in rescue. Then re-installing bootloader.. Does it read the fstab to know what it is installing? Or is there another file it reads so it knows? Just curious.



Webwolf
 
Old 09-25-2004, 11:35 AM   #2
pongmaster
Member
 
Registered: Jul 2004
Location: London, England
Distribution: Mandrake 10.1
Posts: 300

Rep: Reputation: 30
If you re-install the bootloader from the CD, it'll install lilo and it'll *probably* just re-install lilo so that you can get Mandrake up and running. I say probably because when I did this it re-installed correctly but didn't detect my other Linux partitions - which were listed in the /etc/lilo.conf file. You'll probably have to add any other partitioning info by hand when you're back in Mandrake.
It will however list and load any windows partitions you have.
 
Old 09-25-2004, 02:53 PM   #3
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
The reinstall boot loader option is a kind of the same thing as selecting the default options during a normal install. The scripts may be buggy. I say this because "Restore Windows Boot Loader" fails on a 2-MBR hardware setup and I end up doing dd if=aldebaran.img of=/dev/hda manually.
 
Old 09-25-2004, 08:52 PM   #4
webwolf70
Member
 
Registered: Feb 2004
Distribution: Windows XP. I gave up with Linux & I left LQ.
Posts: 502

Original Poster
Rep: Reputation: 30
So it reads lilo.conf only then? Does it read fstab or anything else?



Webwolf
 
Old 09-26-2004, 01:27 PM   #5
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
As I said, the Reinstall bootloader option should do the same thing that's done during the install process when you are presented with the default options for the bootloader, including a default bootmenu. It basically seeks all HDD's fr primary partitions. It then checks their type, which is generally a Linux Native or a Win partition. In the latter case, the tool adds a windows label to that partition followed by a number (so if you have a total of 2 primary windows partitions (not necessarily containing the /Windows dir) the tool ads windows1 and windows2 as options for the bootloader).

With the Linux partitions is more difficult... there are lot of files, so it checks and searches for the /boot directory (either in a standalone partition or as a /boot dir in a primary partition).

This way your default boot options are created. Or, at least this is how I would've done it . The principle is the same. Why read data (posibly corrupt) from an existing install when you ended up booting from a rescue CD? Could it be because the user screwed up something in the config files and can't get the bootloader? So, the "failsafe" way would be to simply copy-paste the auto-detection routines from the installer to this tool, so you know you got more chances to get it up. LILO is used because it's considered failsafe. GRUB is more picky with the BIOS
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on GRUB with SuSE, Mandrake and Windows... ronkymac Linux - Software 1 01-06-2005 01:50 PM
simple Apache Mandrake question lang40 Linux - General 2 10-07-2003 12:25 AM
grub.conf simple question rusium Linux - Hardware 4 05-10-2003 11:41 PM
Simple Grub question mpooley Linux - Software 1 11-22-2002 09:03 PM
Simple Question: XP and Mandrake 8.2 AdamRankin Linux - Software 5 07-11-2002 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:48 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