Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 25
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11

    I've tried all kinds of changes and configurations in grub.cfg, all with no luck. Boot.ini looks ok, and works when booting from sda.
    Code:
    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
    I'm not sure what to try next.

  2. #12
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    367
    added:
    more thinking. Check /boot/grub/device.map , if linux hdd is not (hd0) change it so it is and rerun update-grub "I think that's the command'. I could be way off in my thinking, so any problems it may make is your's.
    From my lst post,important that device.map is correct. I would say it is wrong, that is why grub thinks linux is on (hd1) when it should be (hd0). Linux is booting with "UUID" so it has no problem but you will notice for XP it has:

    set root='(hd0,msdos1)'
    drivemap -s (hd0) ${root}
    that would be like in grub lagacy map (hd0) (hd0), would do not a thing, and XP would not complete booting.

  3. #13
    I edited device.map and did update-grub, but it still won't work.

    grub.cfg:

    Code:
    #
    # 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="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 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='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    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='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro   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='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	echo	'Loading Linux 2.6.35-24-generic ...'
    	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single 
    	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='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro   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='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	echo	'Loading Linux 2.6.35-22-generic ...'
    	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=68cd72c4-54c6-43df-af2c-361d82883dc0 ro single 
    	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='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 68cd72c4-54c6-43df-af2c-361d82883dc0
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd1,msdos1)'
    	search --no-floppy --fs-uuid --set 984c09bb4c0994e2
    	drivemap -s (hd0) ${root}
    	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 ###
    Does anything in particular jump out from the XP entry as being wrong?

  4. $spacer_open
    $spacer_close
  5. #14
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    367
    My grub 2 does not have the search -- or insmod but I think all is good.
    It still has 'ntoskrnl.exe missing or corrupt error' ? If so I have no idea what's the problem.

    There might be something wrong with the bios programing (?), check to see if there is an update and what it is for. Or bios setting wrong, but would not have a guess what it might be. Is one hdd a PATA and one a SATA ?

    Hopefully some one else will come along and have an idea.

  6. #15
    Yeah I've tried without search and insmod, all kinds of combinations. I have installed grub-pc to both drives, changed boot order in BIOS and nothing worked. Both are sata drives. I have no idea what's wrong. I'm reading over the grub man pages and wiki's some more to see if anything jumps out. Thanks Lostfarmer for all your help so far. The BIOS is the last one, it's an older board (Abit AB9-Quad GT).

  7. #16
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    367
    It is possible every thing you tried at the grub command prompt before correcting device.map will have no testing value. They will need to be retried. They can not be expected to work if grub is set up wrong.

  8. #17
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    367
    Read GRUB 2 bootloader - Full tutorial that if device.map is changed one needs to run 'grub-install' .

    'update-grub' only updates grub.cfg and that might not be correcting all of the needed grub files.(?) If that works be sure to post back, so I will know.

  9. #18
    I did that, still getting same error.

  10. #19
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    367
    When you make changes to sucsesfully boot in XP, does the MBR contain a standard MS boot code ? Is XP on a dynamic hdd ?
    Did you try having grub chainload to the XP hdd's MBR ?

    set root=(hd1)
    drivemap -s (hd0) ${root}
    chainloader +1

    I am thinking it is a progam problem with the bios or you have some XP installed program that's causeing problems. I do not think it is grub. You could install on XP 'eacy bcd' or 'grub4dos' for the duel boot menu.

  11. #20
    XP is on a basic partition, the whole drive sda. When I set BIOS to boot from that drive, XP loads fine (unless grub is installed to that drive). I tried the entry you posted but it didn't work. That was after I edited device.map and did grub-install and update-grub. I have tried all the same grub.cfg entries with grub installed to /dev/sdb as well as /dev/sda. I get the same errors when grub is installed on either drive. I even tried reverting to grub legacy and still got the same errors.
    Last edited by isom; 01-08-2011 at 10:18 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •