Re: Grub and logical partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 31 Jul 2010 19:57:24 +0200
Michael Schwendt <mschwendt@xxxxxxxxx> wrote:

> On Sat, 31 Jul 2010 13:16:10 +0200, Timothy wrote:
> 
> > But what puzzles me - and none of the gurus in this thread
> > seem to have answered my question -
> 
> But of course! There was only one question mark in your message,
> and the question in front of it has been answered.
> 
> > is that I can do it interactively,
> > but when I put exactly the same commands into grub.conf
> > they do not work.
> > 
> > WHY IS THIS?
> 
> PEBKAC?
> 
> > I'm using the standard grub in a standard up-to-date Fedora-13.
> > 
> > >> > But I found that I could in fact boot from /dev/sda5
> > >> > if I used grub interactively, starting with
> > >> >   root (hd0,4)
> > >> > then using tab to look for kernel and initrd
> > >> > and finally booting.
> 
> Why don't you load the grub.conf from /dev/sda5 instead of loading
> kernel and initrd manually?
> 
> And even that would not be "chain-loading" or "booting from a logical
> partition". For either one, you would install a GRUB boot loader into
> the first sector of /dev/sda5.
> 
> > Incidentally, you say it can be done.
> > So why not just give your stanza in grub.conf
> > that has the desired effect?
> 
> To boot /dev/sda5 from any GRUB, I do:
> 
> title SomeOS
>     root (hd0,4)
>     chainloader +1
> 
> That is under the assumption that /dev/sda5 contains a boot loader in
> its first sector.

Here is a /boot/grub/grub.conf which boots from a logicasl
"shared" /boot partition:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,4)
#          kernel /vmlinuz-version ro root=/dev/sda10
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda5
default=0
timeout=15
splashimage=(hd0,4)/grub/splash.xpm.gz
# hiddenmenu

title Desktop -- openSUSE 11.3 - 2.6.34-12
    root (hd0,4)
    kernel /vmlinuz-2.6.34-12-desktop
root=/dev/disk/by-id/ata-ST9500420AS_5VJ1AKS0-part11
resume=/dev/disk/by-id/ata-ST9500420AS_5VJ1AKS0-part6 splash=silent quiet
showopts vga=0x317 ipv6.disable=1 initrd /initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34-12
    root (hd0,4)
    kernel /vmlinuz-2.6.34-12-desktop
root=/dev/disk/by-id/ata-ST9500420AS_5VJ1AKS0-part11 showopts apm=off noresume
edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset
x11failsafe vga=0x317 ipv6.disable=1 initrd /initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: linux###
title Fedora (2.6.33.6-147.fc13.x86_64)
	root (hd0,4)
	kernel /vmlinuz-2.6.33.6-147.fc13.x86_64 ro
root=UUID=a8a2b010-e6d3-4493-b55a-e52a79d2ae66 rd_NO_LUKS rd_NO_LVM rd_NO_MD
rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.6-147.fc13.x86_64.img

title Fedora (2.6.33.3-85.fc13.x86_64)
	root (hd0,4)
	kernel /vmlinuz-2.6.33.3-85.fc13.x86_64 ro
root=UUID=a8a2b010-e6d3-4493-b55a-e52a79d2ae66 rd_NO_LUKS rd_NO_LVM rd_NO_MD
rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.3-85.fc13.x86_64.img

title Windoze 7
	rootnoverify (hd0,0)
	chainloader +1

You can see that the only chainloader needed is for windows, not for other
linux distros.

Tom

--
Tom Taylor - retired penguin
openSuSE 11.3 x86_64
Fedora 13
KDE 4.4.4 rel 2, FF 3.6.6
claws-mail 3.7.6
registered linux user 263467
linxt-At-comcast-DoT-net
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux