emanresu
December 25th, 2010, 09:37 PM
Greetings,
I have a dualboot laptop (HP/Compaq nx 7300), XP and Ubuntu. I updated to 10.04 yesterday. I was able to run Ubuntu right after the upgrade. Restarted the computer and logged into XP. Restarted again and got this error msg:
"No module name found. Aborted. Press any key to exit"
Pressed a key and got:
"Non-system disk or disk error. Replace and strike any key when ready."
and then it goes back and forth between error msgs each time I press a key. Try as I might, I could get neither XP or Ubuntu to even show up, let alone boot.
I've spent hours trying to figure things out, but I'm no expert, so my knowledge is incomplete and my solutions are lacking. This is what I've figured out so far:
I used Grub Super Disk(GSD) to get rid of the MBR or something, so I was finally able to boot XP. Once there I checked the web for possible solutions. Somewhere I saw that Windows was somehow screwing up GRUB2-based MBRs. I reinstalled 10.04 2x now and it didn't work. I didn't realize there was a change to GRUB at first (wasn't paying attention to the GRUB name at first), so i was looking for /boot/grub/menu.lst to see if I could fix that the first time I reinstalled. Didn't work, since there was no more /boot/grub/menu.lst.
More searching about the issue and I've tried at least these
2 (http://ubuntuforums.org/showthread.php?t=1581099) similar suggestions (https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202) and they don't work.
Specifically, I tried:
sudo mkdir /media/sda7
sudo mount /dev/sda7 /media/sda7
sudo grub-install --root-directory=/media/sda7 /dev/sda
2X and the 2nd time I also added
sudo update-grub
(I've seen "-grub" and "-grub2". Which should it be?)
At this point, after thinking I've "fixed" GRUB and the MBR and restarted the computer, I get a GRUB menu and can log onto either OS. But if I choose XP and restart after logging into XP, I get the same two error msgs that I start this post off with and GRUB is shot. I can use GSD and the tools there to get rid of MBR and at least get into XP or I can use LiveCD and start 10.04 after that, but that's a lot of work to do something that worked quite easily when I had 9.10 or .04 or whatever the previous version was.
I found another thread that uses a script to diagnose problems. Here are the results from the boot_info_script055.
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 #7 for /boot/grub.
sda1: __________________________________________________ _______________________
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/dirs: /boot.ini /ntldr /ntdetect.com
sda2: __________________________________________________ _______________________
File system: vfat
Boot sector type: HP Recovery
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda3: __________________________________________________ _______________________
File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda4: __________________________________________________ _______________________
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:
Boot files/dirs:
sda7: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 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 End Size Id System
/dev/sda1 * 63 37,752,749 37,752,687 7 HPFS/NTFS
/dev/sda2 37,752,750 50,444,099 12,691,350 c W95 FAT32 (LBA)
/dev/sda3 50,444,100 119,652,119 69,208,020 c W95 FAT32 (LBA)
/dev/sda4 119,652,181 156,301,311 36,649,131 f W95 Ext d (LBA)
/dev/sda5 119,652,183 126,110,249 6,458,067 82 Linux swap / Solaris
/dev/sda6 126,110,313 141,821,819 15,711,507 83 Linux
/dev/sda7 141,821,952 156,301,311 14,479,360 83 Linux
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 3A48F38E48F34763 ntfs
/dev/sda2 3751-5B7F vfat
/dev/sda3 4642-1A54 vfat
/dev/sda4: PTTYPE="dos"
/dev/sda5 f1475d8f-4b52-4c35-a3c8-edab8da59704 swap
/dev/sda6 e2f2318f-641e-4526-8695-f72b84889dce ext3
/dev/sda7 1f8afdad-27a6-4989-8c78-8c621b1de31d ext4
/dev/sda: PTTYPE="dos"
============================ "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/sr0 /media/apt iso9660 (ro)
================================ sda1/boot.ini: ================================
[boot loader]
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
================================ sda2/boot.ini: ================================
[boot loader]
timeout=0
default=C:\CMDCONS\BOOTSECT.DAT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
=========================== sda7/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
set locale_dir=($root)/boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d ro quiet splash
initrd /boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
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 3a48f38e48f34763
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod fat
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 3751-5b7f
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 ###
=============================== 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
# / was on /dev/sda7 during installation
UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f1475d8f-4b52-4c35-a3c8-edab8da59704 none swap sw 0 0
=================== sda7: Location of files loaded by Grub: ===================
77.4GB: boot/grub/core.img
75.4GB: boot/grub/grub.cfg
77.8GB: boot/initrd.img-2.6.32-24-generic
77.7GB: boot/vmlinuz-2.6.32-24-generic
77.8GB: initrd.img
77.7GB: vmlinuz
This is what the boot info result looks like after I've booted XP and messed up GRUB and used GSD to get rid of MBR or whatever it does. I wrote this post logged into 10.04 using the LiveCD.
I have a dualboot laptop (HP/Compaq nx 7300), XP and Ubuntu. I updated to 10.04 yesterday. I was able to run Ubuntu right after the upgrade. Restarted the computer and logged into XP. Restarted again and got this error msg:
"No module name found. Aborted. Press any key to exit"
Pressed a key and got:
"Non-system disk or disk error. Replace and strike any key when ready."
and then it goes back and forth between error msgs each time I press a key. Try as I might, I could get neither XP or Ubuntu to even show up, let alone boot.
I've spent hours trying to figure things out, but I'm no expert, so my knowledge is incomplete and my solutions are lacking. This is what I've figured out so far:
I used Grub Super Disk(GSD) to get rid of the MBR or something, so I was finally able to boot XP. Once there I checked the web for possible solutions. Somewhere I saw that Windows was somehow screwing up GRUB2-based MBRs. I reinstalled 10.04 2x now and it didn't work. I didn't realize there was a change to GRUB at first (wasn't paying attention to the GRUB name at first), so i was looking for /boot/grub/menu.lst to see if I could fix that the first time I reinstalled. Didn't work, since there was no more /boot/grub/menu.lst.
More searching about the issue and I've tried at least these
2 (http://ubuntuforums.org/showthread.php?t=1581099) similar suggestions (https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202) and they don't work.
Specifically, I tried:
sudo mkdir /media/sda7
sudo mount /dev/sda7 /media/sda7
sudo grub-install --root-directory=/media/sda7 /dev/sda
2X and the 2nd time I also added
sudo update-grub
(I've seen "-grub" and "-grub2". Which should it be?)
At this point, after thinking I've "fixed" GRUB and the MBR and restarted the computer, I get a GRUB menu and can log onto either OS. But if I choose XP and restart after logging into XP, I get the same two error msgs that I start this post off with and GRUB is shot. I can use GSD and the tools there to get rid of MBR and at least get into XP or I can use LiveCD and start 10.04 after that, but that's a lot of work to do something that worked quite easily when I had 9.10 or .04 or whatever the previous version was.
I found another thread that uses a script to diagnose problems. Here are the results from the boot_info_script055.
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 #7 for /boot/grub.
sda1: __________________________________________________ _______________________
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/dirs: /boot.ini /ntldr /ntdetect.com
sda2: __________________________________________________ _______________________
File system: vfat
Boot sector type: HP Recovery
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda3: __________________________________________________ _______________________
File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda4: __________________________________________________ _______________________
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:
Boot files/dirs:
sda7: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 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 End Size Id System
/dev/sda1 * 63 37,752,749 37,752,687 7 HPFS/NTFS
/dev/sda2 37,752,750 50,444,099 12,691,350 c W95 FAT32 (LBA)
/dev/sda3 50,444,100 119,652,119 69,208,020 c W95 FAT32 (LBA)
/dev/sda4 119,652,181 156,301,311 36,649,131 f W95 Ext d (LBA)
/dev/sda5 119,652,183 126,110,249 6,458,067 82 Linux swap / Solaris
/dev/sda6 126,110,313 141,821,819 15,711,507 83 Linux
/dev/sda7 141,821,952 156,301,311 14,479,360 83 Linux
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 3A48F38E48F34763 ntfs
/dev/sda2 3751-5B7F vfat
/dev/sda3 4642-1A54 vfat
/dev/sda4: PTTYPE="dos"
/dev/sda5 f1475d8f-4b52-4c35-a3c8-edab8da59704 swap
/dev/sda6 e2f2318f-641e-4526-8695-f72b84889dce ext3
/dev/sda7 1f8afdad-27a6-4989-8c78-8c621b1de31d ext4
/dev/sda: PTTYPE="dos"
============================ "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/sr0 /media/apt iso9660 (ro)
================================ sda1/boot.ini: ================================
[boot loader]
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
================================ sda2/boot.ini: ================================
[boot loader]
timeout=0
default=C:\CMDCONS\BOOTSECT.DAT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
=========================== sda7/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
set locale_dir=($root)/boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d ro quiet splash
initrd /boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/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,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 1f8afdad-27a6-4989-8c78-8c621b1de31d
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 3a48f38e48f34763
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod fat
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 3751-5b7f
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 ###
=============================== 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
# / was on /dev/sda7 during installation
UUID=1f8afdad-27a6-4989-8c78-8c621b1de31d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f1475d8f-4b52-4c35-a3c8-edab8da59704 none swap sw 0 0
=================== sda7: Location of files loaded by Grub: ===================
77.4GB: boot/grub/core.img
75.4GB: boot/grub/grub.cfg
77.8GB: boot/initrd.img-2.6.32-24-generic
77.7GB: boot/vmlinuz-2.6.32-24-generic
77.8GB: initrd.img
77.7GB: vmlinuz
This is what the boot info result looks like after I've booted XP and messed up GRUB and used GSD to get rid of MBR or whatever it does. I wrote this post logged into 10.04 using the LiveCD.