PDA

View Full Version : [ubuntu] Disk Read Errors with other OS's



ShabamJenkins
November 15th, 2009, 07:08 PM
Last night I did some much delayed installing of operating systems. I currently have 3 of them installed: win7x64, ubuntu 9.10x64 (which i'm using), and winXPx86. The problem I have discovered is that I cannot access any other OS other than Ubuntu. My boot menu doesn't even list XP as a choice and win7 gives me a disk read error. I'm not very experienced with ubuntu, but do enjoy using it. From what I have read I understand the new menu.lst is grub.cfg so I figured a good start would be to post the contents of that.


#
# 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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 0590b915-b679-4453-9cf7-e4bd57631714
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
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/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} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 0590b915-b679-4453-9cf7-e4bd57631714
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0590b915-b679-4453-9cf7-e4bd57631714 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} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 0590b915-b679-4453-9cf7-e4bd57631714
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=0590b915-b679-4453-9cf7-e4bd57631714 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 "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 0cecfde2ecfdc64c
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 ###

Any help on this situation is greatly appreciated!!

ShabamJenkins
November 17th, 2009, 06:47 AM
I'm sorry if this isn't a novice question but could someone please give me some kind of direction? The more I read about grub2 and that I don't want to directly edit grub.cfg seems to make me want to just forget about ubuntu for now...

EDIT: I wanted to add the results of: fdisk -l /dev/sda



Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 98248+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 13771 110512133+ 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 13772 24321 84742875 f W95 Ext'd (LBA)
/dev/sda5 13772 15417 13219101 7 HPFS/NTFS
/dev/sda6 15418 23952 68557356 83 Linux
/dev/sda7 23953 24321 2963961 82 Linux swap / Solaris


Please, any direction is greatly appreciated!

Mark Phelps
November 17th, 2009, 10:03 PM
The results of your disk listing command don't look good for the NTFS partitions.

What order did you use to install the OS's?

Also, did you have to shrink existing Win7x64 partition to make room to install the others?

And, if so, did you use a Linux utility to do that shrinkage?

If so, that likely corrupted the NTFS partitions such that you will have to boot back into Win7 and run chkdsk on the partitions to make them usable again.

ShabamJenkins
November 17th, 2009, 10:13 PM
I guess I should have been clearer on the exact order I installed.

I initially only had win7 installed on the entire drive. I then used the 9.10 livecd to resize the partition to make room for the new OS's.

As of right now, I can't get any other OS to boot other than Ubuntu. Will I be able to go to the recovery section on the windows disk, select a partition, and run chkdsk from there?