BurgTeam / burg-wiki

Automatically exported from code.google.com/p/burg
0 stars 0 forks source link

FakeRaid/mdraid partition not detected by BURG but is detected by GRUB #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Burg and themes  
2. Run sudo update-burg
3.

What is the expected output? What do you see instead?
GRUB sees FakeRaid (and memtest)
output of update-grub:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-24-generic
Found initrd image: /boot/initrd.img-2.6.35-24-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/mapper/via_bhejggidfc1
done

the Windows 7 boot entry looks like this:
insmod part_ms_dos
insmod ntfs
set root = '(/dev/mapper/via_bhejggidfc, msdos1)'
search --no-floppy --fs-uuid --set <uuid sting here>
chainloader +1

BURG does not
output of update-burg:
Generating burg.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-24-generic
Found initrd image: /boot/initrd.img-2.6.35-24-generic
Found Windows 7 (loader) on /dev/mapper/via_bhejggidfc1
/usr/sbin/burg-probe: error: cannot find a GRUB drive for 
/dev/mapper/via_bhejggidfc1.  Check your device.map.

also, the windows 7 boot information gets reduced to:
chainloader +1

What version of the product are you using? On what operating system?
Ubuntu 10.10 x64 (single drive ext4)
Windows 7 (Via vt8237 FakeRaid, multiple partitions)

Please provide any additional information below.
GRUB version 1.98+20100804-5ubuntu3 has no problem with fakeraid
Please note that I am not trying to install GRUB or BURG on a fakeraid, only 
trying to get it to recognize it and add it to the list without manually having 
to edit the boot command every time I install a new BURG theme. Was there a 
recent GRUB patch/code change that could be ported to BURG? It seems as there 
was an issue like this with GRUB that was fixed in the past year. Also, I 
should point out that the fakeraid partitions are fully accessible in Linux, so 
there is no issue with misconfiguration that I am aware of.

Original issue reported on code.google.com by Aes...@cfl.rr.com on 26 Dec 2010 at 4:38

GoogleCodeExporter commented 9 years ago
More information on the configuration (courtesy of boot info script 
http://sourceforge.net/projects/bootinfoscript/):

                Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Windows is installed in the MBR of /dev/sda
 => Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in 
    partition #1 for /boot/burg.
 => Windows is installed in the MBR of /dev/mapper/via_bhejggidfc

sda1: _________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:  
    Mounting failed:
mount: unknown filesystem type ''

sda2: _________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:  
    Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sda3: _________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:  
    Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sda4: _________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:  
    Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sdc1: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 10.10
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdc2: _________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

via_bhejggidfc1: 
_________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe

via_bhejggidfc2: 
_________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

via_bhejggidfc3: 
_________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

via_bhejggidfc4: 
_________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ 
_____________________________________________________

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sda1    *          2,048   225,282,047   225,280,000   7 HPFS/NTFS
/dev/sda2         225,282,048   267,338,327    42,056,280   7 HPFS/NTFS
/dev/sda3         267,338,336   308,499,389    41,161,054   7 HPFS/NTFS
/dev/sda4         308,499,392   312,600,578     4,101,187   7 HPFS/NTFS

/dev/sda1 ends after the last sector of /dev/sda
/dev/sda2 ends after the last sector of /dev/sda
/dev/sda3 ends after the last sector of /dev/sda
/dev/sda4 ends after the last sector of /dev/sda

Drive: sdc ___________________ 
_____________________________________________________

Disk /dev/sdc: 15.4 GB, 15364339200 bytes
255 heads, 63 sectors/track, 1867 cylinders, total 30008475 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdc1    *          2,048    28,473,343    28,471,296  83 Linux
/dev/sdc2          28,473,344    30,007,295     1,533,952  82 Linux swap / 
Solaris

Drive: via_bhejggidfc ___________________ 
_____________________________________________________

Disk /dev/mapper/via_bhejggidfc: 160.1 GB, 160052674560 bytes
255 heads, 63 sectors/track, 19458 cylinders, total 312602880 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/mapper/via_bhejggidfc1   *          2,048   225,282,047   225,280,000   7 
HPFS/NTFS
/dev/mapper/via_bhejggidfc2        225,282,048   267,338,327    42,056,280   7 
HPFS/NTFS
/dev/mapper/via_bhejggidfc3        267,338,336   308,499,389    41,161,054   7 
HPFS/NTFS
/dev/mapper/via_bhejggidfc4        308,499,392   312,600,578     4,101,187   7 
HPFS/NTFS

blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL        

/dev/mapper/via_bhejggidfc1 70A8E708A8E6CC22                       ntfs         

/dev/mapper/via_bhejggidfc2 01CA7DF89172C620                       ntfs         

/dev/mapper/via_bhejggidfc3 01CA7DF8946B45A0                       ntfs         

/dev/mapper/via_bhejggidfc4 01CA7DF88B8B3D00                       ntfs         

/dev/mapper/via_bhejggidfc: PTTYPE="dos" 
/dev/sda                                                via_raid_member         

/dev/sdb                                                via_raid_member         

/dev/sdc1        e958096e-f8f3-4cef-87ec-551bb1eaebd4   ext4                    

/dev/sdc2        6b830c53-ac98-4834-9e3e-ac7289f12e7d   swap                    

/dev/sdc: PTTYPE="dos" 
error: /dev/sda1: No such file or directory
error: /dev/sda2: No such file or directory
error: /dev/sda3: No such file or directory
error: /dev/sda4: No such file or directory

=============================== "ls -R /dev/mapper/" output: 
===============================
/dev/mapper:
control
via_bhejggidfc
via_bhejggidfc1
via_bhejggidfc2
via_bhejggidfc3
via_bhejggidfc4

============================ "mount | grep ^/dev  output: 
===========================

Device           Mount_Point              Type       Options

/dev/sdc1        /                        ext4       
(rw,errors=remount-ro,commit=0)
/dev/mapper/via_bhejggidfc1 /media/70A8E708A8E6CC22  fuseblk    
(rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/mapper/via_bhejggidfc4 /media/01CA7DF88B8B3D00  fuseblk    
(rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

=========================== sdc1/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
  set have_grubenv=true
  load_env
fi
set default="6"
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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1280x1024
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class 
gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    linux   /boot/vmlinuz-2.6.35-24-generic root=UUID=e958096e-f8f3-4cef-87ec-551bb1eaebd4 ro  vga=795  quiet splash
    initrd  /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu 
--class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    echo    'Loading Linux 2.6.35-24-generic ...'
    linux   /boot/vmlinuz-2.6.35-24-generic root=UUID=e958096e-f8f3-4cef-87ec-551bb1eaebd4 ro single  vga=795
    echo    'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class 
gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    linux   /boot/vmlinuz-2.6.35-22-generic root=UUID=e958096e-f8f3-4cef-87ec-551bb1eaebd4 ro  vga=795  quiet splash
    initrd  /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu 
--class gnu-linux --class gnu --class os {
    recordfail
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    echo    'Loading Linux 2.6.35-22-generic ...'
    linux   /boot/vmlinuz-2.6.35-22-generic root=UUID=e958096e-f8f3-4cef-87ec-551bb1eaebd4 ro single  vga=795
    echo    'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(hd2,msdos1)'
    search --no-floppy --fs-uuid --set e958096e-f8f3-4cef-87ec-551bb1eaebd4
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/mapper/via_bhejggidfc1)" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/mapper/via_bhejggidfc,msdos1)'
    search --no-floppy --fs-uuid --set 70a8e708a8e6cc22
    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 ###

=============================== sdc1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=e958096e-f8f3-4cef-87ec-551bb1eaebd4 /               ext4    
errors=remount-ro 0       1
# swap was on /dev/sda2 during installation
UUID=6b830c53-ac98-4834-9e3e-ac7289f12e7d none            swap    sw            
  0       0

=================== sdc1: Location of files loaded by Grub: ===================

   4.5GB: boot/grub/core.img
  12.1GB: boot/grub/grub.cfg
   1.3GB: boot/initrd.img-2.6.35-22-generic
   1.4GB: boot/initrd.img-2.6.35-24-generic
   4.5GB: boot/vmlinuz-2.6.35-22-generic
   4.6GB: boot/vmlinuz-2.6.35-24-generic
   1.4GB: initrd.img
   1.3GB: initrd.img.old
   4.6GB: vmlinuz
   4.5GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc 
=======================

Unknown BootLoader  on sda1

Unknown BootLoader  on sda2

Unknown BootLoader  on sda3

Unknown BootLoader  on sda4

=============================== StdErr Messages: ===============================

hexdump: /dev/sda1: No such file or directory
hexdump: /dev/sda1: No such file or directory
hexdump: /dev/sda2: No such file or directory
hexdump: /dev/sda2: No such file or directory
hexdump: /dev/sda3: No such file or directory
hexdump: /dev/sda3: No such file or directory
hexdump: /dev/sda4: No such file or directory
hexdump: /dev/sda4: No such file or directory

Original comment by Aes...@cfl.rr.com on 26 Dec 2010 at 3:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
looking at the GRUB change log there appears to be a couple dmraid related 
updates after the changelog included in the BURG source leaves off. 
unfortunately there appears to be several other updates as well, including a 
reorganized file layout of the source

Original comment by Aes...@cfl.rr.com on 28 Dec 2010 at 11:16

GoogleCodeExporter commented 9 years ago
replacing burg-probe binary (/usr/sbin/burg-probe) with the current grub-probe 
works as far as fixing the mdraid detection, but it's a quick and dirty fix at 
best.

Original comment by Aes...@cfl.rr.com on 31 Dec 2010 at 1:57

GoogleCodeExporter commented 9 years ago
I had a similar problem which required me to replace burg-probe with grub-probe 
in order to get it to work with my raid set up too.  I was trying install burg 
to the MBR, but it wouldn't recognize a few partitions on my array.  In 
addition to that, I  also had to replace burg-setup with grub-setup in order to 
get burg to install.

Original comment by jing...@gmail.com on 8 Jul 2011 at 1:47

GoogleCodeExporter commented 9 years ago
sudo burg-install /dev/mapper/isw_daahdihbbc_System
/usr/sbin/burg-setup: error: cannot guess the root device. Specify the option 
`--root-device'.

Original comment by vldm...@gmail.com on 2 Nov 2011 at 3:51