Thread: Dual boot- "error: no such device" after reformating/reloaded XP partition
after couple of weeks xp misbehaving bit bullet , reformatted xp partition , reloaded xp.
xp , ubuntu on different drives , booting ok prior the reformatting.
ubuntu drive selected 1st hd boot device in bios:
can boot ubuntu ok if select in grub2 menu
if select xp in grub menu get:
"error:no such device c8e4918ce4917cfe"
if select xp drive 1st hd boot device in bios can boot straight xp.so ok.
thread: http://sourceforge.net/apps/mediawik...roblems:search has given me clue that:
"the uuid listed in grub.cfg wrong
in cases uuid in above search line in grub.cfg wrong. can example happen if uuid has changed due formatting or partitioning.
bugs
"search" function plagued various bugs (see [1], [2]), causing search fail."
fix in thread gives me result:
"at grub menu @ boot (you might have hold "shift" key or press "esc" grub menu) select os trying boot. not press "enter", press "e" instead edit menuentry. delete line
search --no-floppy --fs-uuid --set 86d32ee3-aec6-490b-8dab-e5cfff9c7af9
, press "ctrl+x". this should boot os. if not able boot os, infected different problem , should not continue howto."
boot info script results are:
and output of sudo fdisk -l is:code:============================= boot info summary: ============================== => windows installed in mbr of /dev/sda => grub 2 installed in mbr of /dev/sdb , looks on same drive in partition #1 /boot/grub. => no known boot loader installed in mbr of /dev/sdc sda1: _________________________________________________________________________ file system: ntfs boot sector type: windows xp boot sector info: no errors found in boot parameter block. operating system: windows xp boot files/dirs: /boot.ini /ntldr /ntdetect.com sda2: _________________________________________________________________________ file system: ntfs boot sector type: windows xp boot sector info: no errors found in boot parameter block. operating system: boot files/dirs: sda3: _________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: boot files/dirs: sdb1: _________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: ubuntu 9.10 boot files/dirs: /boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sdb2: _________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: boot files/dirs: sdb3: _________________________________________________________________________ file system: swap boot sector type: - boot sector info: sdb4: _________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: boot files/dirs: sdc1: _________________________________________________________________________ file system: ntfs boot sector type: windows vista/7 boot sector info: no errors found in boot parameter block. operating system: boot files/dirs: /boot.ini sdc2: _________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: boot files/dirs: =========================== drive/partition info: ============================= drive: sda ___________________ _____________________________________________________ disk /dev/sda: 500.1 gb, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors units = sectors of 1 * 512 = 512 bytes disk identifier: 0x9b159b15 partition boot start end size id system /dev/sda1 * 63 73,400,984 73,400,922 7 hpfs/ntfs /dev/sda2 73,400,985 115,346,699 41,945,715 7 hpfs/ntfs /dev/sda3 115,346,700 976,768,064 861,421,365 83 linux drive: sdb ___________________ _____________________________________________________ disk /dev/sdb: 500.1 gb, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors units = sectors of 1 * 512 = 512 bytes disk identifier: 0x988d3358 partition boot start end size id system /dev/sdb1 * 63 41,945,714 41,945,652 83 linux /dev/sdb2 41,945,715 83,891,429 41,945,715 83 linux /dev/sdb3 83,891,430 88,084,394 4,192,965 82 linux swap / solaris /dev/sdb4 88,084,395 976,768,064 888,683,670 83 linux drive: sdc ___________________ _____________________________________________________ disk /dev/sdc: 250.1 gb, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors units = sectors of 1 * 512 = 512 bytes disk identifier: 0x01296a69 partition boot start end size id system /dev/sdc1 63 125,837,144 125,837,082 7 hpfs/ntfs /dev/sdc2 125,837,145 488,392,064 362,554,920 83 linux blkid -c /dev/null: ____________________________________________________________ device uuid type label /dev/loop0 squashfs /dev/sda1 52767f0c00d021da ntfs windows xp /dev/sda2 9e78dc3f78dc17bb ntfs sda2 windows data 20 gb /dev/sda3 8022fc40-ac07-4661-8aae-1910d92dca28 ext4 sda3 ext4 410 gb /dev/sdb1 9e76c341-c736-480d-97de-42b98a899726 ext4 /dev/sdb2 7debcd00-c230-49f4-9170-e92d6f4b5511 ext4 /dev/sdb3 038f845b-864f-49de-80a6-f3f4d8ebffd1 swap /dev/sdb4 fecc606e-0d64-4e2d-a7a6-5588ad690660 ext4 sdb4 ext4 425 gb /dev/sdc1 493f70286530d035 ntfs sdc1 ntfs 60 gb /dev/sdc2 f3a988f0-2aec-45c7-836d-6cde235a1075 ext4 sdc2 ext4 172 gb ============================ "mount | grep ^/ output: =========================== device mount point type options aufs / aufs (rw) /dev/sr0 /cdrom iso9660 (rw) /dev/loop0 /rofs squashfs (rw) ================================ sda1/boot.ini: ================================ [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 home edition" /noexecute=optin /fastdetect =========================== sdb1/boot/grub/menu.lst: =========================== # menu.lst - see: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # , /usr/share/doc/grub-doc/. ## default num # set default entry entry number num. numbering starts 0, , # entry number 0 default if command not used. # # can specify 'saved' instead of number. in case, default entry # entry saved command 'savedefault'. # warning: if using dmraid not use 'savedefault' or # array desync , not let boot system. default 0 ## timeout sec # set timeout, in sec seconds, before automatically booting default entry # (normally first entry defined). timeout 3 ## hiddenmenu # hides menu default (press esc see menu) hiddenmenu # pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # if used in first section of menu file, disable interactive editing # control (menu entry editor , command-line) , entries protected # command 'lock' # e.g. password topsecret # password --md5 $1$glhu0/$aw78khk1qfv3p2b2znuoe/ # password topsecret # # examples # # title windows 95/98/nt/2000 # root (hd0,0) # makeactive # chainloader +1 # # title linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # put static boot stanzas before and/or after automagic kernel list ### begin automagic kernels list ## lines between automagic kernels list markers modified ## debian update-grub script except default options below ## not uncomment them, edit them needs ## ## start default options ## ## default kernel options ## default kernel options automagic boot options ## if want special options specific kernels use kopt_x_y_z ## x.y.z kernel version. minor versions can omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=9e76c341-c736-480d-97de-42b98a899726 ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## additional options use default boot option, not ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## xen hypervisor options use default xen boot option # xenhopt= ## xen linux kernel options use default xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines allowed ## e.g. altoptions=(extra menu suffix) boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single ## controls how many kernels should put menu.lst ## counts first occurence of kernel, not ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## specify if running in xen domu or have grub detect automatically ## update-grub ignore non-xen kernels when running in domu , vice versa ## e.g. indomu=detect ## indomu=true ## indomu=false # indomu=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true ## should update-grub adjust value of default booted system ## can true or false # updatedefaultentry=false ## should update-grub add savedefault default options ## can true or false # savedefault=false ## ## end default options ## title ubuntu 9.10, kernel 2.6.31-19-generic uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-19-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro quiet splash initrd /boot/initrd.img-2.6.31-19-generic title ubuntu 9.10, kernel 2.6.31-19-generic (recovery mode) uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-19-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro single initrd /boot/initrd.img-2.6.31-19-generic title ubuntu 9.10, kernel 2.6.31-17-generic uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-17-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro quiet splash initrd /boot/initrd.img-2.6.31-17-generic title ubuntu 9.10, kernel 2.6.31-17-generic (recovery mode) uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-17-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro single initrd /boot/initrd.img-2.6.31-17-generic title ubuntu 9.10, kernel 2.6.31-14-generic uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-14-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic title ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode) uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/vmlinuz-2.6.31-14-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro single initrd /boot/initrd.img-2.6.31-14-generic title chainload grub 2 root 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/grub/core.img title ubuntu 9.10, memtest86+ uuid 9e76c341-c736-480d-97de-42b98a899726 kernel /boot/memtest86+.bin ### end debian automagic kernels list =========================== sdb1/boot/grub/grub.cfg: =========================== # # not edit file # # automatically generated /usr/sbin/grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub # ### begin /etc/grub.d/00_header ### if [ -s /boot/grub/grubenv ]; have_grubenv=true load_env fi set default="0" if [ ${prev_saved_entry} ]; saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entry fi insmod ext2 set root=(hd1,1) search --no-floppy --fs-uuid --set 9e76c341-c736-480d-97de-42b98a899726 if loadfont /usr/share/grub/unicode.pf2 ; set gfxmode=640x480 insmod gfxterm insmod vbe if terminal_output gfxterm ; true ; else # backward compatibility versions of terminal.mod don't # understand terminal_output terminal gfxterm fi fi if [ ${recordfail} = 1 ]; 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/white ### end /etc/grub.d/05_debian_theme ### ### begin /etc/grub.d/10_linux ### menuentry "ubuntu, linux 2.6.31-14-generic" { recordfail=1 if [ -n ${have_grubenv} ]; save_env recordfail; fi set quiet=1 insmod ext2 set root=(hd1,1) search --no-floppy --fs-uuid --set 9e76c341-c736-480d-97de-42b98a899726 linux /boot/vmlinuz-2.6.31-14-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic } menuentry "ubuntu, linux 2.6.31-14-generic (recovery mode)" { recordfail=1 if [ -n ${have_grubenv} ]; save_env recordfail; fi insmod ext2 set root=(hd1,1) search --no-floppy --fs-uuid --set 9e76c341-c736-480d-97de-42b98a899726 linux /boot/vmlinuz-2.6.31-14-generic root=uuid=9e76c341-c736-480d-97de-42b98a899726 ro single initrd /boot/initrd.img-2.6.31-14-generic } ### end /etc/grub.d/10_linux ### ### begin /etc/grub.d/20_memtest86+ ### menuentry "memory test (memtest86+)" { linux16 /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" { 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 ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set c8e4918ce4917cfe drivemap -s (hd0) ${root} chainloader +1 } ### 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. ### end /etc/grub.d/40_custom ### =============================== sdb1/etc/fstab: =============================== # /etc/fstab: static file system information. # # -- file has been automaticly generated ntfs-config -- # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # entry /dev/sdb1 : uuid=9e76c341-c736-480d-97de-42b98a899726 / ext4 defaults 0 1 # entry /dev/sdb2 : uuid=7debcd00-c230-49f4-9170-e92d6f4b5511 /home ext4 defaults 0 2 # entry /dev/sdb3 : uuid=038f845b-864f-49de-80a6-f3f4d8ebffd1 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 /dev/sdc1 /media/sdc1windowsdata60gb ntfs-3g defaults 0 0 /dev/sda3 /media/sda3410gb ext4 defaults 0 0 /dev/sda2 /media/sda2windowsdatagb ntfs-3g defaults 0 0 /dev/sdb4 /media/sdb4425gb ext4 defaults 0 0 /dev/sdc2 /media/sdc2172gb ext4 defaults 0 0 =================== sdb1: location of files loaded grub: =================== .0gb: boot/grub/core.img .0gb: boot/grub/grub.cfg .0gb: boot/grub/menu.lst .0gb: boot/initrd.img-2.6.31-14-generic .0gb: boot/initrd.img-2.6.31-17-generic .0gb: boot/initrd.img-2.6.31-19-generic .0gb: boot/vmlinuz-2.6.31-14-generic .0gb: boot/vmlinuz-2.6.31-17-generic .0gb: boot/vmlinuz-2.6.31-19-generic .0gb: initrd.img .0gb: initrd.img.old .0gb: vmlinuz .0gb: vmlinuz.old ================================ sdc1/boot.ini: ================================ [boot loader] timeout=15 default=c:\wubildr.mbr [operating systems] c:\wubildr.mbr = "ubuntu" multi(0)disk(0)rdisk(0)partition(1)\windows="microsoft windows xp home edition" /noexecute=optin /fastdetect =========================== unknown mbrs/boot sectors/etc ======================= unknown mbr on /dev/sdc 00000000 90 e9 7d 01 fa 33 c0 8e d0 8e c0 8e d8 bc 00 7c |..}..3.........|| 00000010 8b f4 fb bf 00 06 b9 00 01 f3 a5 bb 20 06 ff e3 |............ ...| 00000020 90 90 7d 07 81 3c aa 55 75 11 e8 58 00 73 0c |...}..<.uu..x.s.| 00000030 e8 65 00 72 07 e8 b1 00 72 3b eb 2c 7d 07 c7 |.e.r....r;.,.}..| 00000040 04 00 00 ba 80 00 be 07 b9 04 00 f6 04 80 75 |...............u| 00000050 07 83 c6 10 e2 f6 eb 1d 8a 74 01 8b 4c 02 bb 00 |.........t..l...| 00000060 7c b8 01 02 cd 13 72 0d 81 3e fe 7d 55 aa 75 05 ||.....r..>.}u.u.| 00000070 ea 00 7c 00 00 6a 07 ac 0a c0 74 fe bb 07 00 |..|...j....t....| 00000080 b4 0e cd 10 eb f2 bb 00 7e c6 07 13 c6 47 01 00 |........~....g..| 00000090 b2 80 b8 00 e0 cd 13 c3 bf 00 7e ba f0 01 b3 a0 |..........~.....| 000000a0 e8 84 00 72 0c b1 01 e8 48 00 72 05 e8 19 00 73 |...r....h.r....s| 000000b0 16 f6 c3 10 75 05 80 cb 10 eb e5 81 fa 70 01 74 |....u........p.t| 000000c0 05 ba 70 01 eb d8 f9 c3 81 bd fe 01 55 aa 75 17 |..p.........u.u.| 000000d0 8b 75 02 81 fe 01 77 0e 03 f7 81 3c aa 55 75 |.u.....w....<.uu| 000000e0 06 f6 44 02 01 75 01 f9 c3 bf 00 7c b1 0a e8 01 |..d..u.....|....| 000000f0 00 c3 52 57 83 c2 02 b0 01 ee 42 8a c1 ee 42 32 |..rw......b...b2| 00000100 c0 ee 42 ee 42 8a c3 ee 42 b0 20 ee e8 33 00 ec |..b.b...b. ..3..| 00000110 24 fd 3c 58 75 0d 83 ea 07 b9 00 01 fa f3 6d fb |$.<xu.........m.| 00000120 f8 eb 01 f9 5f 5a c3 52 83 c2 07 ec a8 80 75 0f |...._z.r......u.| 00000130 4a 8a c3 ee 42 ec 24 d0 3c 50 75 03 f8 eb 01 f9 |j...b.$.<pu.....| 00000140 5a c3 51 8b 0e 6c 04 83 c1 12 81 c2 ff 01 ec 8a |z.q..l..........| 00000150 e0 80 e4 d8 80 fc 58 74 06 3b 0e 6c 04 75 ef 81 |......xt.;.l.u..| 00000160 ea ff 01 b9 00 20 e2 fe 59 c3 0d 0a 45 72 72 6f |..... ..y...erro| 00000170 72 20 4c 6f 61 64 69 6e 67 20 4f 53 00 aa 55 00 |r loading os..u.| 00000180 00 e9 80 fe 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001b0 00 00 00 00 00 00 00 00 69 6a 29 01 00 00 00 01 |........ij).....| 000001c0 01 00 07 fe ff ff 3f 00 00 00 1a 1f 80 07 00 fe |......?.........| 000001d0 ff ff 83 fe ff ff 59 1f 80 07 28 26 9c 15 00 00 |......y...(&....| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............u.| 00000200
suggestions appreciated , promise i'll stop trying kill system (for while anyway)code:sudo fdisk -l disk /dev/sda: 500 gb, 500105249280 bytes 255 heads, 63 sectors/track, 60801 cylinders units = cylinders of 16065 * 512 = 8225280 bytes device boot start end blocks id system /dev/sda1 * 1 4569 36700461 7 hpfs/ntfs /dev/sda2 4570 7180 20964825 7 hpfs/ntfs /dev/sda3 7181 60801 430702650 83 linux disk /dev/sdb: 500 gb, 500105249280 bytes 255 heads, 63 sectors/track, 60801 cylinders units = cylinders of 16065 * 512 = 8225280 bytes device boot start end blocks id system /dev/sdb1 * 1 2611 20972826 83 linux /dev/sdb2 2612 5222 20964825 83 linux /dev/sdb3 5223 5483 2088450 82 linux swap /dev/sdb4 5484 60801 444333802 83 linux disk /dev/sdc: 250 gb, 250056737280 bytes 255 heads, 63 sectors/track, 30401 cylinders units = cylinders of 16065 * 512 = 8225280 bytes device boot start end blocks id system /dev/sdc1 1 7833 62918541 7 hpfs/ntfs /dev/sdc2 7834 30401 181269427 83 linux warning: unable open /dev/fd0 read-write (read-only file system). /dev/fd0 has been opened read-only.
i'll blame on windows.
i guess grub looking uuid c8e4918ce4917cfe , after reformat sda1 called uuid 52767f0c00d021da.
reasoning correct?
if how change grub search new uuid?
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] Dual boot- "error: no such device" after reformating/reloaded XP partition
Ubuntu
Comments
Post a Comment