Re: Grub Manual Install Question
- From: Timothy Murphy <gayleard@xxxxxxxxxx>
- Date: Thu, 24 Jan 2008 14:28:42 +0000
sebastian.h.schmidt@xxxxxxxxxxxxxx wrote:
....I have to install the Grub Loader to the MBR of my Windows Partition
(4th Partition) and the grub itself (/grub folder) is in my linux /
boot
partition located on the 5th partition. .. how do i do that, i
looked into the manual but i'm not entirely sure about all that.
Is this line correct or am i screwing my system with that ?
grub-install --root-directory=/boot /dev/sda3
when i set up my linux system i set up 3 partitons for it "/" for the
data "/boot" for grub and the Kernel and "/swap", the "/" and the "/
swap" partition is located on my external and the "/boot" partition on
my internal drive
Subject to naming your partitions correctly,
this sounds fine to me.
But I don't claim to be an expert.
1) You can install grub on your Windows partition,
but I'm not sure why you would want to.
Most people install it on the MBR.
This should not interfere with Windows, if that is your worry.
Here are the stanzas in my grub.conf, as a matter of interest:
--------------------------------
title Fedora (2.6.23.9-85.fc8)
root (hd0,1)
kernel /vmlinuz-2.6.23.9-85.fc8 ro root=/dev/vg/slash rhgb quiet
initrd /initrd-2.6.23.9-85.fc8.img
itle Windows XP
rootnoverify (hd0,0)
chainloader +1
--------------------------------
If you are in doubt you can always put several stanzas
for the same system, and see which works.
2) You don't need to use the --root-directory option.
This is for installing grub for a system that is not running.
3) I don't know how your system works,
but on my SCSI system (Fedora) I cannot have /dev/sda4 and /dev/sda5 .
For historic reasons to do with IDE disks
I have to declare /dev/sda4 to be an "extended partition"
which is then divided into /dev/sda5 ... /dev/sda13 .
4) There are two precautions you could take.
a) Get Knoppix (Linux on a CD).
In my experience it is a life-saver if anything goes wrong booting.
b) I always save the MBR before installing anything on it,
with something like
dd if=/dev/sda of=mbr bs=512 count=1
Then if there is any problem I can re-install it with
dd if=mbr of=/dev/sda bs=512 count=1
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
.
- References:
- Grub Manual Install Question
- From: sebastian . h . schmidt
- Re: Grub Manual Install Question
- From: Timothy Murphy
- Re: Grub Manual Install Question
- From: sebastian . h . schmidt
- Re: Grub Manual Install Question
- From: Timothy Murphy
- Re: Grub Manual Install Question
- From: sebastian . h . schmidt
- Grub Manual Install Question
- Prev by Date: apache + mod_vhs [directives from database (mysql)?]
- Next by Date: upgrading FC6 -> FC8 - Error enabling swap device hda5: no such device or address
- Previous by thread: Re: Grub Manual Install Question
- Next by thread: Re: Grub Manual Install Question
- Index(es):
Relevant Pages
|