Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-27 Thread Tom H
On Fri, Aug 26, 2011 at 1:30 PM, Scott Robbins scot...@nyc.rr.com wrote:
 On Fri, Aug 26, 2011 at 12:12:13PM -0400, Tom H wrote:
 On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins scot...@nyc.rr.com wrote:
 
  I now have my own, very small page, which is Fedora centric at
  present...
 
  http://home.roadrunner.com/~computertaijutsu/grub2.html
 
  So far, it only covers editing /etc/default/grub.d, 40_custom and using
  custom.cfg.

 Typo:
 grub2-mkconfig -o /boot/grub/grub.cfg
 should be
 grub2-mkconfig -o /boot/grub2/grub.cfg
 for Fedora

 Thank you Tom, it's fixed now.

You're welcome. Good luck with the howto.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-26 Thread Adam Williamson
On Thu, 2011-08-25 at 19:13 -0600, Peter G. wrote:
 Tom H wrote:
 
  The default Fedora install, up to now, has been to have a separate
  /boot in order to use LVM for /. That's one reason and there are
  others (for example, some people don't mount /boot at boot; they
  only mount it to update the kernel and the boot config and then
  unmount it).
 
 I never figured out a use for LVM, either ;-) 

The biggest use is very easy resizing of partitions, without data loss.

 I think I read it's going bye-bye, isn't 
 it? Something about btrfs making it irrelevant?

In the long term, yeah, btrfs will have support for everything that
makes LVM (and soft RAID, in fact) interesting. Probably be F18 before
we really stop using LVM and RAID separately from the filesystem by
default, though (that's just a WAG).
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Adam Williamson
On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
 On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
  Adam Williamson wrote:
  
   did you run 'update_grub'?
  
  no I didn't. first I heard of it. that might 
  explain it. but I learned something and I think I 
  prefer the custom.cfg method, anyway :-)
 
 Note the earlier exchange of emails.  update_grub is an Ubuntu command.

In my defence, I don't run Ubuntu or anything evil like that. I just
cargo-cult things I vaguely remember from Google searches. That's much
better, right?
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 2:47 AM, Adam Williamson awill...@redhat.com wrote:
 On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
 On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
  Adam Williamson wrote:
 
   did you run 'update_grub'?
 
  no I didn't. first I heard of it. that might
  explain it. but I learned something and I think I
  prefer the custom.cfg method, anyway :-)

 Note the earlier exchange of emails.  update_grub is an Ubuntu command.

 In my defence, I don't run Ubuntu or anything evil like that. I just
 cargo-cult things I vaguely remember from Google searches. That's much
 better, right?

Evil? :)))

Debian/Ubuntu had an update-grub for grub1 and have an update-grub
and an update-grub2 for grub2.

update-grub just runs grub-mkconfig -o /boot/grub/grub.cfg and
update-grub2 just runs update-grub.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-26 Thread Genes MailLists
On 08/26/2011 02:42 AM, Adam Williamson wrote:

 In the long term, yeah, btrfs will have support for everything that
 makes LVM (and soft RAID, in fact) interesting. Probably be F18 before
 we really stop using LVM and RAID separately from the filesystem by
 default, though (that's just a WAG).

   Could be quite long - btfrs wont replace RAID until RAID-5 is
supported - which seems to be a long ways off best I can tell -- every
time I ask the question it seems to be waiting for much the same work to
be done  ... presumably it will get there, but I would be pleasantly
surprised if its less than a year away ...
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:


 On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
  
  Note the earlier exchange of emails.  update_grub is an Ubuntu command.
 
 In my defence, I don't run Ubuntu or anything evil like that. I just
 cargo-cult things I vaguely remember from Google searches. That's much
 better, right?

We'd forgive you.  Well, I would, anyway.  (I'm reminded of the
statement, though I've forgotten where it's from--If you like someone,
and they spill their soup on you, you laugh, if you dislike someone, the
way they hold their fork is aggravating.)  

Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
and Arch.  

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


 Giles: This one?
 Buffy: Amethyst.
 Giles: Used for?
 Buffy: Breath mints?
 Giles: Charm bags, money spells and for cleansing one's aura.
 Buffy: Okay, so how do you know if one's aura's dirty? Somebody
comes by with a finger and writes 'wash me' on it?
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins scot...@nyc.rr.com wrote:
 On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:

 In my defence, I don't run Ubuntu or anything evil like that. I just
 cargo-cult things I vaguely remember from Google searches. That's much
 better, right?

 We'd forgive you.

 Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
 and Arch.

I saved these a while ago and haven't visited them in over a year so
they might not be current or even live (I've just deleted the engrub
url) but here goes:

http://en.gentoo-wiki.com/wiki/Grub2
http://manual.aptosid.com/en/sys-admin-grub2-en.htm
http://manual.sidux.com/en/sys-admin-grub2-en.htm
http://members.iinet.net/~herman546/p20.html
http://wiki.archlinux.org/index.php/GRUB2
http://wiki.ubuntuusers.de/grub_2
http://www.dedoimedo.com/computers/grub-2.html
http://www.kubuntuforums.net/forums/index.php?topic=3106368.0
http://www.linuxfromscratch.org/lfs/view/development/chapter06/grub.html
http://www.linuxfromscratch.org/lfs/view/development/chapter08/grub.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/grub.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html
http://www.ubuntuforums.org/showthread.php?t=1195275
http://www.ubuntuforums.org/showthread.php?t=1287602
https://help.ubuntu.com/community/Grub2
https://wiki.kubuntu.org/Grub2
https://wiki.ubuntu.com/Grub2
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Fri, Aug 26, 2011 at 09:33:59AM -0400, Tom H wrote:
 On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins scot...@nyc.rr.com wrote:
  On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:
 
  In my defence, I don't run Ubuntu or anything evil like that. I just
  cargo-cult things I vaguely remember from Google searches. That's much
  better, right?
 
  We'd forgive you.
 
  Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
  and Arch.
 
 I saved these a while ago and haven't visited them in over a year so
 they might not be current or even live (I've just deleted the engrub
 url) but here goes:

I now have my own, very small page, which is Fedora centric at
present...

http://home.roadrunner.com/~computertaijutsu/grub2.html

So far, it only covers editing /etc/default/grub.d, 40_custom and using
custom.cfg.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: You won. Alright?  You came in and you killed them,
and you took their land.  That's what conquering nations do.  It's
what Caeser did, and he's not going around saying I came, I conquered,
I felt really bad about it.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins scot...@nyc.rr.com wrote:
 On Fri, Aug 26, 2011 at 09:33:59AM -0400, Tom H wrote:
 On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins scot...@nyc.rr.com wrote:
  On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:
 
  In my defence, I don't run Ubuntu or anything evil like that. I just
  cargo-cult things I vaguely remember from Google searches. That's much
  better, right?
 
  We'd forgive you.
 
  Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
  and Arch.

 I saved these a while ago and haven't visited them in over a year so
 they might not be current or even live (I've just deleted the engrub
 url) but here goes:

 I now have my own, very small page, which is Fedora centric at
 present...

 http://home.roadrunner.com/~computertaijutsu/grub2.html

 So far, it only covers editing /etc/default/grub.d, 40_custom and using
 custom.cfg.

Typo:
grub2-mkconfig -o /boot/grub/grub.cfg
should be
grub2-mkconfig -o /boot/grub2/grub.cfg
for Fedora
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Fri, Aug 26, 2011 at 12:12:13PM -0400, Tom H wrote:
 On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins scot...@nyc.rr.com wrote:
  I now have my own, very small page, which is Fedora centric at
  present...
 
  http://home.roadrunner.com/~computertaijutsu/grub2.html
 
  So far, it only covers editing /etc/default/grub.d, 40_custom and using
  custom.cfg.
 
 Typo:
 grub2-mkconfig -o /boot/grub/grub.cfg
 should be
 grub2-mkconfig -o /boot/grub2/grub.cfg
 for Fedora

Thank you Tom, it's fixed now.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Cordelia: You're just a souless bloodsucking demon. They're
LAWYERS
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Thomas Mittelstaedt
Am Mittwoch, den 24.08.2011, 22:40 -0600 schrieb Petrus de Calguarium:
 I have installed F16α and with it grub2 to the MBR of /dev/sda. I am 
 experimenting happily with F16, but I am unable to add F15 to the 
 grub2 boot menu.
 
 I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o 
 /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu, 
 even though it is in grub.cfg.
 
 When I start the computer and select the (c)ommand line in grub, I am 
 able to enter:
 
 set root=(hd0,7)
 linux /boot/vmlinuz-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet etc 
 etc etc etc etc rd.=0 etc etc etc
 initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img
 
 and then type boot, I am able to boot F15 without problem.
 
 Entering the same into the grub.cfg file doesn't work.
 
 How can I get a F15 menu entry in grub.cfg?
 
 -- 
 test mailing list
 test@lists.fedoraproject.org
 To unsubscribe: 
 https://admin.fedoraproject.org/mailman/listinfo/test

Well, F16 has grub2 according to your mail. I recently upgraded my main
machine to grub2 as well and I have the following entry to boot my
Fedora 15, which still has legacy grub, on a separate partition via:

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply
type the
# menu entries you want to add after this comment.  Be careful not to
change
# the 'exec tail' line above.

menuentry Fedora (2.6.40-4.fc15.i686) {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set
93f664e9-9013-47b4-b5d8-1239af7c0605
linux /vmlinuz-2.6.40-4.fc15.i686 ro
root=/dev/mapper/vg_myfedora15-lv_root rd_LVM_LV=vg_myfedora15/lv_root
rd_LVM_LV=vg_myfedora15/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.40-4.fc15.i686.img
}

### END /etc/grub.d/40_custom ###

And this works. Maybe, you need to put /kernel instead
of /boot/kernel?

Hope that helps!

-- 
thomas


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Thomas Mittelstaedt wrote:

 Maybe, you need to put /kernel instead of /boot/kernel?

Could be, but I don't think so, since I need it when I enter the 
information manually into grub2 and also, the legacy grub needs /boot/. 
However, I will try, just to be sure.

 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16
 
 Hope that helps!

I had latarcyrheb-sun-16. That might be it? 


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Joachim Backes

On 08/25/2011 08:25 AM, Thomas Mittelstaedt wrote:

Am Mittwoch, den 24.08.2011, 22:40 -0600 schrieb Petrus de Calguarium:

I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
experimenting happily with F16, but I am unable to add F15 to the
grub2 boot menu.

I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
/boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
even though it is in grub.cfg.

When I start the computer and select the (c)ommand line in grub, I am
able to enter:

set root=(hd0,7)
linux /boot/vmlinuz-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet etc
etc etc etc etc rd.=0 etc etc etc
initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img

and then type boot, I am able to boot F15 without problem.

Entering the same into the grub.cfg file doesn't work.

How can I get a F15 menu entry in grub.cfg?

--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test


Well, F16 has grub2 according to your mail. I recently upgraded my main
machine to grub2 as well and I have the following entry to boot my
Fedora 15, which still has legacy grub, on a separate partition via:

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply
type the
# menu entries you want to add after this comment.  Be careful not to
change
# the 'exec tail' line above.

menuentry Fedora (2.6.40-4.fc15.i686) {
 recordfail=1
 if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 insmod ext2
 set root=(hd0,3)
 search --no-floppy --fs-uuid --set
93f664e9-9013-47b4-b5d8-1239af7c0605
 linux /vmlinuz-2.6.40-4.fc15.i686 ro
root=/dev/mapper/vg_myfedora15-lv_root rd_LVM_LV=vg_myfedora15/lv_root
rd_LVM_LV=vg_myfedora15/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
 initrd /initramfs-2.6.40-4.fc15.i686.img
}


my grub.cfg (using chainloader) entry for F15 (after installing grub2 in 
F15 and installing then in F15 the grub2 bootloader to /dev/sda7):


menuentry 'Fedora 15' --class fedora --class gnu-linux --class gnu 
--class os {

set root=(hd0,7)
chainloader +1
}


This works on my box

Kind regards

Joachim Backes joachim.bac...@rhrk.uni-kl.de

http://www.rhrk.uni-kl.de/~backes



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Clyde E. Kunkel
On 08/25/2011 12:40 AM, Petrus de Calguarium wrote:
 snip
 set root=(hd0,7)
 linux /boot/vmlinuz-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet etc
 etc etc etc etc rd.=0 etc etc etc
 initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img
  ^
^
delete-|  (both of them)

-- 
Regards,
OldFart

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Clyde E. Kunkel wrote:

 On 08/25/2011 12:40 AM, Petrus de Calguarium wrote:
 snip
 set root=(hd0,7)
 linux /boot/vmlinuz-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet 
etc
 etc etc etc etc rd.=0 etc etc etc
 initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img
   ^
 ^
 delete-|  (both of them)
 

I will try it. It seems odd, however.

Will grub search through the root partition until if finds the kernel 
and initramfs, or does it simply assume (correctly) that they are 
located in the /boot directory?

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Joachim Backes

On 08/25/2011 04:36 PM, Petrus de Calguarium wrote:

Joachim Backes wrote:



my grub.cfg (using chainloader) entry for F15 (after installing grub2

in

F15 and installing then in F15 the grub2 bootloader to /dev/sda7):

menuentry 'Fedora 15' --class fedora --class gnu-linux --class gnu
--class os {
set root=(hd0,7)
chainloader +1
}



I never knew chainloader could be used for linux. I have seen it for
windows and for ploppy disks, but I will give it a try.



Check it! I use this since some Fedora generations to run multiple 
fedoras on one hd. No problems!


--
Joachim Backes joachim.bac...@rhrk.uni-kl.de

http://www.rhrk.uni-kl.de/~backes



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Clyde E. Kunkel
On 08/25/2011 10:35 AM, Petrus de Calguarium wrote:
 Clyde E. Kunkel wrote:

 On 08/25/2011 12:40 AM, Petrus de Calguarium wrote:
 snip
 set root=(hd0,7)
 linux /boot/vmlinuz-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet
 etc
 etc etc etc etc rd.=0 etc etc etc
 initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img
^
  ^
 delete-|  (both of them)


 I will try it. It seems odd, however.

 Will grub search through the root partition until if finds the kernel
 and initramfs, or does it simply assume (correctly) that they are
 located in the /boot directory?


As far as I know, everything is relative to /boot.  No change from old grub.

-- 
Regards,
OldFart

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Clyde E. Kunkel wrote:

 As far as I know, everything is relative to /boot.  No change from old
 grub.

In the old grub, you had to explicitly state /boot.

In the old grub.conf it even states:

all kernel and initrd paths are relative to /

That means everything is relative to root (/), not /boot!

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Clyde E. Kunkel
On 08/25/2011 12:40 PM, Petrus de Calguarium wrote:
 Clyde E. Kunkel wrote:

 As far as I know, everything is relative to /boot.  No change from old
 grub.

 In the old grub, you had to explicitly state /boot.

 In the old grub.conf it even states:

 all kernel and initrd paths are relative to /

 That means everything is relative to root (/), not /boot!


Separate boot partition, do not use /boot

If not, then I dunno

-- 
Regards,
OldFart

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Tom H
On Thu, Aug 25, 2011 at 12:40 PM, Petrus de Calguarium
pguec...@gmail.com wrote:
 Clyde E. Kunkel wrote:

 As far as I know, everything is relative to /boot.  No change from old
 grub.

 In the old grub, you had to explicitly state /boot.

 In the old grub.conf it even states:

 all kernel and initrd paths are relative to /

 That means everything is relative to root (/), not /boot!

Are you referring to root=/ or the grub root?

If you have a separate /boot partition, the kernel and initrd are
relative to it.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Tom H wrote:

 In the old grub, you had to explicitly state /boot.

 In the old grub.conf it even states:

 all kernel and initrd paths are relative to /

 That means everything is relative to root (/), not /boot!
 
 Are you referring to root=/ or the grub root?
 

I don't have a clue what the grub root is or what you mean by 
root=/, hence I cannot interpret the question.

 If you have a separate /boot partition, the kernel and initrd are
 relative to it.

I never have a separate /boot (or /home) partition, as I have never 
managed to figure out a reason for it. It is just unnecessary 
complexity without benefit. I always have 3 versions of fedora 
installed (current, current-1 and current+1), so each has a root (/) 
partition that contains everything, the whole kit and 'kabootle'.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Joachim Backes wrote:

 On 08/25/2011 04:36 PM, Petrus de Calguarium wrote:
 Joachim Backes wrote:


 my grub.cfg (using chainloader) entry for F15 (after installing 
grub2
 in
 F15 and installing then in F15 the grub2 bootloader to /dev/sda7):

 menuentry 'Fedora 15' --class fedora --class gnu-linux --class gnu
 --class os {
 set root=(hd0,7)
 chainloader +1
 }


 I never knew chainloader could be used for linux. I have seen it 
for
 windows and for ploppy disks, but I will give it a try.

 
 Check it! I use this since some Fedora generations to run multiple
 fedoras on one hd. No problems!
 
Sorry to say, but I got nowhere with that. Nothing happened. It is 
definitely interesting in it's perfect simplicity and would be 
preferred, if it worked, for that reason.

How are you supposed to tell grub2 to look into the /boot directory 
for the kernel and initram?

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Petrus de Calguarium
Petrus de Calguarium wrote:

 I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
 experimenting happily with F16, but I am unable to add F15 to the
 grub2 boot menu.
 
 I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
 /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
 even though it is in grub.cfg.

I figured out that no matter what you put into /etc/grub.d/40_custom, 
it will never show up in the grub2 menu, even though it does show up 
in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on 
40_custom after editing and that the permissions remain the same as 
the other files.

The solution:

create a file called /boot/grub2/custom.cfg and put your custom menu 
items in that. This file is automatically read by grub2, thanks to 
/etc/grub.d/41_custom, which causes custom.cfg to be read.

This works!

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Tom Horsley
On Thu, 25 Aug 2011 12:15:56 -0600
Petrus de Calguarium wrote:

 How are you supposed to tell grub2 to look into the /boot directory 
 for the kernel and initram?

OK, to inject my own ignorance into this thread:

As far as I know, the paths you tell grub should be
relative to whatever the heck (hdX,Y) refers to
in the disk spec.

So if, for example, (hd0,0) is the grub name for
a dedicated /boot partition, then the file names
you use would be relative to /boot (just say /initramfs...)

On the othr hand if (hd0,2) is the grub name for
the / root partition, and boot is merely a subdirectory
under root, then you say /boot/initramfs...
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 02:52:18PM -0400, Tom Horsley wrote:
 On Thu, 25 Aug 2011 12:15:56 -0600
 Petrus de Calguarium wrote:
 
  How are you supposed to tell grub2 to look into the /boot directory 
  for the kernel and initram?
 
 OK, to inject my own ignorance into this thread:
 
 As far as I know, the paths you tell grub should be
 relative to whatever the heck (hdX,Y) refers to
 in the disk spec.
 
 So if, for example, (hd0,0) is the grub name for
 a dedicated /boot partition, then the file names
 you use would be relative to /boot (just say /initramfs...)

Important note.  Although disk number still begins at 0, partitions now
begin at 1.  So /dev/sda1 is now hd0,1.



-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Faith: Isn't it crazy how slayin' just always makes you
hungry and horny?
Buffy: Well... sometimes I crave a nonfat yogurt afterwards.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 12:21:37PM -0600, Petrus de Calguarium wrote:
 Petrus de Calguarium wrote:
 
  
  I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
  /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
  even though it is in grub.cfg.

Interesting.  I just tested, on a virtual machine, without an actual
O/S, (just made up one) and it showed up on my grub menu.  Is it
possible you made a typo?  (Or accidentally deleted that line they say
not to delete?)

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Willow: On the other hand, maybe Rodney just stepped out
for a smoke.
Xander: For twenty-one hours?
Willow: It's addictive, you know.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Tom Horsley
On Thu, 25 Aug 2011 15:10:36 -0400
Scott Robbins wrote:

 Important note.  Although disk number still begins at 0, partitions now
 begin at 1.  So /dev/sda1 is now hd0,1.

My God! I won't be able to handle the partition numbers matching
in linux and grub (but that's OK I couldn't handle them not
matching either :-).
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Petrus de Calguarium
Scott Robbins wrote:

  On Thu, Aug 25, 2011 at 12:21:37PM -0600, Petrus de Calguarium 
wrote:
  I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
  /boot/grub2/grub.cfg, but my F15 entry never shows up in the 
menu, even though it is in grub.cfg.

 Interesting.  I just tested, on a virtual machine, without an actual
 O/S, (just made up one) and it showed up on my grub menu.  Is it
 possible you made a typo?

Possible? Of course... but I checked it numerous times and it all 
works when I type it by hand at the grub prompt and it also works when 
I put it into custom.cfg (copy and paste). I have also written and 
rewritten it many times, trying all of the various suggestions here in 
this thread, etc. and variations and it never appears in the grub 
menu, not even in a defective state. All my entries simply do not show 
up at all.

 (Or accidentally deleted that line they say not to delete?)

I definitely did NOT delete that line ;-)

But no matter. Editing custom.cfg is actually preferable, since you 
don't need to change those scripts under /etc/grub.d and you don't 
have to run grub2-mkconfig -o /boot/grub2/grub.cfg. And these entries 
verily do show up in the menu.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Petrus de Calguarium
Scott Robbins wrote:

 Important note.  Although disk number still begins at 0, partitions 
now begin at 1.  So /dev/sda1 is now hd0,1.

Thanks for the reminder :-)

I was already aware of that, hence I set root to 0,7 (ie., sda7, or grub 
legacy hd0,6).

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Tom H
On Thu, Aug 25, 2011 at 2:14 PM, Petrus de Calguarium
pguec...@gmail.com wrote:
 Tom H wrote:

 In the old grub, you had to explicitly state /boot.

 In the old grub.conf it even states:

 all kernel and initrd paths are relative to /

 That means everything is relative to root (/), not /boot!

 Are you referring to root=/ or the grub root?

 I don't have a clue what the grub root is or what you mean by
 root=/, hence I cannot interpret the question.

 If you have a separate /boot partition, the kernel and initrd are
 relative to it.

 I never have a separate /boot (or /home) partition, as I have never
 managed to figure out a reason for it. It is just unnecessary
 complexity without benefit. I always have 3 versions of fedora
 installed (current, current-1 and current+1), so each has a root (/)
 partition that contains everything, the whole kit and 'kabootle'.

I mean by grub root the root=(hdX,Y) line in grub1's grub.conf and
the set root=(hdX,Y) and search --no-floppy --fs-uuid --set=UUID
lines in grub2's /grub.cfg.

The default Fedora install, up to now, has been to have a separate
/boot in order to use LVM for /. That's one reason and there are
others (for example, some people don't mount /boot at boot; they
only mount it to update the kernel and the boot config and then
unmount it).
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Tom H
On Thu, Aug 25, 2011 at 2:21 PM, Petrus de Calguarium
pguec...@gmail.com wrote:
 Petrus de Calguarium wrote:

 I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
 experimenting happily with F16, but I am unable to add F15 to the
 grub2 boot menu.

 I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
 /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
 even though it is in grub.cfg.

 I figured out that no matter what you put into /etc/grub.d/40_custom,
 it will never show up in the grub2 menu, even though it does show up
 in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on
 40_custom after editing and that the permissions remain the same as
 the other files.

The standard 40_custom is:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

and it hasn't always worked for me. I prefer to use:

#!/bin/sh
cat EOF
menuentry ... {
set root=
search ...
linux ...
initrd...
}
EOF
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Adam Williamson
On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
 Petrus de Calguarium wrote:
 
  I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
  experimenting happily with F16, but I am unable to add F15 to the
  grub2 boot menu.
  
  I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
  /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
  even though it is in grub.cfg.
 
 I figured out that no matter what you put into /etc/grub.d/40_custom, 
 it will never show up in the grub2 menu, even though it does show up 
 in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on 

did you run 'update_grub'? it seems to be needed after changing grub2
config. just like lilo! ahh, the good old days.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 03:16:25PM -0700, Adam Williamson wrote:
 On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
  Petrus de Calguarium wrote:
  
 
 did you run 'update_grub'? it seems to be needed after changing grub2
 config. just like lilo! ahh, the good old days.

You mean the command detailed in the Ubuntu docs that doesn't seem to
exist in F16?   Someone better get on the Fedora QA guys about
that...oh...wait   :)


Hopefully, soon Fedora will have its own docs, detailing the
differences.  Unless a change is made, an F16 64 bit on a VM
installed today does not have an update-grub, (by any name, such as
update_grub, update-grub2, or whatever.)


No, Petrus had the command correctly, grub2-mkconfig -o
/boot/grub/grub.cfg  (And Petrus, thanks for the tip about making a
custom.cfg, which does, as you pointed out, avoid the need to run a
command.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Kendra: I call it Mr. Pointy.
Buffy: You named your stake?
Kendra: Yes.
Buffy: Remind me to get you a stuffed animal.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Adam Williamson
On Thu, 2011-08-25 at 18:54 -0400, Scott Robbins wrote:
 On Thu, Aug 25, 2011 at 03:16:25PM -0700, Adam Williamson wrote:
  On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
   Petrus de Calguarium wrote:
   
  
  did you run 'update_grub'? it seems to be needed after changing grub2
  config. just like lilo! ahh, the good old days.
 
 You mean the command detailed in the Ubuntu docs that doesn't seem to
 exist in F16?   Someone better get on the Fedora QA guys about
 that...oh...wait   :)
 
 
 Hopefully, soon Fedora will have its own docs, detailing the
 differences.  Unless a change is made, an F16 64 bit on a VM
 installed today does not have an update-grub, (by any name, such as
 update_grub, update-grub2, or whatever.)
 
 
 No, Petrus had the command correctly, grub2-mkconfig -o
 /boot/grub/grub.cfg  (And Petrus, thanks for the tip about making a
 custom.cfg, which does, as you pointed out, avoid the need to run a
 command.

ah. can you tell I didn't actually do much to grub2 yet? =) fortunately
it worked okay in all my tests.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Peter G.
Adam Williamson wrote:

 did you run 'update_grub'?

no I didn't. first I heard of it. that might 
explain it. but I learned something and I think I 
prefer the custom.cfg method, anyway :-)

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Peter G.
Peter G.  wrote:

 Adam Williamson wrote:
 
 did you run 'update_grub'?
 
 no I didn't. first I heard of it. that might
 explain it. but I learned something and I think 
I
 prefer the custom.cfg method, anyway :-)
 

I don't seem to have that program, or if I do, 
it's not in my/root's path.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu

2011-08-25 Thread Peter G.
Tom H wrote:

 The default Fedora install, up to now, has been to have a separate
 /boot in order to use LVM for /. That's one reason and there are
 others (for example, some people don't mount /boot at boot; they
 only mount it to update the kernel and the boot config and then
 unmount it).

I never figured out a use for LVM, either ;-) I think I read it's going 
bye-bye, isn't 
it? Something about btrfs making it irrelevant?

And I don't know why you wouldn't want to mount /boot at boot. But I am just 
running a 
home desktop and a laptop computer :-) Nothing quirky, just what a man needs to 
be on 
the web.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
 Adam Williamson wrote:
 
  did you run 'update_grub'?
 
 no I didn't. first I heard of it. that might 
 explain it. but I learned something and I think I 
 prefer the custom.cfg method, anyway :-)

Note the earlier exchange of emails.  update_grub is an Ubuntu command.
In Fedora, changes are done by running grub2-mkconfig -o
/boot/grub/grub.cfg

However, like you, I prefer the custom.cfg since it avoids having to run
a command after a change.
 

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: A, my head. I think I'm sobering up. It's horrible. 
Ah... God... I wish I was dead. 
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test