LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Book loader question... (https://www.linuxquestions.org/questions/linux-newbie-8/book-loader-question-426449/)

Saurian 03-19-2006 10:41 PM

Book loader question...
 
How do I get rid of a boot loader (GRUB) located on the MBR of my master hard disk? Or how do I make it recognize that Ubuntu is no longer there, and make it point to PCLinux (on slave drive) and then have it recognize my windows partition on the master drive?

PCLinux is currently using LILO to boot. How do I set it up to recognize my windows partition on the master hard disk.

TruongAn 03-19-2006 11:56 PM

My poor english make it difficult to read your post please post the following information, what are u using ? lilo or grub? and what boot loader you are willing to use?


In case you are using grub
To install grub, type grub to get the grub console
in the grub console type
[code] root (hd0,0)
setup (hd0)
[code]
in this example: hd0 is the disk whose MBR will store grub and (hd0,0) is the first partition on hd0 which I want to install my grub config file and so on, change the command to best fit you PC

To remove ubuntu, open /boot/grub.conf
Delete the section for ubuntu

Saurian 03-20-2006 07:49 AM

Ubuntu is deleted, which is part of the problem. So how do I then add winxp and pclinuxos to the boot loader? I have to hitF8 on startup to make the bios go to the boot menu, select to have it boot off of my slave drive which then boots into LILO and allows me to boot into PCLOS.

How would I go about adding WinXP to my LILO bootloader and pointing it BACK to the master hard drive disk where my winxp partition resides?

Saurian 03-20-2006 04:49 PM

I'm going to copy what is in Lilo.conf right now:

boot=/dev/hdb1
map=/boot/map
default="pclinuxos"
keytable=/boot/livecd.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.6.12-oci6.mdk-i586-up-1GB
label="pclinuxos"
root=/dev/hdb1
initrd=/boot/initrd-2.6.12-oci6.mdk-i586-up-1GB.img
append="noapic nolapic acpi=ht nomce psmouse.proto=imps splash=silent"
vga=788
read-only


That is all that is in it. So what do I have to add where to make it load WinXP in Lilo? How do I gain access to and write over the master boot record of my first hard disk. Is there any button that I can hit in the lilo opening screen which makes it look for other installed operating systems and automatically add them?

Do I have to add something about booting from /hda1? I'm new to the bootloader thing. I think I could figure out how to do it if it were a linux distro, but how do you do Windows?

saikee 03-20-2006 06:59 PM

If your Windows is in master disk say first partition then it will be hda1. The entries needed in /etc/lilo.conf are
Code:

other=/dev/hda1
label=My_Windows

To get Lilo in the slave to boot the master disk, just boot to PCLinux log in as root ( or superuser) and type in terminal
Code:

lilo -b /dev/hda
For extra details/explanations take a look at the last link of my signature.

Anything else?

Saurian 03-21-2006 04:51 AM

Thanks! I had a buddy of mine help me last night on he phone and we got Windows hooked up in there. Though, since i finally got around to ordering my new hard drive... it might have been a wasted effort, I have a whole lot of new fun to go through. Or torture.

ariestruong 03-22-2006 08:19 PM

I have a problem with boot loader. I want choice Windows as default OS when start, I goto boot/grub/menu.lst or grub.conf but when I open it the it warn I can't open. How to open it and I can see my others partitions but can't read. Why ? Please help me because Iuse Linux the first time

Penguin of Wonder 03-22-2006 10:03 PM

What are you trying to open grub.conf with. Open it with vim or nano as root user so you can save your changes.

saikee 03-23-2006 02:26 AM

To see and edit a system-related file you need admin privileges.

This can be obtained by logging in as root but some distros, especially theose from the Debian familiy, disallow it.

Alternatively you can click terminal or console, type "su" and supply the root password.

If that fails because implemented security then you can try to preceed every command with "sudo".

ALways edit /boot/grub/menu.lst to tell Grub what you need. This is the official channel.

In Grub's menu.lst there is a "default" statement to tell Grub to boot the system after a user fails to make up his/her mind when the time specified in the "timeout" statement has been exceeded. Altering the number after "default" is all you need to choose which system to boot up. Just remeber Grub counts from 0 so "default 0" means defaulting to the 1st system.

BinJajer 03-23-2006 02:38 AM

grub.conf is a symlink to menu.lst. Edit the latter one always.

Tinkster 03-23-2006 12:38 PM

Please do not post more than one thread on the same topic. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...d.php?t=427232


All times are GMT -5. The time now is 09:33 AM.