When i updated grub 0.97-r3 to 0.97-r4, it has started to give the following error when it executes the command "unhide (hd0,0)" to boot Microsoft Windows XP Home Edition. Error 22: No such partition My HD is partitioned this way: /dev/sda1 - Windows (hd0,0) /dev/sda2 - Linux / (hd0,1) /dev/sda3 - Linux swap (hd0,2) /dev/sda4 - HP Recovery (hd0,3) After downgraded to grub 0.97-r3 the problem stops. Reproducible: Always Steps to Reproduce: 1. Install grub-0.97-r4 2. Executes the command unhide (hdX,Y), where X and Y is a number identifing your HD and partition, respectively. Actual Results: When i choose to boot Windows XP, it shows on the screen: unhide (hd0,0) Error 22: No such partition Expected Results: It should boots Windows XP normally. Here i have just one SATA HD, i don't know if the bug affects a second HD, or a non-SATA HD. My motherboard is from nVIDIA and the computer that i saw this bug was a HP Laptop: dv6150br. My laptop isn't here right now, so i can't post emerge --info now, but i think it doesn't have useful information for that bug.
emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686) ================================================================= System uname: 2.6.23-gentoo-r8 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-50 Timestamp of tree: Tue, 26 Feb 2008 22:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.localhost.net.ar/" LANG="pt_BR" LC_ALL="pt_BR" LINGUAS="pt_BR en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X acl alsa apache2 audiofile berkdb bitmap-fonts bzip2 cdr cdrparanoia cli cracklib crypt cups dri dvd dvdr fortran ftp gdbm gif glitz gpm hal iconv imagemagick ipv6 isdnlog java javascript jpeg kde midi mp3 msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spl ssl svg swat tcpd truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wma x86 xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Why do you unhide instead of using chainloader?
I also discovered this problem and as I use two different Windows-Installations I absolutly *need* to hide/unhide partitions. Therefore I meanwhile had to downgrade and mask 0.97-r4 on my system. My fdisk: /dev/sda1 * 1 7971 60260728+ 7 HPFS/NTFS /dev/sda2 7972 13389 40960080 17 Hidden HPFS/NTFS /dev/sda3 13390 19925 49412160 f W95 Ext. (LBA) /dev/sda4 19926 20673 5654880 12 Compaq Diagnostics /dev/sda5 13390 13398 68008+ 83 Linux /dev/sda6 13399 13693 2230168+ 82 Linux Swap / Solaris /dev/sda7 13694 19925 47113888+ 83 Linux
It gives me the same error message using parttype command emerge --info Portage 2.1.4.4 (!../usr/portage/overlay/profiles/arlinux, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r10 i686) ================================================================= System uname: 2.6.23-tuxonice-r10 i686 Intel(R) Pentium(R) M processor 1000MHz Timestamp of tree: Wed, 27 Feb 2008 07:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-altarisoluzione-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CHOST="i686-altarisoluzione-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LINGUAS="it_IT it en_US en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/portagetmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://server1.mediglia.altarisoluzione.com/gentoo-portage" USE="X a52 acl acpi alsa arts audiofile berkdb bitmap-fonts bluetooth branding bzip2 cairo cddb cdparanoia cdr cjk cli cracklib crypt cups curl dbus dga dri dv dvd dvdr dvdread eds emboss encode esd evo exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm gif gmp gpm gs gstreamer gtk gtkhtml guile hal iconv idn imagemagick imlib ipv6 isdnlog ithreads java javamail jikes jpeg jpeg2k kde lcms ldap log4j logrotate mad mailwrapper mbox midi mikmod mmx mmxext mng motif mozdevelop mp3 mpeg mplayer mudflap musicbrainz mysql ncurses net nls nptl nptlonly nsplugin oci8-instant-client ofx ogg opengl openmp oracle oss pam pcmcia pcre pda pdf perl pic png pppd python qt3 qt4 quicktime rdesktop readline real reflection rle ruby samba sdl session slang snmp spell spl sse sse2 ssl svg tcl tcpd threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wifi win32codecs wmf x86 xcomposite xine xinerama xml xorg xv xvid zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it_IT it en_US en" USERLAND="GNU" VIDEO_CARDS="i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS fdisk -l /dev/hda Disk /dev/hda: 40.0 GB, 40000536576 bytes 255 heads, 63 sectors/track, 4863 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x01590158 Device Boot Start End Blocks Id System /dev/hda1 1 9 72261 83 Linux /dev/hda2 * 10 1006 8008402+ 7 HPFS/NTFS /dev/hda3 1007 4863 30981352+ 5 Extended /dev/hda5 1007 2127 9004401 8e Linux LVM /dev/hda6 2128 2252 1004031 82 Linux swap / Solaris /dev/hda7 2253 4863 20972826 8e Linux LVM cat /boot/grub/grub.conf timeout 10 default saved password --md5 $1$wYaDV0$ONOAo1lM/bKjzXfw/RTaa/ title=Gentoo Linux parttype (hd0,4) 0x8e parttype (hd0,6) 0x8e savedefault root (hd0,0) kernel /vmlinuz quiet rootdev=system/root resume=swap:/dev/data/hibernate lapic vga=0x317 splash=verbose CONSOLE=/dev/tty1 initrd /initrd title=Windows XP parttype (hd0,4) 0x83 parttype (hd0,6) 0x83 savedefault rootnoverify (hd0,1) makeactive chainloader +1
Ok, i've found the source of this, I'm just reviewing the rest of the code changes to see that it isn't in other spots too. Blame the indentation style of Grub's coders confusing the author of the GPT patch.
Fixed in r5, please test it from the package.mask.
I have just tested grub 0.97-r5 and my problem is now solved (unhide command). My Windows XP partition booted without any problems. I couldn't see if the problem with parttype command mentioned by Bruno Redondi was fixed too. Thanks Robin Johnson!
Would this issue warrant masking 0.97-r4? I'm using hide/unhide to separate DOS/Windows installations from one another, and without this functionality, I can't switch between them. Therefore I'd not consider 0.97-r4 stable enough to be KEYWORDed x86. Is reKEYWORDing back to ~x86 possible, especially with regard to bug 211419?
Martin.vGagern: they are not used by a large number of users at all - so we opted not to, rather to get this tested more. bruno.redondi: could you please test your parttype stuff with r5?
Meanwhile I tested r5 with my configuration and this release is working fine with two parallel WindowsXP (just using it typing this). Thanks
with r5 parttype command works as expected