Skip to main content

Thread: Adding XP to GRUB


ubuntu 10.10 installed on clean ext4 external usb drive.
ext4 partition /home.
added 5gb ntfs partition xp.
attempted install xp onto usb drive on laptop without internal hdd failed (pci.sys?) repeatedly.

moved usb drive laptop internal hdd , installed xp 5 gb ntfs partition...however, mbr went internal hdd of second laptop.

transferred boot.ini laptop 2 usb drive cannot figure out how grub can dual boot.

tried add line 40_custom doesn't seem come in grub menu:

code:
#  # not edit file  #  # automatically generated grub-mkconfig using templates  # /etc/grub.d , settings /etc/default/grub  #    ### begin /etc/grub.d/00_header ###  if [ -s $prefix/grubenv ];    set have_grubenv=true    load_env  fi  set default="0"  if [ "${prev_saved_entry}" ];    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}" ];      saved_entry="${chosen}"      save_env saved_entry    fi  }    function recordfail {    set recordfail=1    if [ -n "${have_grubenv}" ]; if [ -z "${boot_once}" ]; 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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  if loadfont /usr/share/grub/unicode.pf2 ;  set gfxmode=1024x768    load_video    insmod gfxterm  fi  terminal_output gfxterm  insmod part_msdos  insmod ext2  set root='(hd0,msdos1)'  search --no-floppy --fs-uuid --set b2323c52-4613-40f2-aec3-d3f1fbf16e4a  set locale_dir=($root)/boot/grub/locale  set lang=en  insmod gettext  if [ "${recordfail}" = 1 ];    set timeout=-1  else    set timeout=15  fi  ### end /etc/grub.d/00_header ###    ### begin /etc/grub.d/05_debian_theme ###  insmod part_msdos  insmod ext2  set root='(hd0,msdos1)'  search --no-floppy --fs-uuid --set b2323c52-4613-40f2-aec3-d3f1fbf16e4a  insmod jpeg  if background_image /boot/grub/alcoba_azul_by_grosha77-d2zlu0y.jpg ;    set color_normal=black/black    set color_highlight=white/black  else    set menu_color_normal=white/black    set menu_color_highlight=black/light-gray  fi  ### end /etc/grub.d/05_debian_theme ###    ### begin /etc/grub.d/10_linux ###  menuentry 'ubuntu, linux 2.6.35-28-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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	linux	/boot/vmlinuz-2.6.35-28-generic root=uuid=b2323c52-4613-40f2-aec3-d3f1fbf16e4a ro  splash vga=773    	initrd	/boot/initrd.img-2.6.35-28-generic  }  menuentry 'ubuntu, linux 2.6.35-28-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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	echo	'loading linux 2.6.35-28-generic ...'  	linux	/boot/vmlinuz-2.6.35-28-generic root=uuid=b2323c52-4613-40f2-aec3-d3f1fbf16e4a ro single  splash vga=773  	echo	'loading initial ramdisk ...'  	initrd	/boot/initrd.img-2.6.35-28-generic  }  menuentry 'ubuntu, 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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	linux	/boot/vmlinuz-2.6.35-22-generic root=uuid=b2323c52-4613-40f2-aec3-d3f1fbf16e4a ro  splash vga=773    	initrd	/boot/initrd.img-2.6.35-22-generic  }  menuentry 'ubuntu, 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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	echo	'loading linux 2.6.35-22-generic ...'  	linux	/boot/vmlinuz-2.6.35-22-generic root=uuid=b2323c52-4613-40f2-aec3-d3f1fbf16e4a ro single  splash vga=773  	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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	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 b2323c52-4613-40f2-aec3-d3f1fbf16e4a  	linux16	/boot/memtest86+.bin console=ttys0,115200n8  }  ### end /etc/grub.d/20_memtest86+ ###    ### begin /etc/grub.d/30_os-prober ###  ### end /etc/grub.d/30_os-prober ###    ### begin /etc/grub.d/40_custom ###  # file provides easy way add custom menu entries.  type  # menu entries want add after comment.  careful not change  # 'exec tail' line above.  menuentry "microsoft windows xp (on /dev/sda3)" {      insmod ntfs      set root='(hd0,1)'      search --no-floppy --fs-uuid --set 1b4d76e00ecf398d      drivemap -s (hd0) ${root}      chainloader +1  }  ### end /etc/grub.d/40_custom ###    ### begin /etc/grub.d/41_custom ###  if [ -f  $prefix/custom.cfg ];    source $prefix/custom.cfg;  fi  ### end /etc/grub.d/41_custom ###

if did correctly, frun grub-mkconfig. @ file posted. says created automatically using grub-mkconfig.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Adding XP to GRUB


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support