Bug#604155: Windows 7 not in grub menu

2011-01-04 Thread Colin Watson
On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
 # /etc/grub.d/30_os-prober
 Found Windows 7 (loader) on /dev/sda1
 menuentry Windows 7 (loader) (on /dev/sda1) {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a23821f33821c6df
chainloader +1
 }

 and this is update-grub:

 # update-grub
 Generating grub.cfg ...
 Found background image: moreblue-orbit-grub.png
 Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
 Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
 Found linux image: /boot/vmlinuz-2.6.32-5-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-amd64
 done

Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
just 'set -x' near the top, and then run update-grub again and send us
the output.  (You should revert the change to
/usr/lib/grub/grub-mkconfig_lib afterwards.)

-- 
Colin Watson   [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2011-01-04 Thread Daniel Pocock



Colin Watson wrote:

On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
  

# /etc/grub.d/30_os-prober
Found Windows 7 (loader) on /dev/sda1
menuentry Windows 7 (loader) (on /dev/sda1) {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set a23821f33821c6df
   chainloader +1
}

and this is update-grub:

# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done



Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
just 'set -x' near the top, and then run update-grub again and send us
the output.  (You should revert the change to
/usr/lib/grub/grub-mkconfig_lib afterwards.)

  
Here it is - I also did an install on another box with Windows 7 already 
on the disk, didn't encounter the same problem, in each case I have been 
using the HTTP mirror to get the latest available squeeze packages and 
not just those in the beta DVD image.


r...@debian6:/home/daniel# update-grub
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x/usr/sbin/grub-probe = x
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ echo /boot/grub
+ sed s,x,x,
+ GRUB_PREFIX=/boot/grub
+ [ x = x ]
+ id -u
+ EUID=0
+ [ 0 != 0 ]
+ set /usr/sbin/grub-mkdevicemap dummy
+ test -f /usr/sbin/grub-mkdevicemap
+ :
+ set /usr/sbin/grub-probe dummy
+ test -f /usr/sbin/grub-probe
+ :
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ :
+ /usr/sbin/grub-probe --target=device /
+ GRUB_DEVICE=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ GRUB_DEVICE_UUID=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ /usr/sbin/grub-probe --target=device /boot
+ GRUB_DEVICE_BOOT=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ GRUB_DEVICE_BOOT_UUID=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ /usr/sbin/grub-probe --target=fs /
+ GRUB_FS=ext2
+ test -f /etc/default/grub
+ . /etc/default/grub
+ GRUB_DEFAULT=0
+ GRUB_TIMEOUT=5
+ lsb_release -i -s
+ GRUB_DISTRIBUTOR=Debian
+ GRUB_CMDLINE_LINUX_DEFAULT=quiet
+ GRUB_CMDLINE_LINUX=
+ GRUB_DISABLE_OS_PROBER=true
+ [ x != x ]
+ termoutdefault=0
+ [ x = x ]
+ GRUB_TERMINAL_OUTPUT=gfxterm
+ termoutdefault=1
+ [ xgfxterm = xgfxterm ]
+ test -e /boot/grub/gfxterm.mod
+ [ ! -s /boot/grub/video.lst ]
+ [ -n  ]
+ path=/usr/share/grub/unicode.pf2
+ is_path_readable_by_grub /usr/share/grub/unicode.pf2
+ path=/usr/share/grub/unicode.pf2
+ test -e /usr/share/grub/unicode.pf2
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
+ :
+ return 0
+ GRUB_FONT_PATH=/usr/share/grub/unicode.pf2
+ [ unicode = ascii ]
+ break 2
+ [ -z /usr/share/grub/unicode.pf2 ]
+ export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT 
GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES 
GRUB_PREFIX
+ export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET 
GRUB_TIMEOUT GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON 
GRUB_TIMEOUT_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_DISTRIBUTOR 
GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN 
GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT 
GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND 
GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY 
GRUB_DISABLE_NETBSD_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE 
GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER 
GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_BADRAM

+ test x/boot/grub/grub.cfg != x
+ rm -f /boot/grub/grub.cfg.new
+ exec
+ chmod 400 /boot/grub/grub.cfg.new
+ echo Generating grub.cfg ...
Generating grub.cfg ...
+ cat
+ grub_file_is_not_garbage /etc/grub.d/00_header
+ test -f /etc/grub.d/00_header
+ return 0
+ test -x /etc/grub.d/00_header
+ echo
+ echo ### BEGIN /etc/grub.d/00_header ###
+ /etc/grub.d/00_header
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ [ x0 = x ]
+ [ x0 = xsaved ]
+ [ x5 = x ]
+ [ x = x ]
+ GRUB_GFXMODE=640x480
+ [ x = x ]
+ GRUB_DEFAULT_BUTTON=0
+ [ x0 = xsaved ]
+ [ x = x ]
+ GRUB_TIMEOUT_BUTTON=5
+ cat
+ [ x != x ]
+ cat
+ cat
+ [ -n  ]
+ cat /boot/grub/video.lst
+ cat
+ cat
+ cat
+ cat
+ cat
+ 

Bug#604155: Windows 7 not in grub menu

2011-01-04 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 01/04/2011 10:02 PM, Daniel Pocock wrote:


 Colin Watson wrote:
 On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
  
 # /etc/grub.d/30_os-prober
 Found Windows 7 (loader) on /dev/sda1
 menuentry Windows 7 (loader) (on /dev/sda1) {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a23821f33821c6df
chainloader +1
 }

 and this is update-grub:

 # update-grub
 Generating grub.cfg ...
 Found background image: moreblue-orbit-grub.png
 Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
 Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
 Found linux image: /boot/vmlinuz-2.6.32-5-amd64
 Found initrd image: /boot/initrd.img-2.6.32-5-amd64
 done
 

 Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
 just 'set -x' near the top, and then run update-grub again and send us
 the output.  (You should revert the change to
 /usr/lib/grub/grub-mkconfig_lib afterwards.)

   

 + GRUB_DISABLE_OS_PROBER=true
You disabled os_probe in etc/default/grub. So this was the correct behavior

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




signature.asc
Description: OpenPGP digital signature


Bug#604155: Windows 7 not in grub menu

2011-01-04 Thread Daniel Pocock



Vladimir 'φ-coder/phcoder' Serbinenko wrote:

On 01/04/2011 10:02 PM, Daniel Pocock wrote:
  

Colin Watson wrote:


On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
 
  

# /etc/grub.d/30_os-prober
Found Windows 7 (loader) on /dev/sda1
menuentry Windows 7 (loader) (on /dev/sda1) {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set a23821f33821c6df
   chainloader +1
}

and this is update-grub:

# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done



Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
just 'set -x' near the top, and then run update-grub again and send us
the output.  (You should revert the change to
/usr/lib/grub/grub-mkconfig_lib afterwards.)

  
  

+ GRUB_DISABLE_OS_PROBER=true


You disabled os_probe in etc/default/grub. So this was the correct behavior

  


Thanks for this feedback - but I never remember disabling that.  It is a 
fresh install to a clean HDD from the beta1 CD.


Looking at the comments in the file, I think that one of the Xen 
packages may have done something to it (see below).  I installed Xen so 
that I could run Win7 in a VM.


I think I understand the reason why Xen packages may be doing this - 
I've had incidents on other boxes where update-grub has found VM boot 
partitions that should not be used in dom0.




$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2 /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=quiet
GRUB_CMDLINE_LINUX=

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM=0x01234567,0xfefefefe,0x89abcdef,0xefefefef

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass root=UUID=xxx parameter to 
Linux

#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY=true

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE=480 440 1

# Disable OS prober to prevent virtual machines on logical volumes from 
appearing in the boot menu.

GRUB_DISABLE_OS_PROBER=true




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-28 Thread Daniel Pocock




Subsequent to my last email, I think that the root filesystem was not 
mounted properly due to an unrelated issue, rebooting fixed it, this is 
the output from 30_os-prober:


# /etc/grub.d/30_os-prober
Found Windows 7 (loader) on /dev/sda1
menuentry Windows 7 (loader) (on /dev/sda1) {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set a23821f33821c6df
   chainloader +1
}

and this is update-grub:

# update-grub
Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done

So os_prober can find Windows, but it isn't in the menu

This is what I see in /boot/grub/grub.cfg after update-grub:

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###





--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-28 Thread Denis Laxalde
reassign 604155 grub-pc
tags 604155 - moreinfo
forcemerge 604155 568639
thanks

Hello Daniel,

Daniel Pocock wrote:
 So os_prober can find Windows, but it isn't in the menu

Thanks for the follow-up. Since grub is apparently not able to generate
the windows menu entry even after installation, I would say this is a
bug in grub rather than in the installer.
Hence, reassigning and merging with #568639 (winxp partition detected,
but not added to grub.cfg).

Cheers,

Denis  



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-27 Thread Daniel Pocock



On Mon, 22 Nov 2010 21:21:03 +0100, Daniel Pocock wrote:
  

I had already run update-grub, but that hasn't made any difference



update-grub should call the script '/etc/grub.d/30_os-prober'. What if
you call it directly? Does it return any error? You may also call
os-prober directly.
  

r...@debian6:/etc# /etc/grub.d/30_os-prober
/usr/bin/os-prober: 99: cannot create /tmp/os-prober.tMerGF/mounted-map: 
Invalid argument
/usr/bin/os-prober: 100: cannot create /tmp/os-prober.tMerGF/raided-map: 
Invalid argument

r...@debian6:/etc# mount | grep tmp
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
r...@debian6:/etc# ls -ld /tmp
drwxrwxrwt 10 root root 4096 Nov 27 12:09 /tmp

I checked disk space - it is not an issue



r...@debian6:/etc# mkdir /tmp/os-prober.tMerGF/
r...@debian6:/etc# touch /tmp/os-prober.tMerGF/mounted-map
touch: setting times of `/tmp/os-prober.tMerGF/mounted-map': No such 
file or directory



r...@debian6:/etc# touch /test1
r...@debian6:/etc# touch /tmp/test2
touch: setting times of `/tmp/test2': No such file or directory

Something funny going on in /tmp - not exactly sure what - would you 
recognise this problem, or should I look more closely?






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-25 Thread Denis Laxalde
tags 604155 + moreinfo
thanks

Hi,

On Mon, 22 Nov 2010 21:21:03 +0100, Daniel Pocock wrote:
 I had already run update-grub, but that hasn't made any difference

update-grub should call the script '/etc/grub.d/30_os-prober'. What if
you call it directly? Does it return any error? You may also call
os-prober directly.

Maybe some details about your partitions (or a complete installation
report) would be usefull.

Cheers,

Denis.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-22 Thread Lennart Sorensen
On Sat, Nov 20, 2010 at 07:07:31PM +0100, Daniel Pocock wrote:
 Package: installation-reports

 squeeze / amd64 fresh install on a Thinkpad X61s

 Windows 7 is already on the machine

 The installer told me it found Vista and asked if I want to install grub  
 to the MBR.  I agreed to install MBR.

 On rebooting, the grub menu appears and Debian is the only option.

 Checking the partition table with fdisk, I can see that Win 7 is still  
 there.

Try running 'update-grub'.

I have seen a number of cases where on install it doesn't detect windows,
but running update-grub works and detects windows.

It seems that during install it has a bug in some cases.

-- 
Len Sorensen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-22 Thread Daniel Pocock



Lennart Sorensen wrote:

On Sat, Nov 20, 2010 at 07:07:31PM +0100, Daniel Pocock wrote:
  

Package: installation-reports

squeeze / amd64 fresh install on a Thinkpad X61s

Windows 7 is already on the machine

The installer told me it found Vista and asked if I want to install grub  
to the MBR.  I agreed to install MBR.


On rebooting, the grub menu appears and Debian is the only option.

Checking the partition table with fdisk, I can see that Win 7 is still  
there.



Try running 'update-grub'.

I have seen a number of cases where on install it doesn't detect windows,
but running update-grub works and detects windows.

It seems that during install it has a bug in some cases.

  


I had already run update-grub, but that hasn't made any difference

I can boot Windows by pressing `c' in the grub menu, and using the commands

root (hd0,1)
chainloader +1
boot

The machine is a fresh install:

- Windows 7 (64 bit) fresh install onto blank disk
- Debian (amd64) installed from squeeze beta1 DVD

Is there anything else I can check to find the root cause of the 
problem?  I don't mind doing more test installs on this machine, it is 
dedicated for that purpose.








--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-22 Thread Lennart Sorensen
On Mon, Nov 22, 2010 at 09:21:03PM +0100, Daniel Pocock wrote:
 I had already run update-grub, but that hasn't made any difference

 I can boot Windows by pressing `c' in the grub menu, and using the commands

 root (hd0,1)
 chainloader +1
 boot

 The machine is a fresh install:

 - Windows 7 (64 bit) fresh install onto blank disk
 - Debian (amd64) installed from squeeze beta1 DVD

 Is there anything else I can check to find the root cause of the  
 problem?  I don't mind doing more test installs on this machine, it is  
 dedicated for that purpose.

That's strange.  I haven't seen it not work when run later.  Not sure
what the best way to debug it is.

-- 
Len Sorensen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-22 Thread Miguel Figueiredo
Hi,

A Sábado 20 Novembro 2010 18:07:31 Daniel Pocock você escreveu:
 Package: installation-reports
 
 squeeze / amd64 fresh install on a Thinkpad X61s
 
 Windows 7 is already on the machine
 
 The installer told me it found Vista and asked if I want to install grub
 to the MBR.  I agreed to install MBR.
 
 On rebooting, the grub menu appears and Debian is the only option.
 
 Checking the partition table with fdisk, I can see that Win 7 is still
 there.

What image did you use for installation?
Can you provide (gzipped!) installation logs?

On the 10th of November was released os-prober 1.40 with several fixes. Was 
this version used?

-- 
Melhores cumprimentos/Best regards,

Miguel Figueiredo
http://www.DebianPT.org




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#604155: Windows 7 not in grub menu

2010-11-20 Thread Daniel Pocock

Package: installation-reports

squeeze / amd64 fresh install on a Thinkpad X61s

Windows 7 is already on the machine

The installer told me it found Vista and asked if I want to install grub 
to the MBR.  I agreed to install MBR.


On rebooting, the grub menu appears and Debian is the only option.

Checking the partition table with fdisk, I can see that Win 7 is still 
there.






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org