Bug#590231: improperly nested partition?
Michael Deegan
bugs at deegan.id.au
Mon Oct 4 03:59:44 UTC 2010
Package: grub-pc
Version: 1.98+20100804-4
Severity: normal
I too get lots of spam from grub-probe whenever grub is updated:
root at wibble:/home/michael# grub-probe -t drive /usr
grub-probe: warn: Discarding improperly nested partition (hd1,msdos1,msdos1).
grub-probe: warn: Discarding improperly nested partition (hd1,msdos1,msdos1).
grub-probe: warn: Discarding improperly nested partition (hd1,msdos1,msdos1).
(hd1,msdos5)
Yet the partitioning -looks- normal:
root at wibble:/home/michael# fdisk -l /dev/sdb
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 261 2096451 82 Linux swap / Solaris
/dev/sdb2 262 783 4192965 83 Linux
/dev/sdb3 784 4176 27254272+ 5 Extended
/dev/sdb4 4177 121601 943216312+ 8e Linux LVM
/dev/sdb5 784 2088 10482381 83 Linux
/dev/sdb6 2089 3132 8385898+ 83 Linux
/dev/sdb7 3133 3654 4192933+ 83 Linux
/dev/sdb8 3655 4176 4192933+ 83 Linux
Following the advice of http://permalink.gmane.org/gmane.comp.boot-loaders.grub.devel/16803:
root at wibble:/home/michael# file -s /dev/sdb1
/dev/sdb1: Linux/i386 swap file (new style), version 1 (4K pages), size 524111 pages, no label, UUID=cea20449-cab8-4ad1-ba4e-3a1f20ca59af
root at wibble:/home/michael# dd if=/dev/sdb1 of=/tmp/b.mbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 4.048e-05 s, 12.6 MB/s
root at wibble:/home/michael# file /tmp/b.mbr
/tmp/b.mbr: x86 boot sector; partition 1: ID=0x83, starthead 2, startsector 63, 50331519 sectors, extended partition table (last)\011, code offset 0x0
Perhaps grub-probe thinks that my /dev/sdb1 is an Extended partition, rather than swap?
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/821e9300-f6b6-494a-bcf8-589df84fc5bf / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sdb5 /usr ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda6 /usr/local ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda5 /var ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/wibble-home /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/wibble-files /mnt/files ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/mapper/wibble-media /mnt/media ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/wibble-photos /mnt/photos ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sdd1 /mnt/temp ntfs ro,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST3250620AS_5QF0Q6SD
(hd1) /dev/disk/by-id/ata-WDC_WD1001FALS-00J7B1_WD-WMATV4711126
(hd2) /dev/disk/by-id/ata-WDC_WD5000AAKS-00C8A0_WD-WCAS87294473
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-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="0"
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
}
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 1bda6b44-4e6f-4826-8da0-48b754e5d529
if loadfont /share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 821e9300-f6b6-494a-bcf8-589df84fc5bf
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 821e9300-f6b6-494a-bcf8-589df84fc5bf
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 821e9300-f6b6-494a-bcf8-589df84fc5bf
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=821e9300-f6b6-494a-bcf8-589df84fc5bf ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 821e9300-f6b6-494a-bcf8-589df84fc5bf
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=821e9300-f6b6-494a-bcf8-589df84fc5bf ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
### 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 ###
### 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 ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (500, 'stable'), (490, 'testing'), (470, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii grub-common 1.98+20100804-4 GRand Unified Bootloader, version
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-3 The Linux Kernel Device Mapper use
ii ucf 3.0025+nmu1 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.6 common files for the Debian Deskto
-- debconf-show failed
-MD
--
-------------------------------------------------------------------------------
Michael Deegan Hugaholic http://www.deegan.id.au/
--------------------- Guvax bs vg nf ribyhgvba va npgvba. ---------------------
More information about the Pkg-grub-devel
mailing list