PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 07:32:26 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Changing grub loader to another hdd  (Read 1090 times)
markovski
Jr. Member
**
Offline Offline

Posts: 12


« on: July 07, 2010, 07:40:32 AM »

I have two HDD`s. On the first i have installed Windows, on the second PCLOS. When i installed linux, set the grub loader to master boot from the windows HDD.
So now the Grub is installed on the Windows HDD. How to change it to the linux HDD?
Logged
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9694


----IOFLU----


« Reply #1 on: July 07, 2010, 08:08:48 AM »

I have two HDD`s. On the first i have installed Windows, on the second PCLOS. When i installed linux, set the grub loader to master boot from the windows HDD.
So now the Grub is installed on the Windows HDD. How to change it to the linux HDD?


http://www.pclinuxos.com/forum/index.php/topic,62786.msg508062.html#msg508062
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
markovski
Jr. Member
**
Offline Offline

Posts: 12


« Reply #2 on: July 07, 2010, 10:17:05 AM »

Ive done that what you posted, grub loader now shows without the fancy graphics(the pcolos image).
There are entries but none of them work like they should. This is the menu.lst in the Linux hdd:
Code:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd1,0)/boot/gfxmenu
default 0

title linux
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=10efa168-2ab9-42d5-9fef-$
initrd (hd1,0)/boot/initrd.img

title linux-nonfb
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=10efa168-2ab9-42d5$
initrd (hd1,0)/boot/initrd.img

title failsafe
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=10efa168-2ab9-42d5-9f$
initrd (hd1,0)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

hd0 is windows, and hd1 is linux
Logged
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 5148


I'm going South


« Reply #3 on: July 07, 2010, 11:43:24 AM »

Waiting for the return of O-P I couldn't help noticing that all the lines in your menu.lst are cut off at 80 characters. That can't be intentional.
Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
shrinivas
Full Member
***
Offline Offline

Posts: 155


« Reply #4 on: July 07, 2010, 12:01:23 PM »

I suggest that using Windows installation disk, repair the windows boot so that only windows bootloader is on first HDD (hd0)
Then using the PClinuxOs CD/DVD, redo the MBR and install the bootloader into the root of the Linux installation, it automatically recognizes the Windows installation. In the bootloader setup, specify that you will be booting from the HD1.
Then in the BIOS, set it to boot from from the second hard disk (HD1) where PClinuxOs is installed.
That way, both Windows an Linux are safe from each other.
Logged

AMD ATHLON 64X2 5200, 2 GB RAM, nVidia 7600GT 256 RAM, HD0 320GB,HD1 80GB Triple-boot PCLinuxOs Zen Mini/WinXp/E17
markovski
Jr. Member
**
Offline Offline

Posts: 12


« Reply #5 on: July 07, 2010, 02:24:28 PM »

I suggest that using Windows installation disk, repair the windows boot so that only windows bootloader is on first HDD (hd0)
Then using the PClinuxOs CD/DVD, redo the MBR and install the bootloader into the root of the Linux installation, it automatically recognizes the Windows installation. In the bootloader setup, specify that you will be booting from the HD1.
Then in the BIOS, set it to boot from from the second hard disk (HD1) where PClinuxOs is installed.
That way, both Windows an Linux are safe from each other.
The windows repair didnt worked. The boot loader is still in HD0.

OK how to delete the current grubs and install it again in hd1?
Logged
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9694


----IOFLU----


« Reply #6 on: July 07, 2010, 02:39:30 PM »

Ive done that what you posted, grub loader now shows without the fancy graphics(the pcolos image).
There are entries but none of them work like they should. This is the menu.lst in the Linux hdd:
Code:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd1,0)/boot/gfxmenu
default 0

title linux
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=10efa168-2ab9-42d5-9fef-$
initrd (hd1,0)/boot/initrd.img

title linux-nonfb
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=10efa168-2ab9-42d5$
initrd (hd1,0)/boot/initrd.img

title failsafe
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=10efa168-2ab9-42d5-9f$
initrd (hd1,0)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

hd0 is windows, and hd1 is linux

Not any more. When a drive becomes the boot drive, it becomes (hd0). From the system's viewpoint, that is the definition of "boot drive."

Your /boot/grub/menu.lst must be edited so each instance of (hd1,0) becomes (hd0,0) for all the Linux entries, while the Windows stanza needs to become;

title windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)

makeactive
chainloader +1


The menu.lst file must be edited as root, so the changes can be saved. With these changes, and the Linux drive set as the boot drive both OS should then boot properly.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
markovski
Jr. Member
**
Offline Offline

Posts: 12


« Reply #7 on: July 07, 2010, 03:48:35 PM »

Ive done that what you posted, grub loader now shows without the fancy graphics(the pcolos image).
There are entries but none of them work like they should. This is the menu.lst in the Linux hdd:
Code:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd1,0)/boot/gfxmenu
default 0

title linux
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=10efa168-2ab9-42d5-9fef-$
initrd (hd1,0)/boot/initrd.img

title linux-nonfb
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=10efa168-2ab9-42d5$
initrd (hd1,0)/boot/initrd.img

title failsafe
kernel (hd1,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=10efa168-2ab9-42d5-9f$
initrd (hd1,0)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

hd0 is windows, and hd1 is linux

Not any more. When a drive becomes the boot drive, it becomes (hd0). From the system's viewpoint, that is the definition of "boot drive."

Your /boot/grub/menu.lst must be edited so each instance of (hd1,0) becomes (hd0,0) for all the Linux entries, while the Windows stanza needs to become;

title windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)

makeactive
chainloader +1


The menu.lst file must be edited as root, so the changes can be saved. With these changes, and the Linux drive set as the boot drive both OS should then boot properly.

Well i didnt knew that, tnx for this now it works. I also changed the gfxmenu to hd0, to give me the fancy image. The linux now works, but the windows doesent. I will try to add the maps

Edit- It worked perfectly thanks OP
Logged
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9694


----IOFLU----


« Reply #8 on: July 07, 2010, 04:42:18 PM »


Well i didnt knew that, tnx for this now it works. I also changed the gfxmenu to hd0, to give me the fancy image. The linux now works, but the windows doesent. I will try to add the maps

Edit- It worked perfectly thanks OP

Was there ever any doubt?  Grin Grin
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
uncleV
Guest
« Reply #9 on: July 09, 2010, 04:44:17 AM »

Have a little doubt but...
... worked here too, thank you.  Cheesy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM