PDA

View Full Version : [ubuntu] a disk error occurred press



c1363
September 18th, 2010, 04:35 AM
After the installation of Ubuntu,i tried to boot Windows XP on the GRUB menu. But it displays:

a disk error occurred press ctrl+alt+del to restart

Anyone know how to solve that?

I have tried:
sudo update-grub

But this was not working.

GRUB boot entrie
sudo gedit /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
}
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set 68c31b3f-5be7-47e8-81ba-9b8495089392
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 009608fc-5237-4a9a-b890-e1d4fd94e6fa
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
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 ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 009608fc-5237-4a9a-b890-e1d4fd94e6fa
linux /vmlinuz-2.6.32-24-generic root=UUID=68c31b3f-5be7-47e8-81ba-9b8495089392 ro quiet splash
initrd /initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 009608fc-5237-4a9a-b890-e1d4fd94e6fa
echo 'Loading Linux 2.6.32-24-generic ...'
linux /vmlinuz-2.6.32-24-generic root=UUID=68c31b3f-5be7-47e8-81ba-9b8495089392 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 009608fc-5237-4a9a-b890-e1d4fd94e6fa
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,11)'
search --no-floppy --fs-uuid --set 009608fc-5237-4a9a-b890-e1d4fd94e6fa
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda7)" {
insmod ntfs
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 4c844b34844b2036
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (loader) (on /dev/sda8)" {
insmod ntfs
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 4c844b34844b2036
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 ###


Partition info
sudo fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0b1ebb0

Device Boot Start End Blocks Id System
/dev/sda2 * 1 81385 653723989+ f W95 Ext'd (LBA)
/dev/sda5 9603 65705 450647316 7 HPFS/NTFS
/dev/sda6 65706 78453 102398278+ 7 HPFS/NTFS
/dev/sda7 78454 80365 15358108+ 7 HPFS/NTFS
/dev/sda8 80366 81385 8193118+ 7 HPFS/NTFS
/dev/sda9 1 6079 48827392 83 Linux
/dev/sda10 6079 7903 14647296 83 Linux
/dev/sda11 7903 7919 123904 83 Linux
/dev/sda12 7919 8168 1998848 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 4043 MB, 4043309056 bytes
125 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7750 * 512 = 3968000 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001728c

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1018 3944719 c W95 FAT32 (LBA)

Herman
September 18th, 2010, 09:26 PM
Right now your boot flag looks like it's set in the extended partition.
It's simpler to have at least one of your Windows installations in a primary partition and use that for your 'boot partition', but it is also possible to boot Windows in a logical partition and it's also possible to boot Windows in any physical location in the hard disk, contrary to popular beliefs.
Try setting a boot flag on whichever Windows system partition you want to boot with GParted in your Ubuntu Live CD.

You may need to edit boot.ini, possibly in both of your Windows installations to tell them each which partition they're in. I'm not sure how Windows numbers partitions, you may need to find out by trial and error. A useful bootloader CD for doing that with can be downloaded from the following linked website, How to fix: NTLDR is missing, press any key to restart (http://tinyempire.com/notes/ntldrismissing.htm).If you don't want to edit your boot.ini by hand, you might try using your Windows Installation CD and boot it to a console, then run boot.cfg /rebuild, and that should generate you a brand new shiney boot.ini file with the correct partition numbering in automatically.

If all else fails, consider deleting one or two of your operating systems to get some free space in your hard disk and try copying your Windows installations to primary partitions, that would be a lot simpler to boot than the setup you have now.