Hi,
I have F18 on an i686 PC.
I have changed my boot up sequence from logical volumes to regular partitions.
Upon regenerating the grub2 boot process, the grub2 keeps creating a
/boot/grub2/grub.cfg file that refers to the non-existing logical volumes.
Hence, the boot process fails with a dracut-initqueue error.
Here is what I have done:
The system partitions are in logical volumes on a small hard disk
(/dev/VolGroup/lv_root, /dev/VolGroup/lv_var, /dev/VolGroup/lv_tmp etc.).
The home directory is on a separate big 1GB harddisk as regular partition.
The small system harddisk showed signs of break down; I repartitioned the 1GB
disk to also include the system:
sda1 256MB /boot
sda2 4GB /
sda3 1GB swap
sda4 Extended
sda5 4GB /var
sda6 1GB /tmp
sda7 50GB /srv
sda8 871GB /home
For that I copied all the files from the logical volumes to the new partitions.
I then prepared the new boot sequence after booting from a live USB boot medium:
# mount /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot
# mount /dev/sda5 /mnt/var
# mount /dev/sda6 /mnt/tmp
# mount -t proc none /mnt/proc
# mount -t sysfs sys /mnt/sys
# mount -o bind /dev /mnt/dev
# chroot /mnt /bin/bash
Then I do in the chroot I do:
# grub2-install /dev/sda
# grub2-mkconfig -o /boot/grub2/grub.cfg
# exit
then 'unmount' everything and reboot.
In the boot I
dracut-initqueue[109]: Warning: Could not boot.
I also regenerated the initramfs file with dracut; to no avail.
Why does the /boot/grub2/grub.cfg still have entries to the logical volumes?
(See below).
Any ideas?
Thank you!
Rob.
=====================
# contents of /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2
--hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2
56b2df3a-1d83-4409-9b98-e50527ee4c76
else
search --no-floppy --fs-uuid --set=root 56b2df3a-1d83-4409-9b98-e50527ee4c76
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-simple-56b2df3a-1d83-4409-9b98-e50527ee4c76' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1
44874061-1438-44f1-be46-28b4db3b9abe
else
search --no-floppy --fs-uuid --set=root 44874061-1438-44f1-be46-28b4db3b9abe
fi
echo'Loading Linux 3.11.10-100.fc18.i686.PAE ...'
linux/vmlinuz-3.11.10-100.fc18.i686.PAE
root=UUID=56b2df3a-1d83-4409-9b98-e50527ee4c76 ro rd.md=0 rd.dm=0
rd.lvm.lv=VolGroup/lv_swap vconsole.keymap=us quiet
vconsole.font=latarcyrheb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0
LANG=en_US.UTF-8
echo'Loading initial ramdisk ...'
initrd/initramfs-3.11.10-100.fc18.i686.PAE.img
}
submenu 'Advanced options for Fedora' $menuentry_id_option
'gnulinux-advanced-56b2df3a-1d83-4409-9b98-e50527ee4c76' {
menuentry 'Fedora, with Linux 3.11.10-100.fc18.i686.PAE' --class fedora --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.11.10-100.fc18.i686.PAE-advanced-56b2df3a-1d83-4409-9b98-e50527ee4c76'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1
44874061-1438-44f1-be46-28b4db3b9abe
else
search --no-floppy --fs-uuid --set=root 44874061-1438-44f1-be46-28b4db3b9abe
fi
echo'Loading Linux 3.11.10-100.fc18.i686.PAE ...'
linux/vmlinuz-3.11.10-100.fc18.i686.PAE
root=UUID=56b2df3a-1d83-4409-9b98-e50527ee4c76 ro rd.md=0 rd.dm=0
rd.lvm.lv=VolGroup/lv_swap vconsole.keymap=us quiet
vconsole.font=latarcyrheb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0
LANG=en_US.UTF-8
echo'Loading initial ramdisk ...'
initrd/initramfs-3.11.10-100.fc18.i686.PAE.img
}
menuentry 'Fedora, with Linux 3.11.10-100.fc18.i686.PAE (recovery mode)'
--class fedora --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.11.10-100.fc18.i686.PAE-recovery-56b2df3a-1d83-4409-9b98-e50527ee4c76'
{
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1
44874061-1438-44f1-be46-28b4db3b9abe
else
search --no-floppy --fs-uuid --set=root 44874061-1438-44f1-be46-28b4db3b9abe
fi
echo'Loading Linux 3.11.10-100.fc18.i686.PAE ...'
linux/vmlinuz-3.11.10-100.fc18.i686.PAE
root=UUID=56b2df3a-1d83-4409-9b98-e50527ee4c76 ro single rd.md=0 rd.dm=0
rd.lvm.lv=VolGroup/lv_swap vconsole.keymap=us quiet
vconsole.font=latarcyrheb-sun16 rhgb rd.lvm.lv=VolGroup/lv_root rd.luks=0
LANG=en_US.UTF-8
echo'Loading initial ramdisk ...'
initrd/initramfs-3.11.10-100.fc18.i686.PAE.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org