PDA

View Full Version : [ubuntu] Grub error after fesh install of 11.10



asummerell
October 31st, 2011, 03:29 PM
I have been having problems with Grub when doing a fresh install of 11.10 on a Dell Optiplex GX260. After the install finishes and reboots all I get is:

error: file not found.
Grub rescue>
I have also tried the boot rescue cd and forcing the grub install to sda1, but I still get the same result. If anyone has any advice, please help me out. Here is the boot info summary:

Boot Info Script 0.60 from 17 May 2011

============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) 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
for ?? on this drive.
=> Syslinux MBR (3.00-3.35) is installed in the MBR of /dev/sdb.
sda1: __________________________________________________ ________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: __________________________________________________ ________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ ________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: __________________________________________________ ________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM
============================ Drive/Partition Info: =============================
Drive: sda __________________________________________________ ___________________
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 * 2,048 486,303,743 486,301,696 83 Linux
/dev/sda2 486,305,790 488,396,799 2,091,010 5 Extended
/dev/sda5 486,305,792 488,396,799 2,091,008 82 Linux swap / Solaris

Drive: sdb __________________________________________________ ___________________
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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/sdb1 * 63 156,280,319 156,280,257 7 NTFS / exFAT / HPFS

"blkid" output: __________________________________________________ ______________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac ext4
/dev/sda5 cf649c11-7a14-4db5-b52c-bb1feed8205d swap
/dev/sdb1 1E9CADBC9CAD8F39 ntfs
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sr0 /live/image iso9660 (ro,noatime)

=========================== sda1/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="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 video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-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=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
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=root 8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac
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/sdb1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 1E9CADBC9CAD8F39
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 ###
--------------------------------------------------------------------------------
=============================== sda1/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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
# / was on /dev/sda1 during installation
UUID=8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=cf649c11-7a14-4db5-b52c-bb1feed8205d none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/core.img 1
?? = ?? boot/grub/grub.cfg 1
?? = ?? boot/initrd.img-3.0.0-12-generic 1
?? = ?? boot/vmlinuz-3.0.0-12-generic 1
?? = ?? initrd.img 1
?? = ?? vmlinuz 1
================================ sdb1/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
=============================== StdErr Messages: ===============================
File descriptor 3 (pipe:[6511]) leaked on lvscan invocation. Parent PID 17371: bash
File descriptor 7 (pipe:[6511]) leaked on lvscan invocation. Parent PID 17371: bash
File descriptor 63 (pipe:[12657]) leaked on lvscan invocation. Parent PID 17371: bash
No volume groups found
mdadm: No arrays found in config file or automatically
ADDITIONAL INFORMATION :
**************** log of boot-repair 2011-10-31__13h03 ****************
boot-repair version : 3-0ppa15~lucid
clean-ubiquity-common version : 3-0ppa8~lucid
internet: connected
boot-repair-common version : 3.0-0ppa22~lucid
File descriptor 3 (pipe:[6511]) leaked on lvs invocation. Parent PID 3924: /bin/sh
File descriptor 7 (pipe:[6511]) leaked on lvs invocation. Parent PID 3924: /bin/sh
No volume groups found
LIVESESSION is : yes
BYTES_BEFORE_PART[1] (sda) = 2048 sectors * 512 bytes = 1048576 bytes.
BYTES_BEFORE_PART[2] (sdb) = 63 sectors * 512 bytes = 32256 bytes.
OSPROBER: /dev/sda1:Ubuntu 11.10 (11.10):Ubuntu:linux
/dev/sdb1:Microsoft Windows XP Home Edition:Windows:chain
BLKID: /dev/sda1: UUID="8ce8090f-0bb9-4d9d-b8ab-f0de7cd55bac" TYPE="ext4"
/dev/sda5: UUID="cf649c11-7a14-4db5-b52c-bb1feed8205d" TYPE="swap"
/dev/sdb1: UUID="1E9CADBC9CAD8F39" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
sda1 contains Ubuntu 11.10 (linux)
sdb1 contains Microsoft Windows XP Home (windows)
2 disks with OS, 2 OS : 1 Linux, 0 MacOS, 1 Windows, 0 unknown type OS.
Total of 1 OS detected on sda disk.
Total of 1 OS detected on sdb disk.
sda contains minimum one OS
sdb contains minimum one OS
FDISK
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009fccd
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486303743 243150848 83 Linux
/dev/sda2 486305790 488396799 1045505 5 Extended
/dev/sda5 486305792 488396799 1045504 82 Linux swap / Solaris
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c84ec
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 156280319 78140128+ 7 HPFS/NTFS
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009fccd
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486303743 243150848 83 Linux
/dev/sda2 486305790 488396799 1045505 5 Extended
/dev/sda5 486305792 488396799 1045504 82 Linux swap / Solaris
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c84ec
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 156280319 78140128+ 7 HPFS/NTFS
sda1 : sda, not-sepboot, grub, aptget, 32, with boot, /mnt/clean/sda1, with-os, no-gpt, fstab-without-efi.
sdb1 : sdb, not-sepboot, no-grub, no-aptget, 32, no boot, /mnt/clean/sdb1, with-os, no-gpt, no-fstab.
/usr/share/clean/cleancommon-gui.sh: line 360: parted: command not found
PARTED:
MOUNT aufs on / type aufs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sr0 on /live/image type iso9660 (ro,noatime)
tmpfs on /live/cow type tmpfs (rw,noatime,mode=755)
tmpfs on /live type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda1 on /mnt/clean/sda1 type ext4 (rw)
/dev/sdb1 on /mnt/clean/sdb1 type fuseblk (rw,allow_other,blksize=4096)
/sys/block/fd0: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sda1 sda2 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev: agpgart block bsg btrfs-control bus cdrom char console core cpu_dma_latency disk dmmidi dri dvd fb0 fd fd0 full fuse hidraw0 hidraw1 hidraw2 hpet initctl input kmsg log MAKEDEV mapper md mem midi net network_latency network_throughput null port ppp psaux ptmx pts random rtc rtc0 scd0 sda sda1 sda2 sda5 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sndstat sr0 stderr stdin stdout urandom vga_arbiter xconsole zero
/dev/mapper: control
DF Filesystem Type Size Used Avail Use% Mounted on
aufs aufs 506M 71M 435M 14% /
tmpfs tmpfs 506M 0 506M 0% /lib/init/rw
udev tmpfs 501M 180K 500M 1% /dev
tmpfs tmpfs 506M 0 506M 0% /dev/shm
/dev/sr0 iso9660 336M 336M 0 100% /live/image
tmpfs tmpfs 506M 71M 435M 14% /live/cow
tmpfs tmpfs 506M 0 506M 0% /live
tmpfs tmpfs 506M 1.1M 505M 1% /tmp
/dev/sda1 ext4 229G 2.4G 215G 2% /mnt/clean/sda1
/dev/sdb1 fuseblk 75G 18G 57G 25% /mnt/clean/sdb1
FDISK
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009fccd
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 486303743 243150848 83 Linux
/dev/sda2 486305790 488396799 1045505 5 Extended
/dev/sda5 486305792 488396799 1045504 82 Linux swap / Solaris
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c84ec
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 156280319 78140128+ 7 HPFS/NTFS
Logs saved into /mnt/clean/sda1/var/log/clean/log/2011-10-31__13h03boot-repair11
Logs saved into /mnt/clean/sdb1/clean/log/2011-10-31__13h03boot-repair11
combobox_ostoboot_bydefault_fillin
Order Linux according to their /boot type 64
Order Linux according to their /boot type 32
combobox_efi_fillin sda1
combobox_separateboot_fillin
set_checkbutton_reinstall_grub
set_radiobutton_ostoboot_bydefault
separate_bootpart and efi show_hide sda1
efi_show_hide 1 (no-gpt)
set_radiobutton_place_alldisks
separate_bootpart and efi show_hide sda1
efi_show_hide 1 (no-gpt)
************************Before mainwindow appear
PURGE_POSSIBLE yes PART_TO_REINSTALL_GRUB_PURGE 1 (sda1)
FSCK_ACTION yes PASTEBIN_ACTION yes
REINSTALL_POSSIBLE yes MBR_ACTION reinstall UNHIDEBOOT_ACTION yes (10.s)
PART_TO_REINSTALL_GRUB 1 (sda1) FORCE_GRUB all NOFORCE_DISK sda REMOVABLEDISK no UNCOMMENT_GFXMODE no ATA no-ata ADD_KERNEL_OPTION no (acpi=off) MBR_TO_RESTORE sda (mbr) (sda) USE_SEPARATEBOOTPART no () grub-pc ()
/usr/share/clean/bootrepair.sh: line 56: 2752 Terminated while true; do
done
RETOURCOMBO_purge_grub : sda1 (Ubuntu 11.10)
RETOURCOMBO_ostoboot_bydefault : sda1 (Ubuntu 11.10)
separate_bootpart and efi show_hide sda1
efi_show_hide 1 (no-gpt)
RETOURCOMBO_place_grub (NOFORCE_DISK) : sda
set_radiobutton_place_alldisks
set_checkbutton_reinstall_grub
set_radiobutton_ostoboot_bydefault
separate_bootpart and efi show_hide sda1
efi_show_hide 1 (no-gpt)
set_radiobutton_place_alldisks
separate_bootpart and efi show_hide sda1
efi_show_hide 1 (no-gpt)
RETOURCOMBO_place_grub (NOFORCE_DISK) : sda
internet: connected
************************Before Repairing
PURGE_POSSIBLE yes PART_TO_REINSTALL_GRUB_PURGE 1 (sda1)
FSCK_ACTION yes PASTEBIN_ACTION yes
REINSTALL_POSSIBLE yes MBR_ACTION reinstall UNHIDEBOOT_ACTION yes (10.s)
PART_TO_REINSTALL_GRUB 1 (sda1) FORCE_GRUB yes NOFORCE_DISK sda REMOVABLEDISK no UNCOMMENT_GFXMODE no ATA no-ata ADD_KERNEL_OPTION no (acpi=off) MBR_TO_RESTORE sda (mbr) (sda) USE_SEPARATEBOOTPART no () grub-pc ()
Force Unmount all blkid partitions (for fsck) except / /boot /cdrom /dev /etc /home /opt /pas /proc /rofs /sys /tmp /usr /var
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda1: 138033/15204352 files (0.1% non-contiguous), 1570145/60787712 blocks
OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
Freed space function
/dev/sda1 239333952 2463684 224712728 2% /mnt/clean/sda1
/dev/sdb1 78140128 18815504 59324624 25% /mnt/clean/sdb1
Unhide GRUB boot menu in sda1/etc/default/grub
Reinstall the GRUB of sda1 into the sda1 partition
Unmount (force) all OS partitions except / and partition where we reinstall GRUB (sda1)
dpkg_function
grub-install (GRUB) 1.99-12ubuntu5
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Home Edition on /dev/sdb1
done
Mount all the partitions for the logs
Unhide boot menu (10 seconds) if Wubi detected
Unhide GRUB boot menu in sda1/boot/grub/grub.cfg
internet: connected

raja.genupula
October 31st, 2011, 04:03 PM
Hi man

look at my signature for GRUB recovery .I am sure that gonna solve your issue man.

All the best .

asummerell
October 31st, 2011, 04:44 PM
Hi man

look at my signature for GRUB recovery .I am sure that gonna solve your issue man.

All the best .

I tried that and I'm still getting the same thing.

error: file not found.
Grub rescue>

zghawking
October 31st, 2011, 05:07 PM
raja.genupula

when I try this

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y boot-repair && boot-repair

i end up with this message:


W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/Release Unable to find expected entry 'restricted/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

bcbc
October 31st, 2011, 05:13 PM
From the boot repair log in the first post it looks like boot-repair is installing grub to /dev/sda1 which is wrong (and dangerous if this is a bug).

Reinstall the GRUB of sda1 into the sda1 partition
Unmount (force) all OS partitions except / and partition where we reinstall GRUB (sda1)
dpkg_function
grub-install (GRUB) 1.99-12ubuntu5
/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
Generating grub.cfg ...

I would try installing grub manually to /dev/sda instead using these instructions (https://help.ubuntu.com/community/Grub2#Methods_of_Reinstalling) from a live CD:

sudo mount /dev/sda1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

zghawking
October 31st, 2011, 05:39 PM
i think once i was able to get to grub> i just needed to re-install ubuntu and it's working now. thanks :)

raja.genupula
October 31st, 2011, 05:42 PM
raja.genupula

when I try this

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y boot-repair && boot-repair

i end up with this message:


W: Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/Release Unable to find expected entry 'restricted/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

hi try to change your server and try again .