PDA

View Full Version : [ubuntu] Ubuntu 11.04 wont boot (fresh install with two old ntfs partitions)



Jerry M
September 29th, 2011, 07:54 PM
I have decided to install Ubuntu 11.04 (:D) to my pc and keep two windows partitions with my documents. I made the installation using the “allocate drive space window”
dev\sda1 (boot partition) 300 MB
dev\sda5 (old windows partitions with my data, no OS)
dev\sda6 (old windows partitions with my data, no OS)
dev\sda7 (swap partition) 2GB
dev\sda8 (root partition) 10 GB
dev\sda9 (home partition)
Everything went well during installation, but after my first reboot Ubuntu 11.04 wont boot and I get a black screen.
Any ideas :-? ??

It follows the result after running boot info script




Boot Info Script 0.60 from 17 May 2011


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

=> Windows is installed in the MBR of /dev/sda.

sda1: __________________________________________________ ________________________

File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda2: __________________________________________________ ________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files:

sda6: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files:

sda7: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

sda8: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab

sda9: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders, total 398297088 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 585,727 583,680 83 Linux
/dev/sda2 587,774 398,267,414 397,679,641 f W95 Extended (LBA)
/dev/sda5 143,364,123 266,245,244 122,881,122 7 NTFS / exFAT / HPFS
/dev/sda6 266,245,308 398,267,414 132,022,107 7 NTFS / exFAT / HPFS
/dev/sda7 587,776 4,491,263 3,903,488 82 Linux swap / Solaris
/dev/sda8 * 4,493,312 24,023,039 19,529,728 83 Linux
/dev/sda9 24,025,088 143,362,047 119,336,960 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 285b0cbb-da23-4593-b92c-062ef7d91031 ext2
/dev/sda5 84BCCF32BCCF1E14 ntfs
/dev/sda6 3A74D8E074D8A045 ntfs
/dev/sda7 ab4827e6-5a40-4884-9a7b-939cbaa6e6df swap
/dev/sda8 c06c8c40-0d47-4fd1-90eb-97bced3d4c99 ext4
/dev/sda9 110653ed-8b60-4aed-834b-ffa2e1817667 ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /mnt/boot ext2 (rw)
/dev/sda1 /mnt ext2 (rw)
/dev/sda8 /mnt ext4 (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sda8/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='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root c06c8c40-0d47-4fd1-90eb-97bced3d4c99
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 285b0cbb-da23-4593-b92c-062ef7d91031
set locale_dir=($root)/grub/locale
set lang=en_US
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
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 2.6.38-8-generic' --class ubuntu --class gnu-linux
--class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 285b0cbb-da23-4593-b92c-062ef7d91031
linux /vmlinuz-2.6.38-8-generic root=UUID=c06c8c40-0d47-4fd1-90eb-97bced3d4c99 ro
quiet splash vt.handoff=7
initrd /initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu
--class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 285b0cbb-da23-4593-b92c-062ef7d91031
echo 'Loading Linux 2.6.38-8-generic ...'
linux /vmlinuz-2.6.38-8-generic root=UUID=c06c8c40-0d47-4fd1-90eb-97bced3d4c99 ro
single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.38-8-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='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 285b0cbb-da23-4593-b92c-062ef7d91031
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 285b0cbb-da23-4593-b92c-062ef7d91031
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda8/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/sda8 during installation
UUID=c06c8c40-0d47-4fd1-90eb-97bced3d4c99 / ext4 errors=remount-ro
0 1
# /boot was on /dev/sda1 during installation
UUID=285b0cbb-da23-4593-b92c-062ef7d91031 /boot ext2 defaults 0
2
# /home was on /dev/sda9 during installation
UUID=110653ed-8b60-4aed-834b-ffa2e1817667 /home ext4 defaults 0
2
# swap was on /dev/sda7 during installation
UUID=ab4827e6-5a40-4884-9a7b-939cbaa6e6df none swap sw 0
0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

2.197948456 = 2.360029184 boot/grub/grub.cfg 1
2.168237686 = 2.328127488 boot/initrd.img-2.6.38-8-generic 53
2.155278206 = 2.314212352 boot/vmlinuz-2.6.38-8-generic 19
2.168237686 = 2.328127488 initrd.img 53
2.155278206 = 2.314212352 vmlinuz 19

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 b5 85 04 05 c5 04 c1 df 15 f4 0c a2 06 07 03 cb |................|
00000010 0c 26 06 1f 31 00 00 00 00 00 00 00 00 3c 0d 07 |.&..1........<..|
00000020 00 cd 00 0d 07 00 31 00 00 00 02 00 f0 00 00 00 |......1.........|
00000030 ff ff ff ff 00 ff ff ff ff 6f 02 00 00 00 ff ff |.........o......|
00000040 ff ff cd 0d 07 00 00 8c 0e 07 00 2c 00 00 00 00 |...........,....|
00000050 0b 00 00 00 9c 0d 07 00 00 f9 0d 07 00 27 00 00 |.............'..|
00000060 00 05 5b 0d 16 b1 f1 ec 1f 93 00 00 00 00 fb 00 |..[.............|
00000070 00 00 cd 0d 07 00 00 8c 0e 07 00 27 00 00 aa 00 |...........'....|
00000080 5a 0d f7 bc f0 f6 56 0d 58 2c 0d ab 91 18 d8 1a |Z.....V.X,......|
00000090 42 68 0d 90 0c 0b e4 4d 2d 3a 12 79 3d 00 c0 10 |Bh.....M-:.y=...|
000000a0 c8 10 0b 19 09 77 79 30 0a 25 2a 6f 0d cf 38 e7 |.....wy0.%*o..8.|
000000b0 46 18 19 4b 08 63 6f 6e 40 0b 75 63 74 73 39 52 |F..K.con@.ucts9R|
000000c0 20 0d 2c 62 0e 8f 00 4b 1e 31 00 00 00 00 00 00 | .,b...K.1......|
000000d0 00 00 f9 0d 00 07 00 bd 0e 07 00 31 00 00 00 00 |...........1....|
000000e0 02 88 01 00 00 ff 00 ff ff ff ff ff ff ff 70 00 |..............p.|
000000f0 02 00 00 ff ff ff ff bd 00 0e 07 00 14 10 07 00 |................|
00000100 37 00 00 00 00 22 00 00 00 8c 00 0e 07 00 f4 0e |7...."..........|
00000110 07 00 27 28 00 00 00 4b 0e 44 ad e1 ff 07 04 19 |..'(...K.D......|
00000120 91 12 2e c2 13 29 00 00 00 20 01 00 00 0b 02 00 |.....)... ......|
00000130 00 00 bd 0e 07 00 14 10 07 00 50 27 00 00 00 55 |..........P'...U|
00000140 0e 17 a5 d6 08 28 07 11 a9 54 22 3b 2e 25 69 6e |.....(...T";.%in|
00000150 0a 67 6d 06 db 87 17 3b 6d 61 6e 04 61 67 10 00 |.gm....;man.ag..|
00000160 07 19 cf 07 09 a6 55 31 3f 22 19 25 50 fe 29 a2 |......U1?".%P.).|
00000170 3c 0b 5b b0 28 c1 29 91 ff 07 8b 27 c2 2b 2b ea |<.[.(.)....'.++.|
00000180 ec 07 78 78 1a 9d 27 8c 6a 26 7e 0b 44 1b 61 e2 |..xx..'.j&~.D.a.|
00000190 08 c7 07 21 0e 7d 26 af 00 78 55 88 3f e2 fa 18 |...!.}&..xU.?...|
000001a0 58 c1 2e c9 e0 0e 0c 80 07 33 61 63 63 65 70 3f |X........3accep?|
000001b0 01 b2 0a 70 0d 7e 04 f6 0e 04 00 90 44 07 00 01 |...p.~......D...|
000001c0 c1 ff 07 fe ff ff 1d 98 82 08 62 04 53 07 00 fe |..........b.S...|
000001d0 ff ff 05 fe ff ff 7f 9c d5 0f 9a 7f de 07 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

oldfred
September 29th, 2011, 09:50 PM
For some reason your code tags were there but not working. Fixed.

You did not install grub2's boot loader to the MBR and it does not show core.img in the first sector after the MBR or in the boot partition.


=> Windows is installed in the MBR of /dev/sda

You also have boot flag on sda8. Grub does not use boot flag, a few BIOS do require a boot flag on a primary partition. You can use Disk Utility or gparted to put the boot flag on sda1.

You can try to just install grub2's boot loader to the MBR, but not sure if missing core.img will appear. I expect that you may have to chroot into system and totally reinstall grub2.

#Comments are anything after the #, enter commands in terminal session
#Install MBR from LiveCD, Ubuntu install on sda5 and want grub2's bootloader in drive sda's MBR:
#Find linux partition, change sda8 if not correct:
sudo fdisk -l
#confirm that linux is sda8
sudo mount /dev/sda8 /mnt
#If grub 1.99 with Natty uses boot not root.
sudo grub-install --boot-directory=/mnt/boot /dev/sda

# If no errors on previous commands reboot into working system and run this:
sudo update-grub

If you have to chroot into your system.
Reinstall grub2 - Short version & full chroot version
https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB2
Grub2 info & full chroot version - see METHOD 3 - CHROOT:
https://wiki.ubuntu.com/Grub2#Recover%20Grub%202%20via%20LiveCD
chroot with screen shots
http://opensource-sidh.blogspot.com/2011/06/recover-grub-live-ubuntu-cd.html

Jerry M
September 30th, 2011, 09:16 AM
You can try to just install grub2's boot loader to the MBR, but not sure if missing core.img will appear. I expect that you may have to chroot into system and totally reinstall grub2.

#Comments are anything after the #, enter commands in terminal session
#Install MBR from LiveCD, Ubuntu install on sda5 and want grub2's bootloader in drive sda's MBR:
#Find linux partition, change sda8 if not correct:
sudo fdisk -l
#confirm that linux is sda8
sudo mount /dev/sda8 /mnt
#If grub 1.99 with Natty uses boot not root.
sudo grub-install --boot-directory=/mnt/boot /dev/sda

# If no errors on previous commands reboot into working system and run this:
sudo update-grub


Thanks a lot for your guidance oldfred ;), I followed your instructions and everything runs smoothly now :D!!

oldfred
September 30th, 2011, 05:04 PM
Glad it worked.

You did not have to chroot, just run the reinstall?

If solved post solved with thread tools.