 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

17th November 2006, 08:40 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 35

|
|
about Grub and parition
I have installed gentoo on (/dev/hda6) and FC6 (/dev/hda7) and grub on (/dev/hda7) partition,after that, I created a new parition for /boot ahead -- (/dev/hda6)
here's the pic to point what i want,
http://img223.imageshack.us/my.php?image=1kz8.jpg...
I wanna install grub in the boot partition (/dev/hda6)
right now it not working well.
here is my disk partition info
Quote:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 6132 49255258+ 7 HPFS/NTFS
/dev/hda2 6133 14593 67962982+ f W95 Ext'd (LBA)
/dev/hda5 6133 9337 25744131 7 HPFS/NTFS
/dev/hda6 9338 9396 473886 83 Linux ----------------------(for boot)
/dev/hda7 9397 11715 18627336 83 Linux
/dev/hda8 11716 14331 21012988+ 83 Linux
/dev/hda9 14332 14593 2104483+ 82 Linux swap / Solaris
|
here is the grub.conf
grub.conf
Quote:
default=0
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2849.fc6xen)
root (hd0,6)
kernel /boot/xen.gz-2.6.18-1.2849.fc6
module /boot/vmlinuz-2.6.18-1.2849.fc6xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-1.2849.fc6xen.img
title Fedora Core (2.6.18-1.2849.fc6)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-1.2849.fc6 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-1.2849.fc6.img
title Gentoo (2.6.17-gentoo-r8)
root (hd0,5)
kernel =/boot/bzImage-gentoo2 ro root=/dev/hda6 rhgb quiet
no initrd
title Other
rootnoverify (hd0,0)
chainloader +1
|
fstab
Quote:
For FC6
/dev/hda6 /boot ext3 noauto,noatime 1 2
LABEL=/ / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hda9 swap swap defaults 0 0
For Gentoo
/dev/hda6 /boot ext3 noauto,noatime 1 2
/dev/hda7 / ext3 noatime 0 1
/dev/hda9 none swap sw 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
thanks a lot multescugeorge@
really appreciate ur help
could some one help me to check if the configure is right?
thanks a lot for any help in adv.
Last edited by NAC; 17th November 2006 at 09:40 PM.
|

17th November 2006, 08:54 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 722

|
|
|
If you modiffied the partitions AFTER installing linux, you also want to check /etc/fstab
and update the information there too.
You may also want to copy the /boot folder to the new partition
__________________
But of course, take the above with a grain of salt...
|

17th November 2006, 09:05 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 722

|
|
|
Also to fully install grub, alter the /etc/fstab for /boot to point to the new partition, reboot (oucy, you will have to use the rescue cd (or cd1 in rescue mode) to boot fedora, and do a chroot /mnt/sysimage for the filesystem to be correctly mounted) then run
grub-install --recheck /dev/hda
The mounting of the new partition as /boot is essential, because grub will look for it's config files in the last /boot where grub-install was invoked from.
Also make sure you have mc installed, will make your life in the rescue mode much easyer.
__________________
But of course, take the above with a grain of salt...
|

17th November 2006, 09:26 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 35

|
|
|
thanks a lot multescugeorge@
really appreciate ur help
i pasted the fstab file, could u check whether it correct
regards
Last edited by NAC; 17th November 2006 at 10:17 AM.
|

17th November 2006, 12:07 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 722

|
|
the / mount point must be the first one, and you WANT the /boot partition to auto mount  so delete the noauto thingy.
Code:
LABEL=/ / ext3 defaults 1 1
/dev/hda6 /boot ext3 auto,noatime 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hda9 swap swap defaults 0 0
Partition numbers seem to be ok, but you still have to re-boot with the rescue cd, and don't forget: all your changes can be reversed if something goes wrong, and mc is a good friend to have in chroot
__________________
But of course, take the above with a grain of salt...
|

17th November 2006, 12:12 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 722

|
|
|
if you haven't rebooted already, don't forget to copy the files in /boot folder over to the new partition:
mkdir /mnt/123
mount -text3 /dev/hda6 /mnt/123
mkdir /mnt/123/boot
cp /boot/* /mnt/123/boot/
__________________
But of course, take the above with a grain of salt...
|

17th November 2006, 09:39 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 35

|
|
|
thanks a lot for your help so far, multescugeorge@
i am going to try what u pointed.
|

18th November 2006, 10:41 AM
|
|
Registered User
|
|
Join Date: Nov 2006
Posts: 35

|
|
yes,, i have don .del some txt
Quote:
default=0
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2849.fc6xen)
root (hd0,6)
kernel /boot/xen.gz-2.6.18-1.2849.fc6
module /boot/vmlinuz-2.6.18-1.2849.fc6xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-1.2849.fc6xen.img
title Fedora Core (2.6.18-1.2849.fc6)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18-1.2849.fc6 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-1.2849.fc6.img
title Gentoo (2.6.17-gentoo-r8)
root (hd0,5)
kernel =/boot/bzImage-gentoo2 ro root=/dev/hda6 rhgb quiet
no initrd
title Other
rootnoverify (hd0,0)
chainloader +1
|
delete red color txt, then works fine, thanks a lot multescugeorge@
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 22:43 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|