Bug#591289: grub-probe returns wrong results

2010-08-01 Thread Holger Schuh
Package: grub-common
Version: 1.96+20080724-16
Severity: important


grub-common: /usr/sbin/grub-probe
DebianAufMacBook:~# grub-probe -t drive /
(hd0,3)
DebianAufMacBook:~# grub-probe  --target=device /
/dev/sda3

should return (hd0,2)

-- System Information:
Debian Release: 5.0.5
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-common depends on:
ii  base-files  5lenny6  Debian base system miscellaneous f
ii  libc6   2.7-18lenny4 GNU C Library: Shared libraries

grub-common recommends no packages.

Versions of packages grub-common suggests:
pn  multiboot-doc none (no description available)

-- no debconf information



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



Bug#591289: closed by Colin Watson cjwat...@debian.org (Re: Bug#591289: grub-probe returns wrong results)

2010-08-01 Thread Holger Schuh
thank you for your fast response.
Problem is GRUB_LEGACY_0_BASED_PARTITIONS=1 is not set by default and
update-grub (using grub-probe and updating grub.cfg) will ruin my
system whenever invoked  which will be the case whenever a new
kernel will be installed.

Don't like that,

Holger

2010/8/1 Debian Bug Tracking System ow...@bugs.debian.org:
 This is an automatic notification regarding your Bug report
 which was filed against the grub-common package:

 #591289: grub-probe returns wrong results

 It has been closed by Colin Watson cjwat...@debian.org.

 Their explanation is attached below along with your original report.
 If this explanation is unsatisfactory and you have not received a
 better one in a separate message then please contact Colin Watson 
 cjwat...@debian.org by
 replying to this email.


 --
 591289: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591289
 Debian Bug Tracking System
 Contact ow...@bugs.debian.org with problems


 -- Weitergeleitete Nachricht --
 From: Colin Watson cjwat...@debian.org
 To: 591289-cl...@bugs.debian.org
 Date: Sun, 1 Aug 2010 21:39:47 +0100
 Subject: Re: Bug#591289: grub-probe returns wrong results
 On Sun, Aug 01, 2010 at 08:59:49PM +0200, Holger Schuh wrote:
 grub-common: /usr/sbin/grub-probe
 DebianAufMacBook:~# grub-probe -t drive /
 (hd0,3)
 DebianAufMacBook:~# grub-probe  --target=device /
 /dev/sda3

 should return (hd0,2)

 If you want that, set GRUB_LEGACY_0_BASED_PARTITIONS=1 in the
 environment.  For GRUB 2 (Debian's default GRUB version nowadays),
 grub-probe's behaviour is correct.

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



 -- Weitergeleitete Nachricht --
 From: Holger Schuh holgersc...@googlemail.com
 To: Debian Bug Tracking System sub...@bugs.debian.org
 Date: Sun, 01 Aug 2010 20:59:49 +0200
 Subject: grub-probe returns wrong results
 Package: grub-common
 Version: 1.96+20080724-16
 Severity: important


 grub-common: /usr/sbin/grub-probe
 DebianAufMacBook:~# grub-probe -t drive /
 (hd0,3)
 DebianAufMacBook:~# grub-probe  --target=device /
 /dev/sda3

 should return (hd0,2)

 -- System Information:
 Debian Release: 5.0.5
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash

 Versions of packages grub-common depends on:
 ii  base-files                  5lenny6      Debian base system miscellaneous 
 f
 ii  libc6                       2.7-18lenny4 GNU C Library: Shared libraries

 grub-common recommends no packages.

 Versions of packages grub-common suggests:
 pn  multiboot-doc                 none     (no description available)

 -- no debconf information







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



Bug#591289: closed by Colin Watson cjwat...@debian.org (Re: Bug#591289: grub-probe returns wrong results)

2010-08-01 Thread Colin Watson
On Mon, Aug 02, 2010 at 02:41:42AM +0200, Holger Schuh wrote:
 Problem is GRUB_LEGACY_0_BASED_PARTITIONS=1 is not set by default and
 update-grub (using grub-probe and updating grub.cfg) will ruin my
 system whenever invoked  which will be the case whenever a new
 kernel will be installed.

Uh, but if you have a grub.cfg rather than a menu.lst then you're
definitely using GRUB 2, and GRUB 2 has always used 1-based partitions
rather than 0-based partitions, so (hd0,2) is definitely wrong and
(hd0,3) is definitely correct.  Perhaps you could describe your setup in
more detail, from the start?

-- 
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