OK im gonna explain my problem....i got to drives ok? one is my computer in wich i got my windows xp installed and the other one is my external drive in wich i installed kubuntu.
Since i installed kubuntu on my external drive the grub loader boots froms the external drive of kubuntu, that means that if i take out my external drive and disconnect it it says grub loader error 21 and wont boot any OS not even windows xp......so my problem is that i want to install the grubloader in a partition on the computer drive.....so i followed this tut that appears over here...http://kubuntuforums.net/forums/index.php?topic=3081671.0
I followed this steps..that appears in the tut
Ok so following those steps i got unitl step nine and already done a fat32 partiton in the computer hd and already created the folders of grub and boot just by coping the ones that i got in my external drive to that partition.....but once i got to the
i got stuck....i dont understand how the #&%$ im going to instasll the grub to the master boot record of the bios got no idea im so lost
Any ideas plz...?help
Since i installed kubuntu on my external drive the grub loader boots froms the external drive of kubuntu, that means that if i take out my external drive and disconnect it it says grub loader error 21 and wont boot any OS not even windows xp......so my problem is that i want to install the grubloader in a partition on the computer drive.....so i followed this tut that appears over here...http://kubuntuforums.net/forums/index.php?topic=3081671.0
I followed this steps..that appears in the tut
Section 6
Special Situations
Two drives, a Windows drive and a Kubuntu drive, GRUB is in the Windows MBR,
but sometimes you must remove the Kubuntu drive
and Windows won’t boot when you do.
Solution: Include a dedicated GRUB partition on the Windows drive.
Assume Windows is on the first drive, BIOS is set to boot from the Windows drive, Kubuntu is on a second drive, GRUB from your Kubuntu is used as the bootloader and is installed to the MBR of the Windows drive, and so it boots both Windows and Kubuntu, but sometimes you need to remove the second drive from your PC. How to boot Windows then?
If you remove the Kubuntu drive, you will get an error or a freeze because GRUB can’t find its boot menu, /boot/grub/menu.lst (its “Stage_2” files). A simple solution for this is to build a separate, small, dedicated GRUB partition on the Windows drive, and boot both Windows and Kubuntu from that partition. You need only 200 KB to hold the GRUB files (so, in practice, make it 1MB or the minimum allowed by FAT32 or ext2 format). If your Windows XP operating system takes up the whole drive, you must first shrink that partition to make room for the dedicated GRUB partition. You can use GParted to do that; however, you really should make a backup of your Windows partition, or at least your data there (My Documents, or Documents and Settings), and make sure your Windows distribution CD is available in case you mess up and have to re-install Windows.
Reference: See SECTION 9 Separate, dedicated GRUB partition.
SECTION 9
SECTION 9 Separate GRUB Partition
Making and using a separate GRUB partition
A separate GRUB partition contains only one item: /boot/grub and the GRUB files (contained under the grub directory). The partition does not contain any other boot files under /boot; the kernel and initrd files are not present. (A full /boot partition contains the kernel(s) and initrd files. That is a different subject and is not covered here. Basically, it is the same, except you must maintain the up-to-date kernel list correctly and edit your groot= (hdx,y) statement in menu.lst)
Advantages/uses of a separate GRUB partition:
-- If you install a lot of OSs, it is easy to manage the multi-booting and boot menu using a separate GRUB partition.
-- If you change the OSs on your partitions, it is easy to modify the boot menu if you use a separate GRUB partition (if you use configfile booting, you don't have to change anything).
-- In the separate GRUB partition, you do not have to use specific kernel and initrd statements; nor do you have to use UUIDs (which is nice in case you repartition your hard drive(s), and thus there is no need to edit your main boot menu.
Four steps: To build a separate GRUB partition and make your PC boot from it.
Step 1: Use a partition editor to make a small partition (1 MB is plenty; FAT32) that will become the GRUB partition.
Step 1: Make a /boot directory in the GRUB partition, and copy GRUB files into it so you have /boot/grub.
Step 2: Using those GRUB files, install GRUB to the Master Boot Record of the first BIOS boot drive.
Step 3: Edit the boot menu (/boot/grub/menu.lst) of the GRUB partition to suit your needs.
Example
Two SATA HDs, sda and sdb. Windows XP in sda1 = (hd0,0); Kubuntu 8.04 in (hd1,1); Kubuntu 8.10 in (hd1,2). The first BIOS boot drive is hd0, from which the PC boots. The GRUB that controls the booting is the GRUB in Kubuntu 8.04 (which is also the controlling boot menu, /boot/grub/menu.lst) (and so GRUB from (hd1,1) was installed to the MBR (hd0)).
To do: Make a separate GRUB partition in sdb1 = (hd1,0) to control the booting.
Note: In setting all this up, GParted Live CD (see REFERENCES) was used to do the partitioning, formatting, and then all OSs were installed as indicated.
Outline/tips
The partitioning is already done. The separate GRUB partition was created as sdb1 = (hd1,0), formatted FAT32 (or ext2 or ext3).
Boot into Kubuntu 8.04. (This can also be done from Kubuntu 8.10 or from a Live Kubuntu CD).
You can do this work in GUI (Konqueror or Dolphin) or CLI (Konsole, or a console).
If you do it in Konsole, you may wish to open your file manager as root:
in 8.10:
kdesudo konqueror
kdesudo dolphin
in 8.04:
kdesu konqueror
kdesu dolphin
While in Kubuntu 8.04, access the GRUB partition (hd1,0) (or sdb1). Make a directory called boot.
(In GUI: right-click, Create New > Folder, name it boot; in CLI: sudo mkdir /boot).
Copy grub and GRUB files into the GRUB /boot directory:
Again, from Kubuntu 8.04, copy the grub directory and its contents into the /boot directory of the GRUB partition (hd1,0) (or sdb1). The result in the GRUB partition is /boot/grub (with all the GRUB files under grub).
Set up GRUB:
Open Konsole, and install GRUB to the MBR of the first BIOS boot drive (hd0) using the GRUB files in your GRUB partition:
Konsole
sudo grub
grub>root (hd1,0)
grub>setup (hd0)
grub>quit
$exit
Edit menu.lst in the GRUB partition:
Edit the menu.lst in the GRUB partition (hd1,0) (or sdb1) to include boot entries for XP and the Kubuntu OSs.
You may open the menu.lst (in sdb1), as root, and delete everything (if you so wish). Then type the following:
# menu.lst for separate GRUB partition.
Default 0
timeout 10
title Windows XP in (hd0,0)
chainloader (hd0,0)+1
title Kubuntu 8.04 in (hd1,1)
configfile (hd1,1)/boot/grub/menu.lst
title Kubuntu 8.10 in (hd1,2)
configfile (hd1,2)/boot/grub/menu.lst
# End of menu.lst for the GRUB partition
That's it – Your are done
Re-boot to test it.
CLI: Konsole details
Here's the details at Konsole. The lines starting with # are comments.
# First, use GParted to make and format a new partition, sdb1= (hd1,0).
# Starting in the “main” Kubuntu in sdb2, at Konsole, proceed with:
# make a new directory for mounting sdb1
sudo mkdir /media/sdb1
# mount partition sdb1 on /media/sdb1
sudo mount /dev/sdb1 /media/sdb1
# make a /boot subdirectory in sdb1
sudo mkdir /media/sdb1/boot
# The next statement automatically makes a /grub sub-directory; then -r copies recursively
# all contents of the grub folder into the /boot/grub folder on sdb1
sudo cp -r /boot/grub /media/sdb1/boot
# open, as root, menu.lst on sdb1in text editor Kate
# in 8.10, use kdesudo; in 8.04, use kdesu:
kdesudo kate /media/sdb1/boot/grub/menu.lst
# Edit this menu.lst (see the text above)
# Then File>Save and File>Quit
# get a GRUB prompt as root
sudo grub
# install GRUB to the MBR of the first BIOS boot drive (hd0) using the GRUB files in the GRUB partition (hd1,0) (= sdb1)
grub>root (hd1,0)
grub> setup (hd0)
grub> quit
# to restart and test the new boot menu from sdb1
$ sudo shutdown -r now
Notes:
-- menu.lst: You may construct your menu.lst any way you wish, using kernel & initrd booting, chainloader booting, or configfile booting, or combinations thereof.
Special Situations
Two drives, a Windows drive and a Kubuntu drive, GRUB is in the Windows MBR,
but sometimes you must remove the Kubuntu drive
and Windows won’t boot when you do.
Solution: Include a dedicated GRUB partition on the Windows drive.
Assume Windows is on the first drive, BIOS is set to boot from the Windows drive, Kubuntu is on a second drive, GRUB from your Kubuntu is used as the bootloader and is installed to the MBR of the Windows drive, and so it boots both Windows and Kubuntu, but sometimes you need to remove the second drive from your PC. How to boot Windows then?
If you remove the Kubuntu drive, you will get an error or a freeze because GRUB can’t find its boot menu, /boot/grub/menu.lst (its “Stage_2” files). A simple solution for this is to build a separate, small, dedicated GRUB partition on the Windows drive, and boot both Windows and Kubuntu from that partition. You need only 200 KB to hold the GRUB files (so, in practice, make it 1MB or the minimum allowed by FAT32 or ext2 format). If your Windows XP operating system takes up the whole drive, you must first shrink that partition to make room for the dedicated GRUB partition. You can use GParted to do that; however, you really should make a backup of your Windows partition, or at least your data there (My Documents, or Documents and Settings), and make sure your Windows distribution CD is available in case you mess up and have to re-install Windows.
Reference: See SECTION 9 Separate, dedicated GRUB partition.
SECTION 9
SECTION 9 Separate GRUB Partition
Making and using a separate GRUB partition
A separate GRUB partition contains only one item: /boot/grub and the GRUB files (contained under the grub directory). The partition does not contain any other boot files under /boot; the kernel and initrd files are not present. (A full /boot partition contains the kernel(s) and initrd files. That is a different subject and is not covered here. Basically, it is the same, except you must maintain the up-to-date kernel list correctly and edit your groot= (hdx,y) statement in menu.lst)
Advantages/uses of a separate GRUB partition:
-- If you install a lot of OSs, it is easy to manage the multi-booting and boot menu using a separate GRUB partition.
-- If you change the OSs on your partitions, it is easy to modify the boot menu if you use a separate GRUB partition (if you use configfile booting, you don't have to change anything).
-- In the separate GRUB partition, you do not have to use specific kernel and initrd statements; nor do you have to use UUIDs (which is nice in case you repartition your hard drive(s), and thus there is no need to edit your main boot menu.
Four steps: To build a separate GRUB partition and make your PC boot from it.
Step 1: Use a partition editor to make a small partition (1 MB is plenty; FAT32) that will become the GRUB partition.
Step 1: Make a /boot directory in the GRUB partition, and copy GRUB files into it so you have /boot/grub.
Step 2: Using those GRUB files, install GRUB to the Master Boot Record of the first BIOS boot drive.
Step 3: Edit the boot menu (/boot/grub/menu.lst) of the GRUB partition to suit your needs.
Example
Two SATA HDs, sda and sdb. Windows XP in sda1 = (hd0,0); Kubuntu 8.04 in (hd1,1); Kubuntu 8.10 in (hd1,2). The first BIOS boot drive is hd0, from which the PC boots. The GRUB that controls the booting is the GRUB in Kubuntu 8.04 (which is also the controlling boot menu, /boot/grub/menu.lst) (and so GRUB from (hd1,1) was installed to the MBR (hd0)).
To do: Make a separate GRUB partition in sdb1 = (hd1,0) to control the booting.
Note: In setting all this up, GParted Live CD (see REFERENCES) was used to do the partitioning, formatting, and then all OSs were installed as indicated.
Outline/tips
The partitioning is already done. The separate GRUB partition was created as sdb1 = (hd1,0), formatted FAT32 (or ext2 or ext3).
Boot into Kubuntu 8.04. (This can also be done from Kubuntu 8.10 or from a Live Kubuntu CD).
You can do this work in GUI (Konqueror or Dolphin) or CLI (Konsole, or a console).
If you do it in Konsole, you may wish to open your file manager as root:
in 8.10:
kdesudo konqueror
kdesudo dolphin
in 8.04:
kdesu konqueror
kdesu dolphin
While in Kubuntu 8.04, access the GRUB partition (hd1,0) (or sdb1). Make a directory called boot.
(In GUI: right-click, Create New > Folder, name it boot; in CLI: sudo mkdir /boot).
Copy grub and GRUB files into the GRUB /boot directory:
Again, from Kubuntu 8.04, copy the grub directory and its contents into the /boot directory of the GRUB partition (hd1,0) (or sdb1). The result in the GRUB partition is /boot/grub (with all the GRUB files under grub).
Set up GRUB:
Open Konsole, and install GRUB to the MBR of the first BIOS boot drive (hd0) using the GRUB files in your GRUB partition:
Konsole
sudo grub
grub>root (hd1,0)
grub>setup (hd0)
grub>quit
$exit
Edit menu.lst in the GRUB partition:
Edit the menu.lst in the GRUB partition (hd1,0) (or sdb1) to include boot entries for XP and the Kubuntu OSs.
You may open the menu.lst (in sdb1), as root, and delete everything (if you so wish). Then type the following:
# menu.lst for separate GRUB partition.
Default 0
timeout 10
title Windows XP in (hd0,0)
chainloader (hd0,0)+1
title Kubuntu 8.04 in (hd1,1)
configfile (hd1,1)/boot/grub/menu.lst
title Kubuntu 8.10 in (hd1,2)
configfile (hd1,2)/boot/grub/menu.lst
# End of menu.lst for the GRUB partition
That's it – Your are done
Re-boot to test it.
CLI: Konsole details
Here's the details at Konsole. The lines starting with # are comments.
# First, use GParted to make and format a new partition, sdb1= (hd1,0).
# Starting in the “main” Kubuntu in sdb2, at Konsole, proceed with:
# make a new directory for mounting sdb1
sudo mkdir /media/sdb1
# mount partition sdb1 on /media/sdb1
sudo mount /dev/sdb1 /media/sdb1
# make a /boot subdirectory in sdb1
sudo mkdir /media/sdb1/boot
# The next statement automatically makes a /grub sub-directory; then -r copies recursively
# all contents of the grub folder into the /boot/grub folder on sdb1
sudo cp -r /boot/grub /media/sdb1/boot
# open, as root, menu.lst on sdb1in text editor Kate
# in 8.10, use kdesudo; in 8.04, use kdesu:
kdesudo kate /media/sdb1/boot/grub/menu.lst
# Edit this menu.lst (see the text above)
# Then File>Save and File>Quit
# get a GRUB prompt as root
sudo grub
# install GRUB to the MBR of the first BIOS boot drive (hd0) using the GRUB files in the GRUB partition (hd1,0) (= sdb1)
grub>root (hd1,0)
grub> setup (hd0)
grub> quit
# to restart and test the new boot menu from sdb1
$ sudo shutdown -r now
Notes:
-- menu.lst: You may construct your menu.lst any way you wish, using kernel & initrd booting, chainloader booting, or configfile booting, or combinations thereof.
step Step 2: Using those GRUB files, install GRUB to the Master Boot Record of the first BIOS boot drive.
Any ideas plz...?help
Comment