Debian+XP@netbook: Can't boot windows, it tries to boot from usb!
* Asus eeepc 1101ha. 1.5 year old
* When I bought it, I deleted every partition [including the rescue] except the windows XP one. I resized this and used the free space for linux. I have debian squeeze and Ubuntu installed. Never had any problems booting linux. * I am in fact using windows xp seldom, but I have it there, for fallback cases when something doesn't work in linux, like connecting to a beamer. I noticed that without me doing anything, at some time windows stopped booting, then after a few months, problem fixed by itself and could boot. I tried last week again to boot and I can't again. * The error message is "Reboot and select proper boot device etc.". * If I insert a bootable usb flash (I tried with an ubuntu live distro) and try to boot windows from grub, it boots from the usb flash and starts the live distro! I didn't mess up with the windows install. I didn't want to, since there should be tricky driver installations. How stupid is it that I deleted the rescue partition anyway? I have of course a dd of the windows installation, so I can restore it, so I guess I didn't need a rescue partition. To install linux, I booted from a usb flash and did a net installation (there is no cd drive in the netbook). I have attached the output of the boot info script in the end of this message Trying to explain the third bullet: As I said `I didn't do anything'. I do run updates in squeeze and ubuntu however, and the updates may also update grub. I think the problem started somehow after an update to the ubuntu, (which I don't use regularly either, so it often is the case that I log in after 3-4 months and do a big update). Trying to explain the fifth bullet: Strange! Seems that windows is handing boot over to the usb disk (sdb1). Windows is in sda1. It was always there. In the windows boot stuff, there is also an option to boot the original xandros linux-like thing that was installed when I bought the netbook, but it is not the default boot option, the default in boot.ini is multi(0)disk(0)rdisk(0)partition(1)\WINDOWS. Examining the grub options for the windows boot entry, the uuid of the win partition is correct. I tried to add `drivemap (hd1) (hd0)' thinking: "If windows is trying to boot from sdB1, let's convince it to look back to sda1', but it didn't work. Now what? My first thought is that I need to restore the windows boot sector in sda1. There are some tools to use from linux, but I believe they just restore the MBR in sdA and after that, I have to boot from the usb and reinstall grub on sda. But I don't think that something will change, since they don't touch anything in the boot sector of sda1. There should be windows utilities to create rescue media in usb, but I prefer not to deal with if not absolutely necessary Any ideas / suggestions / hints? Thanks in advance! Boot Info Script 0.60 from 17 May 2011 ============================= Boot Info Summary: =============================== => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks in partition 6 for (,msdos6)/boot/grub. sda1: __________________________________________________________________________ File system: ntfs Boot sector type: Windows XP Boot sector info: According to the info in the boot sector, sda1 has 83877872 sectors, but according to the info from fdisk, it has 83886080 sectors. Operating System: Windows XP Boot files: /menu.lst /boot.ini /grldr /grldr /ntldr /NTDETECT.COM sda2: __________________________________________________________________________ File system: Extended Partition Boot sector type: - Boot sector info: sda5: __________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: sda6: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Debian GNU/Linux 6.0 Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda7: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Ubuntu 10.10 Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda8: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Boot files: sda9: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Boot files: ============================ Drive/Partition Info: ============================= Drive: sda _____________________________________________________________________ Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start Sector End Sector # of Sectors Id System /dev/sda1 * 63 83,886,143 83,886,081 7 NTFS / exFAT / HPFS /dev/sda2 83,886,205 312,576,704 228,690,500 5 Extended /dev/sda5 83,886,207 85,878,203 1,991,997 82 Linux swap / Solaris /dev/sda6 85,878,267 101,878,943 16,000,677 83 Linux /dev/sda7 101,879,007 117,879,683 16,000,677 83 Linux /dev/sda8 117,879,747 133,880,423 16,000,677 83 Linux /dev/sda9 133,880,487 312,576,704 178,696,218 83 Linux "blkid" output: ________________________________________________________________ Device UUID TYPE LABEL /dev/sda1 D6B0AD2AB0AD11D3 ntfs win /dev/sda5 74ba497d-c254-4674-a268-9594a692f18e swap /dev/sda6 dbf57160-0abf-42c3-aa63-957ec5794622 ext3 root /dev/sda7 51f56686-14d5-484d-a5eb-1a6c6d412c23 ext3 root2 /dev/sda8 92803a6d-3386-4678-9f0b-bb734b1e0ed5 ext3 root3 /dev/sda9 14d4405c-9fe4-4d10-9c48-3e77373fe376 ext3 big ================================ Mount points: ================================= Device Mount_Point Type Options /dev/sda1 /tmp/BootInfo0/sda1 fuseblk (ro,allow_other,blksize=4096) /dev/sda6 / ext3 (rw,errors=remount-ro) /dev/sda7 /mnt/root2 ext3 (rw,noatime) /dev/sda8 /mnt/root3 ext3 (rw,noatime) /dev/sda9 /mnt/big ext3 (rw,noatime) ================================ sda1/menu.lst: ================================ -------------------------------------------------------------------------------- default 0 timeout 0 hiddenmenu title Xandros OS kernel (hd0,5)/vmlinuz-2.6.26-poulsbo acpi_sleep=s3_bios,s3_mode acpi_osi=Linux quiet rw vga=normal root=/dev/sda6 initrd (hd0,5)/initramfs-eeepc.img title Perform Disk Scan kernel (hd0,5)/vmlinuz-2.6.26-poulsbo quiet rw vga=785 XANDROSSCAN=y USER=/dev/sda8 initrd (hd0,5)/initramfs-eeepc.img title Restore Factory Settings kernel (hd0,5)/vmlinuz-2.6.26-poulsbo quiet rw vga=normal XANDROSRESTORE=y USER=/dev/sda8 initrd (hd0,5)/initramfs-eeepc.img title Back To WinXP chainloader (hd0)+1 -------------------------------------------------------------------------------- ================================ sda1/boot.ini: ================================ -------------------------------------------------------------------------------- [boot loader] timeout=5 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect C:\grldr="Linux" -------------------------------------------------------------------------------- ========================== sda1/grldr embedded menu: =========================== -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- =================== sda1: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) ?? = ?? menu.lst 0 =========================== sda6/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 } terminal_input console terminal_output console set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_915resolution ### insmod 915resolution 915resolution 58 1366 768 32 ### END /etc/grub.d/01_915resolution ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os { set gfxpayload=1366x768x32 insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro resume=UUID=74ba497d-c254-4674-a268-9594a692f18e quiet acpi_osi=Linux echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { set gfxpayload=1366x768x32 insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro single resume=UUID=74ba497d-c254-4674-a268-9594a692f18e echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } ### 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 ### menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set d6b0ad2ab0ad11d3 drivemap -s (hd0) ${root} chainloader +1 } menuentry "Ubuntu, with Linux 2.6.35-31-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-31-generic } menuentry "Ubuntu, with Linux 2.6.35-31-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-31-generic } menuentry "Ubuntu, with Linux 2.6.35-30-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-30-generic } menuentry "Ubuntu, with Linux 2.6.35-30-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-30-generic } menuentry "Ubuntu, with Linux 2.6.35-22-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry "Ubuntu, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-22-generic } ### 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 ### -------------------------------------------------------------------------------- =============================== sda6/etc/fstab: ================================ -------------------------------------------------------------------------------- # /etc/fstab: static file system information. # # Use 'vol_id --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> # <fs> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 UUID=74ba497d-c254-4674-a268-9594a692f18e none swap sw 0 0 #/dev/sda5 none swap sw 0 2 #UUID=dbf57160-0abf-42c3-aa63-957ec5794622 / ext3 errors=remount-ro 0 1 /dev/sda6 / ext3 errors=remount-ro 0 1 /dev/sda7 /mnt/root2 ext3 noatime 0 2 /dev/sda8 /mnt/root3 ext3 noatime 0 2 #UUID=37871678-0929-4399-8cb8-37c95bc8712c /mnt/big ext3 defaults 0 2 /dev/sda9 /mnt/big ext3 noatime 0 2 /dev/sda1 /mnt/win ntfs rw,noauto,noatime 0 2 /dev/scd0 /mnt/cdrom ro,udf,iso9660 user,noauto,noatime 0 0 #/dev/sdb1 /mnt/usb vfat rw,user,noauto,noatime 0 0 /dev/sdb1 /mnt/usb ext3 user,noauto,noatime 0 0 /dev/sdc1 /mnt/usb2 vfat rw,user,noauto,noatime 0 0 /dev/sdd1 /mnt/usb3 vfat rw,user,noauto,noatime 1 0 #/dev/sdb6 /mnt/ehd/p6 ext3 rw,noauto,noatime 0 0 #/dev/sdb7 /mnt/ehd/p7 ext3 rw,noauto,noatime 0 0 #/dev/sdb8 /mnt/ehd/p8 ext3 rw,noauto,noatime 0 0 /dev/sdc9 /mnt/ehd/p9 ext3 rw,noauto,noatime 0 0 /dev/sdc10 /mnt/ehd/p10 ext3 rw,noauto,noatime 0 0 -------------------------------------------------------------------------------- =================== sda6: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) 44.707784176 = 48.004617728 boot/grub/core.img 1 44.793870449 = 48.097052160 boot/grub/grub.cfg 1 42.856851101 = 46.017193472 boot/initrd.img-2.6.32-5-686 28 42.853375912 = 46.013462016 boot/vmlinuz-2.6.32-5-686 25 42.856851101 = 46.017193472 initrd.img 28 42.853375912 = 46.013462016 vmlinuz 25 =========================== sda7/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="7" 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=5 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-31-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-31-generic } menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-31-generic ...' linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-31-generic } menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-30-generic } menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-30-generic ...' linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-30-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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set D6B0AD2AB0AD11D3 drivemap -s (hd0) ${root} chainloader +1 } menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda6)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro resume=UUID=74ba497d-c254-4674-a268-9594a692f18e quiet acpi_osi=Linux initrd /boot/initrd.img-2.6.32-5-686 } menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda6)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro single resume=UUID=74ba497d-c254-4674-a268-9594a692f18e initrd /boot/initrd.img-2.6.32-5-686 } ### 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 ### -------------------------------------------------------------------------------- =============================== sda7/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 /dev/sda5 none swap sw 0 0 #/ was on /dev/sda7 during installation #/dev/sda7 / ext3 errors=remount,ro 0 1 UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 / ext3 errors=remount-ro 0 1 /dev/sda6 /mnt/root1 ext3 noatime 0 2 /dev/sda8 /mnt/root3 ext3 noatime 0 2 /dev/sda9 /mnt/big ext3 noatime 0 2 #/dev/sda1 /mnt/win ntfs ro,noatime 0 2 #/dev/scd0 /mnt/cdrom ro,udf,iso9660 user,noauto,noatime 0 0 /dev/sdb1 /mnt/usb vfat rw,user,noauto,noatime 0 0 #/dev/sdb1 /mnt/usb ext3 user,noauto,noatime 0 0 /dev/sdc1 /mnt/usb2 vfat rw,user,noauto,noatime 0 0 /dev/sdd1 /mnt/usb3 vfat rw,user,noauto,noatime 1 0 #/dev/sdb6 /mnt/ehd/p6 ext3 rw,noauto,noatime 0 0 #/dev/sdb7 /mnt/ehd/p7 ext3 rw,noauto,noatime 0 0 #/dev/sdb8 /mnt/ehd/p8 ext3 rw,noauto,noatime 0 0 /dev/sdc9 /mnt/ehd/p9 ext3 rw,noauto,noatime 0 0 /dev/sdc10 /mnt/ehd/p10 ext3 rw,noauto,noatime 0 0 -------------------------------------------------------------------------------- =================== sda7: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) 51.717952251 = 55.531728384 boot/grub/core.img 1 51.979888439 = 55.812980224 boot/grub/grub.cfg 1 51.760047436 = 55.576927744 boot/initrd.img-2.6.35-22-generic 30 51.988685131 = 55.822425600 boot/initrd.img-2.6.35-30-generic 42 51.771903515 = 55.589658112 boot/initrd.img-2.6.35-31-generic 23 51.771457195 = 55.589178880 boot/vmlinuz-2.6.35-22-generic 3 52.428905010 = 56.295108096 boot/vmlinuz-2.6.35-30-generic 8 52.438674450 = 56.305597952 boot/vmlinuz-2.6.35-31-generic 6 51.771903515 = 55.589658112 initrd.img 23 51.988685131 = 55.822425600 initrd.img.old 42 52.438674450 = 56.305597952 vmlinuz 6 52.428905010 = 56.295108096 vmlinuz.old 8 |
bump...
|
Quote:
It's also possible that there's something wrong with your grub.cfg. The easiest way to fix this is to boot into either Ubuntu or Debian and open a terminal and type: Code:
sudo update-grub |
Updated & reinstalled grub in Ubuntu. Now it boots windows!
> It's also possible that there's something wrong with your grub.cfg. The
> easiest way to fix this is to boot into either Ubuntu or Debian and open > a terminal and type: > Code: sudo update-grub impert, you are right. I should start from the obvious and check it *correct*. I thought that the updates in ubuntu did also update and reinstall grub and I didn't bother to check myself. But actually, the last grub update was from debian. So, when I updated and reinstalled grub frum ubuntu, I saw that windows was booting! Now, I want to edit the grub settings in debian (=the OS I use regularly), so that grub from there boots windows normally. If not, I am somehow dependent on the ubuntu installation. I run the boot info script again and did a diff: % diff RESULTS-grubFromDebian.txt RESULTS-grubFromUbuntu.txt 8c8 < looks in partition 6 for (,msdos6)/boot/grub. --- > looks in partition 7 for (,msdos7)/boot/grub. 99d98 < /dev/sda1 /tmp/BootInfo0/sda1 fuseblk (ro,allow_other,blksize=4096) 327c326 < /dev/sda1 /mnt/win ntfs rw,noauto,noatime 0 2 --- > /dev/sda1 /mnt/win ntfs ro,noauto,noatime 0 2 590,591c589,590 < 51.717952251 = 55.531728384 boot/grub/core.img 1 < 51.979888439 = 55.812980224 boot/grub/grub.cfg 1 --- > 51.720443249 = 55.534403072 boot/grub/core.img 1 > 51.720328808 = 55.534280192 boot/grub/grub.cfg 1 The difference in line 8 is the obvious and the interesting. Grub boots from the ubuntu partition now. The windows entries in both ubuntu and debian grub.cfg files are the same (apart from the capitalization of the uuid) menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set D6B0AD2AB0AD11D3 drivemap -s (hd0) ${root} chainloader +1 } Diffing the whole grub.cfg files doesn't help a lot, there are many differences because of different boot order. But I think the global settings are the same. So, that means when booting from sda7 (=the Ubuntu) partition, something is different. What should that be? Can you help me a little more? I attach here the output of the boot info script after running grub update in ubuntu: Boot Info Script 0.60 from 17 May 2011 ============================= Boot Info Summary: =============================== => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks in partition 7 for (,msdos7)/boot/grub. sda1: __________________________________________________________________________ File system: ntfs Boot sector type: Windows XP Boot sector info: According to the info in the boot sector, sda1 has 83877872 sectors, but according to the info from fdisk, it has 83886080 sectors. Operating System: Windows XP Boot files: /menu.lst /boot.ini /grldr /grldr /ntldr /NTDETECT.COM sda2: __________________________________________________________________________ File system: Extended Partition Boot sector type: - Boot sector info: sda5: __________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: sda6: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Debian GNU/Linux 6.0 Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda7: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Ubuntu 10.10 Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda8: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Boot files: sda9: __________________________________________________________________________ File system: ext3 Boot sector type: - Boot sector info: Operating System: Boot files: ============================ Drive/Partition Info: ============================= Drive: sda _____________________________________________________________________ Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start Sector End Sector # of Sectors Id System /dev/sda1 * 63 83,886,143 83,886,081 7 NTFS / exFAT / HPFS /dev/sda2 83,886,205 312,576,704 228,690,500 5 Extended /dev/sda5 83,886,207 85,878,203 1,991,997 82 Linux swap / Solaris /dev/sda6 85,878,267 101,878,943 16,000,677 83 Linux /dev/sda7 101,879,007 117,879,683 16,000,677 83 Linux /dev/sda8 117,879,747 133,880,423 16,000,677 83 Linux /dev/sda9 133,880,487 312,576,704 178,696,218 83 Linux "blkid" output: ________________________________________________________________ Device UUID TYPE LABEL /dev/sda1 D6B0AD2AB0AD11D3 ntfs win /dev/sda5 74ba497d-c254-4674-a268-9594a692f18e swap /dev/sda6 dbf57160-0abf-42c3-aa63-957ec5794622 ext3 root /dev/sda7 51f56686-14d5-484d-a5eb-1a6c6d412c23 ext3 root2 /dev/sda8 92803a6d-3386-4678-9f0b-bb734b1e0ed5 ext3 root3 /dev/sda9 14d4405c-9fe4-4d10-9c48-3e77373fe376 ext3 big ================================ Mount points: ================================= Device Mount_Point Type Options /dev/sda6 / ext3 (rw,errors=remount-ro) /dev/sda7 /mnt/root2 ext3 (rw,noatime) /dev/sda8 /mnt/root3 ext3 (rw,noatime) /dev/sda9 /mnt/big ext3 (rw,noatime) ================================ sda1/menu.lst: ================================ -------------------------------------------------------------------------------- default 0 timeout 0 hiddenmenu title Xandros OS kernel (hd0,5)/vmlinuz-2.6.26-poulsbo acpi_sleep=s3_bios,s3_mode acpi_osi=Linux quiet rw vga=normal root=/dev/sda6 initrd (hd0,5)/initramfs-eeepc.img title Perform Disk Scan kernel (hd0,5)/vmlinuz-2.6.26-poulsbo quiet rw vga=785 XANDROSSCAN=y USER=/dev/sda8 initrd (hd0,5)/initramfs-eeepc.img title Restore Factory Settings kernel (hd0,5)/vmlinuz-2.6.26-poulsbo quiet rw vga=normal XANDROSRESTORE=y USER=/dev/sda8 initrd (hd0,5)/initramfs-eeepc.img title Back To WinXP chainloader (hd0)+1 -------------------------------------------------------------------------------- ================================ sda1/boot.ini: ================================ -------------------------------------------------------------------------------- [boot loader] timeout=5 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect C:\grldr="Linux" -------------------------------------------------------------------------------- ========================== sda1/grldr embedded menu: =========================== -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- =================== sda1: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) ?? = ?? menu.lst 0 =========================== sda6/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 } terminal_input console terminal_output console set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_915resolution ### insmod 915resolution 915resolution 58 1366 768 32 ### END /etc/grub.d/01_915resolution ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os { set gfxpayload=1366x768x32 insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro resume=UUID=74ba497d-c254-4674-a268-9594a692f18e quiet acpi_osi=Linux echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { set gfxpayload=1366x768x32 insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 echo 'Loading Linux 2.6.32-5-686 ...' linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro single resume=UUID=74ba497d-c254-4674-a268-9594a692f18e echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-686 } ### 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 ### menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set d6b0ad2ab0ad11d3 drivemap -s (hd0) ${root} chainloader +1 } menuentry "Ubuntu, with Linux 2.6.35-31-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-31-generic } menuentry "Ubuntu, with Linux 2.6.35-31-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-31-generic } menuentry "Ubuntu, with Linux 2.6.35-30-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-30-generic } menuentry "Ubuntu, with Linux 2.6.35-30-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-30-generic } menuentry "Ubuntu, with Linux 2.6.35-22-generic (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-22-generic } menuentry "Ubuntu, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sda7)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single initrd /boot/initrd.img-2.6.35-22-generic } ### 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 ### -------------------------------------------------------------------------------- =============================== sda6/etc/fstab: ================================ -------------------------------------------------------------------------------- # /etc/fstab: static file system information. # # Use 'vol_id --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> # <fs> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 UUID=74ba497d-c254-4674-a268-9594a692f18e none swap sw 0 0 #/dev/sda5 none swap sw 0 2 #UUID=dbf57160-0abf-42c3-aa63-957ec5794622 / ext3 errors=remount-ro 0 1 /dev/sda6 / ext3 errors=remount-ro 0 1 /dev/sda7 /mnt/root2 ext3 noatime 0 2 /dev/sda8 /mnt/root3 ext3 noatime 0 2 #UUID=37871678-0929-4399-8cb8-37c95bc8712c /mnt/big ext3 defaults 0 2 /dev/sda9 /mnt/big ext3 noatime 0 2 /dev/sda1 /mnt/win ntfs ro,noauto,noatime 0 2 /dev/scd0 /mnt/cdrom ro,udf,iso9660 user,noauto,noatime 0 0 #/dev/sdb1 /mnt/usb vfat rw,user,noauto,noatime 0 0 /dev/sdb1 /mnt/usb ext3 user,noauto,noatime 0 0 /dev/sdc1 /mnt/usb2 vfat rw,user,noauto,noatime 0 0 /dev/sdd1 /mnt/usb3 vfat rw,user,noauto,noatime 1 0 #/dev/sdb6 /mnt/ehd/p6 ext3 rw,noauto,noatime 0 0 #/dev/sdb7 /mnt/ehd/p7 ext3 rw,noauto,noatime 0 0 #/dev/sdb8 /mnt/ehd/p8 ext3 rw,noauto,noatime 0 0 /dev/sdc9 /mnt/ehd/p9 ext3 rw,noauto,noatime 0 0 /dev/sdc10 /mnt/ehd/p10 ext3 rw,noauto,noatime 0 0 -------------------------------------------------------------------------------- =================== sda6: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) 44.707784176 = 48.004617728 boot/grub/core.img 1 44.793870449 = 48.097052160 boot/grub/grub.cfg 1 42.856851101 = 46.017193472 boot/initrd.img-2.6.32-5-686 28 42.853375912 = 46.013462016 boot/vmlinuz-2.6.32-5-686 25 42.856851101 = 46.017193472 initrd.img 28 42.853375912 = 46.013462016 vmlinuz 25 =========================== sda7/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="7" 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext if [ "${recordfail}" = 1 ]; then set timeout=-1 else set timeout=5 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-31-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-31-generic } menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-31-generic ...' linux /boot/vmlinuz-2.6.35-31-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-31-generic } menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro quiet splash initrd /boot/initrd.img-2.6.35-30-generic } menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-30-generic ...' linux /boot/vmlinuz-2.6.35-30-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.35-30-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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 echo 'Loading Linux 2.6.35-22-generic ...' linux /boot/vmlinuz-2.6.35-22-generic root=UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 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,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set 51f56686-14d5-484d-a5eb-1a6c6d412c23 linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set D6B0AD2AB0AD11D3 drivemap -s (hd0) ${root} chainloader +1 } menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (on /dev/sda6)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro resume=UUID=74ba497d-c254-4674-a268-9594a692f18e quiet acpi_osi=Linux initrd /boot/initrd.img-2.6.32-5-686 } menuentry "Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode) (on /dev/sda6)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set dbf57160-0abf-42c3-aa63-957ec5794622 linux /boot/vmlinuz-2.6.32-5-686 root=UUID=dbf57160-0abf-42c3-aa63-957ec5794622 ro single resume=UUID=74ba497d-c254-4674-a268-9594a692f18e initrd /boot/initrd.img-2.6.32-5-686 } ### 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 ### -------------------------------------------------------------------------------- =============================== sda7/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 /dev/sda5 none swap sw 0 0 #/ was on /dev/sda7 during installation #/dev/sda7 / ext3 errors=remount,ro 0 1 UUID=51f56686-14d5-484d-a5eb-1a6c6d412c23 / ext3 errors=remount-ro 0 1 /dev/sda6 /mnt/root1 ext3 noatime 0 2 /dev/sda8 /mnt/root3 ext3 noatime 0 2 /dev/sda9 /mnt/big ext3 noatime 0 2 #/dev/sda1 /mnt/win ntfs ro,noatime 0 2 #/dev/scd0 /mnt/cdrom ro,udf,iso9660 user,noauto,noatime 0 0 /dev/sdb1 /mnt/usb vfat rw,user,noauto,noatime 0 0 #/dev/sdb1 /mnt/usb ext3 user,noauto,noatime 0 0 /dev/sdc1 /mnt/usb2 vfat rw,user,noauto,noatime 0 0 /dev/sdd1 /mnt/usb3 vfat rw,user,noauto,noatime 1 0 #/dev/sdb6 /mnt/ehd/p6 ext3 rw,noauto,noatime 0 0 #/dev/sdb7 /mnt/ehd/p7 ext3 rw,noauto,noatime 0 0 #/dev/sdb8 /mnt/ehd/p8 ext3 rw,noauto,noatime 0 0 /dev/sdc9 /mnt/ehd/p9 ext3 rw,noauto,noatime 0 0 /dev/sdc10 /mnt/ehd/p10 ext3 rw,noauto,noatime 0 0 -------------------------------------------------------------------------------- =================== sda7: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s) 51.720443249 = 55.534403072 boot/grub/core.img 1 51.720328808 = 55.534280192 boot/grub/grub.cfg 1 51.760047436 = 55.576927744 boot/initrd.img-2.6.35-22-generic 30 51.988685131 = 55.822425600 boot/initrd.img-2.6.35-30-generic 42 51.771903515 = 55.589658112 boot/initrd.img-2.6.35-31-generic 23 51.771457195 = 55.589178880 boot/vmlinuz-2.6.35-22-generic 3 52.428905010 = 56.295108096 boot/vmlinuz-2.6.35-30-generic 8 52.438674450 = 56.305597952 boot/vmlinuz-2.6.35-31-generic 6 51.771903515 = 55.589658112 initrd.img 23 51.988685131 = 55.822425600 initrd.img.old 42 52.438674450 = 56.305597952 vmlinuz 6 52.428905010 = 56.295108096 vmlinuz.old 8 |
Quote:
I don't see that it is a problem. One could argue that you're more likely to bork the system that you use regularly than the one you don't use so much. You can alter the default OS by editing /etc/default/grub, and changing the number in the line "GRUB_DEFAULT=n" to the number of the OS you want. I suspect that your problem arose because Windows updated the MBR and marched all over Grub. I don't use Windows, so I'm not the person to advise you on how to stop this happening, but a little googling will find you more tutorials on Windows/Linux multibooting than you can poke a stick at. Just booting tips is a good start. |
Quote:
Let's go again. Summarizing is also good for me, to revise the problem. Maybe I wasn't clear enough: Problem: 2 different grub installations in different linux distros, one boots windows fine. The other doesn't. grub.cfg files are the same. I am trying to figure out what is wrong in the other grub configuration. ------- Details: ------- I first resized win partition and created space for various linux distros in this small netbook. I never did any repartitioning after that. Then, I installed debian. Windows was bootable from debian's grub. When, later, I installed ubuntu, the grub installation from there could also boot windows. Problems started when, after an update in debian, its grub was written agin in the mbr. Of course it detected all OSes (debian,ubuntu,xp) and created proper boot entries. I can boot both debian and ubuntu, ***BUT*** the windows xp entry does not work. When I say that (debian grub) windows xp entry does not work, I mean: The grub chainloader seems to pass control to windows, but windows appears to look at the first partition of the 2nd drive to boot. How do I know that? Because I get a "Reboot and select proper boot device etc", but if I have a bootable usb flash plugged in, it boots from there! [Remark: Computer _doesn't boot directly_ from usb, it's not a matter of BIOS and boot priorities. As I just said, I enter grub, I select windows xp option and when I press enter, _then_ it boots from the usb! So, is this a windows' problem?] But, before you say "I don't know anything about windows", here's the catch: Why, when i choose the windows xp entry (with same settings) from ubuntu grub installation, it works just fine? I am wondering what exactly is the difference between the two grub installations. grub.cfg files are the same (uuid is correct): Code:
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" { I am now trying one more time to figure out. |
Quote:
|
[SOLVED] Debian+XP@netbook: Can't boot windows, it tries to boot from usb!
Quote:
UPDATE, after some time: Finally, the issue was bypassed. I have started using Ubuntu for other reasons, mainly the optimal driver support. Grub entries created by Ubuntu allow windows to boot just fine. I actually abandoned debian, it had left me with many problems to handle manually. So, in that case, the answer to the problem was: Can't solve it? Try to bypass it, save some time and enjoy more the (rest) of your life. q-: |
All times are GMT -5. The time now is 12:44 PM. |