Fedora Linux Support Community & Resources Center
  #1  
Old 12th March 2012, 08:26 PM
Evil-I Offline
Registered User
 
Join Date: Nov 2004
Posts: 100
windows_7firefox
Grub2 error: invalid signature

Hi All,

Was fiddling with the KDE grub2 editor to get my windows 7 partition as my default boot on my main desktop. It all seemed to be working fine and gave me the options I wanted, unfortunately now when booting windows it throws

error: invalid signature
Press any key to continue

Which throws me back to the main menu. My fedora items boot fine.

I'm wondering if its a problem where its not recognising the drive correctly (its an Intel based ICHR10 RAID0 array).

Weirdly of course, other than having my windows 7 install as default rather than my Fedora boot, nothing has changed.

Any thoughts?

I'm typing this on my lappy, but will log into Fedora on my desktop to post further information.

Thanks,

Mike

---------- Post added at 06:26 PM ---------- Previous post was at 06:13 PM ----------

Output of:
fdsik -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x12f55570

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 543027199 271512576 7 HPFS/NTFS/exFAT
/dev/sda2 543027200 544051199 512000 83 Linux
/dev/sda3 544051200 625154047 40551424 8e Linux LVM

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x94e8df7f

Device Boot Start End Blocks Id System
/dev/sdb1 2048 312578047 156288000 6 FAT16

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002605e

Device Boot Start End Blocks Id System
/dev/sdc1 206848 3907035135 1953414144 7 HPFS/NTFS/exFAT

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/md127: 320.1 GB, 320078872576 bytes
255 heads, 63 sectors/track, 38914 cylinders, total 625154048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x12f55570

Device Boot Start End Blocks Id System
/dev/md127p1 * 2048 543027199 271512576 7 HPFS/NTFS/exFAT
/dev/md127p2 543027200 544051199 512000 83 Linux
/dev/md127p3 544051200 625154047 40551424 8e Linux LVM

Disk /dev/mapper/vg_thanatos-lv_swap: 8455 MB, 8455716864 bytes
255 heads, 63 sectors/track, 1028 cylinders, total 16515072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_thanatos-lv_swap doesn't contain a valid partition table

Disk /dev/mapper/vg_thanatos-lv_root: 33.1 GB, 33051115520 bytes
255 heads, 63 sectors/track, 4018 cylinders, total 64552960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/vg_thanatos-lv_root doesn't contain a valid partition table

Disk /dev/md124: 2000.4 GB, 2000404086784 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907039232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x0002605e

Device Boot Start End Blocks Id System
/dev/md124p1 206848 3907035135 1953414144 7 HPFS/NTFS/exFAT


As you can see the windows boot partition should be: /dev/md127p1
Reply With Quote
  #2  
Old 12th March 2012, 08:45 PM
Evil-I Offline
Registered User
 
Join Date: Nov 2004
Posts: 100
linuxfirefox
Re: Grub2 error: invalid signature

Here's /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 [ "${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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.2.9-2.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.2.9-2.fc16.x86_64 ...'
linux /vmlinuz-3.2.9-2.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.2.9-2.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.2.9-2.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.2.9-2.fc16.x86_64 ...'
linux /vmlinuz-3.2.9-2.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro single rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.2.9-2.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.2.7-1.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.2.7-1.fc16.x86_64 ...'
linux /vmlinuz-3.2.7-1.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.2.7-1.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.2.7-1.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.2.7-1.fc16.x86_64 ...'
linux /vmlinuz-3.2.7-1.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro single rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.2.7-1.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio

echo 'Loading Linux 3.1.0-7.fc16.x86_64 ...'
linux /vmlinuz-3.1.0-7.fc16.x86_64 root=/dev/mapper/vg_thanatos-lv_root ro single rd.dm=0 rd.md.uuid=5abfdc1b:406ddf41:09704cb7:b274da82 SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 quiet rhgb KEYTABLE=uk rd.lvm.lv=vg_thanatos/lv_swap rd.md.uuid=5b271d0e:76f9282c:98011cf4:22c55b05 rd.lvm.lv=vg_thanatos/lv_root
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.x86_64.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/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/md127p1)" --class windows --class os {
chainloader +1
}
### 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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

---------- Post added at 06:45 PM ---------- Previous post was at 06:28 PM ----------

Okay, so tracked down the error.

If I edit the grub command to include:
set root=(hd0,1)
it works.

So I can edit the cfg file manually to include this, but it does reccomend you don't edit it.
What should I do?

Thanks,

E-I
Reply With Quote
  #3  
Old 3rd June 2012, 06:47 PM
questargon Offline
Registered User
 
Join Date: Sep 2008
Posts: 3
windows_7firefox
Re: Grub2 error: invalid signature

Thank you for this post, Evli-I. I had the same problem when I upgraded from FC16 to FC17. After putting "set root=(hd0,1)" to start my olde Windows XP from /dev/sda1, it suddenly worked.

There is also an error message just before the GRUP-Selection-Window appeares at boot, but it flashes too fast for me to read. It says something like "error: file...." or something like that.

The file, that I edited, was /etc/grub/grub.cfg. The part for Windows XP looks like this now:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-/dev/sda1' {
set root=(hd0,1)
insmod part_msdos
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Reply With Quote
Reply

Tags
error, grub2, invalid, signature

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount error - error mounting /dev/root on sysroot as ext3 : invalid argument marko Using Fedora 7 5th February 2013 12:00 PM
Invalid Partition Table on /dev/sda - Wrong Signature 0 ulasergin Installation, Upgrades and Live Media 5 30th June 2005 07:58 AM
Yum upgrade error :( Error: MD5 Signature leoleMCH Using Fedora 4 28th June 2005 11:46 PM


Current GMT-time: 16:06 (Thursday, 27-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Boeing 737-700 Travel Photos - Tadioto Bar Instagram Photos - King Street, Aberdeen Photos