PDA

View Full Version : [ubuntu] no such device



pepsiboy
June 19th, 2010, 06:33 PM
hey guys,

was playing around with a boot loader skin/theme and destroyed grub (that will teach me) im getting this error :

5b9b73e0-13e7-43ef-803e-6ac1a9b477c1. I've tried a few things but cant seem to get it working. I just get grub rescue>. How can i just boot windows?. Im running ubuntu 10.4 thanks for your help!.

darkod
June 19th, 2010, 07:44 PM
You shouldn't get that error unless you destroyed the whole ubuntu partition.

From live mode download the boot info script in my signature, run it and post the content of your results file as explained here:
http://ubuntuforums.org/showpost.php?p=8844901&postcount=4

pepsiboy
June 20th, 2010, 11:08 AM
Here are my results :

Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #256 for /boot/grub.
=> Syslinux is installed in the MBR of /dev/sdf

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM

sda2: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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

sda4: __________________________________________________ _______________________

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: /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr
/ubuntu/disks/root.disk /ubuntu/disks/swap.disk
/grub/core.img /boot/grub/core.img

sda4/Wubi: __________________________________________________ _______________________

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

sdf1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: According to the info in the boot sector, sdf1 starts
at sector 0. But according to the info from fdisk,
sdf1 starts at sector 63.
Operating System:
Boot files/dirs:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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 63 144,584 144,522 de Dell Utility
/dev/sda2 145,408 21,116,927 20,971,520 7 HPFS/NTFS
/dev/sda3 * 21,116,928 1,047,630,779 1,026,513,852 7 HPFS/NTFS
/dev/sda4 1,047,630,780 1,250,263,726 202,632,947 7 HPFS/NTFS


Drive: sdf ___________________ __________________________________________________ ___

Disk /dev/sdf: 8023 MB, 8023703552 bytes
255 heads, 63 sectors/track, 975 cylinders, total 15671296 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdf1 * 63 15,671,249 15,671,187 b W95 FAT32


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 5b9b73e0-13e7-43ef-803e-6ac1a9b477c1 ext4
/dev/sda1 07D8-070A vfat DellUtility
/dev/sda2 58F65C50F65C310C ntfs RECOVERY
/dev/sda3 8A5ACE435ACE2BAF ntfs OS
/dev/sda4 C420382320381F3C ntfs Ubuntu
/dev/sda: PTTYPE="dos"
/dev/sdf1 481B-17DF vfat UNTITLED
/dev/sdf: PTTYPE="dos"
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdf1 /media/UNTITLED vfat (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,sh ortname=mixed,dmask=0077,utf8=1,flush)


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


??GB: boot/grub/core.img
??GB: grub/core.img

======================== sda4/Wubi/boot/grub/grub.cfg: ========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.32-22-generic" {
insmod ntfs
set root='(hd0,4)'
search --no-floppy --fs-uuid --set c420382320381f3c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-22-generic root=/dev/sda4 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, Linux 2.6.32-22-generic (recovery mode)" {
insmod ntfs
set root='(hd0,4)'
search --no-floppy --fs-uuid --set c420382320381f3c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-22-generic root=/dev/sda4 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, Linux 2.6.32-21-generic" {
insmod ntfs
set root='(hd0,4)'
search --no-floppy --fs-uuid --set c420382320381f3c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-21-generic root=/dev/sda4 loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, Linux 2.6.32-21-generic (recovery mode)" {
insmod ntfs
set root='(hd0,4)'
search --no-floppy --fs-uuid --set c420382320381f3c
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-21-generic root=/dev/sda4 loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Recovery Environment (loader) (on /dev/sda3)" {
insmod ntfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 8a5ace435ace2baf
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 ###

============================= sda4/Wubi/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
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0

================= sda4/Wubi: Location of files loaded by Grub: =================


2.3GB: boot/grub/core.img
16.2GB: boot/grub/grub.cfg
2.3GB: boot/initrd.img-2.6.32-21-generic
2.5GB: boot/initrd.img-2.6.32-22-generic
2.3GB: boot/vmlinuz-2.6.32-21-generic
1.6GB: boot/vmlinuz-2.6.32-22-generic
2.5GB: initrd.img
2.3GB: initrd.img.old
1.6GB: vmlinuz
2.3GB: vmlinuz.old
=======Devices which don't seem to have a corresponding hard drive==============

sdb sdc sdd sde

Thanks!

darkod
June 20th, 2010, 12:37 PM
Did you try to reinstall grub2 to the MBR? You shouldn't have it there since you are using wubi, but you do.

Remember, wubi is not full ubuntu and when following any tutorials or procedures make sure what they are for.

You can fix your mbr either with the vista dvd or simply in ubuntu live mode with:

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

The first command will give you some warnings that will sound scary, just ignore them and run the second command once the prompt appears.

pepsiboy
June 20th, 2010, 05:24 PM
Thank you very much that fixed it!!! :)