PDA

View Full Version : [ubuntu] Ubuntu 10.10 install on a fujitsu xp machine, grub won't start xp.



maxmus
November 5th, 2010, 07:45 AM
Hi, I am brand spanking new to the ubuntu scene and I am utterly confused.

I have an fujitsu p7120 that just got the 10.10 netbook version of ubuntu installed and it is VERY VERY FAST compared to the previous xp that is on it. Prior to the install, I have an XP os that I use for to tune/diag my car with, and couple other important programs.

When I restarted to boot into XP, it shows the name "Msoft Win XP Pro blah blah dev/sda1", I hit enter, and the grub screen keeps coming back as if I restarted it again immediatly.

So I dug around the ubuntu forums here, but I have no clue what I am doing....
I did run Boot Info & fdisk -l and here are the resulting txts

Boot Info Script 0.55 dated February 15th, 2010

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

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

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 52407672 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders, total 58605120 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 39,087,053 39,086,991 7 HPFS/NTFS
/dev/sda2 57,677,822 58,603,519 925,698 5 Extended
/dev/sda5 57,677,824 58,603,519 925,696 82 Linux swap / Solaris
/dev/sda3 39,088,128 57,675,775 18,587,648 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/mmcblk0p1 498D-3CDA vfat
/dev/sda1 147C4CEB7C4CC966 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda3 b08bb95f-07cf-4bd3-8d52-68f38ac25c8c ext4
/dev/sda5 a66a9014-0e22-47f0-979e-a065ff0e53a8 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda3 / ext4 (rw,errors=remount-ro,commit=0)
/dev/mmcblk0p1 /media/498D-3CDA vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,showexec,flush)
/dev/sda1 /media/147C4CEB7C4CC966 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


================================ sda1/boot.ini: ================================

[boot loader]
timeout=3
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 Professional" /noexecute=optin /fastdetect /noguiboot

=========================== sda3/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 part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
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.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b08bb95f-07cf-4bd3-8d52-68f38ac25c8c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=b08bb95f-07cf-4bd3-8d52-68f38ac25c8c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set b08bb95f-07cf-4bd3-8d52-68f38ac25c8c
linux16 /boot/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/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 147c4ceb7c4cc966
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 ###

=============================== sda3/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/sda3 during installation
UUID=b08bb95f-07cf-4bd3-8d52-68f38ac25c8c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=a66a9014-0e22-47f0-979e-a065ff0e53a8 none swap sw 0 0

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


26.8GB: boot/grub/core.img
22.6GB: boot/grub/grub.cfg
21.4GB: boot/initrd.img-2.6.35-22-generic
26.9GB: boot/vmlinuz-2.6.35-22-generic
21.4GB: initrd.img
26.9GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 21 81 80 02 3b 46 4c 0f 84 a2 60 01 80 89 46 4c |!...;FL...`...FL|
00000010 c7 45 fc 01 41 1b aa 93 eb 00 8c e2 00 50 d5 01 |.E..A........P..|
00000020 85 e0 00 48 8b 46 4c d1 76 54 79 10 04 89 10 46 |...H.FL.vTy....F|
00000030 64 e9 7c 30 01 f6 46 04 60 40 0f 84 46 69 40 20 |d.|0..F.`@..Fi@ |
00000040 00 80 e0 00 7f 0f b6 80 10 1c c3 7d 00 6a 02 59 |...........}.j.Y|
00000050 2b c8 ff 34 8e 00 c1 e0 02 8b ce 2b c8 51 81 40 |+..4.......+.Q.@|
00000060 1b 9b 5f 03 00 e9 1d 80 02 03 6f a7 66 a7 55 f8 |.._.......o.f.U.|
00000070 52 6a 01 ff 94 50 24 01 95 ca 80 a4 eb 55 cf 02 |Rj...P$......U..|
00000080 d5 c9 02 57 b4 02 c6 b1 02 29 bf 02 b9 02 68 ff |...W.....)....h.|
00000090 50 28 61 05 ef a0 02 c1 14 e9 c1 70 00 48 48 0f |P(a........p.HH.|
000000a0 84 9f b0 0f 60 00 22 81 62 00 85 4a 7b 81 0c 68 |....`.".b..J{..h|
000000b0 a8 00 01 74 63 a8 02 74 5f 8b 00 46 44 2b 46 3c |...tc..t_..FD+F<|
000000c0 2b 45 ec 04 89 43 00 8e 60 39 45 e4 7e 10 03 8b |+E...C..`9E.~...|
000000d0 45 e4 e0 86 f6 46 68 00 40 75 1e 8b 46 40 2b 46 |E....Fh.@u..F@+F|
000000e0 00 38 2b 45 e8 89 43 08 2b 20 46 5c 39 45 e0 f1 |.8+E..C.+ F\9E..|
000000f0 01 e0 89 28 03 e9 01 81 04 45 90 00 8b 4e 48 5c |...(.....E...NH\|
00000100 03 c8 76 02 3b c1 80 1d c1 01 d0 02 e9 e0 7a f5 |..v.;.........z.|
00000110 ff be 10 20 1b c3 7d 8b fb 20 a8 a5 e9 46 d0 f0 |... ..}.. ...F..|
00000120 00 40 05 01 74 ea 81 a5 53 81 00 13 75 9e fb ff |.@..t...S...u...|
00000130 e9 b9 63 01 48 02 74 d3 65 01 15 57 50 65 a2 4d |..c.H.t.e..WPe.M|
00000140 60 01 83 d6 16 50 16 2b f0 20 80 4e 00 04 f7 d8 |`....P.+. .N....|
00000150 01 03 f7 d9 01 c0 4b 04 eb 5e 8b 06 60 ab 80 17 |......K..^..`...|
00000160 14 ff 50 a0 59 f0 20 07 8b 45 f4 20 89 7b 04 89 |..P.Y. ..E. .{..|
00000170 3b b0 0c 8b 56 00 4c 8b 7e 50 f7 da 01 53 00 08 |;...V.L.~P...S..|
00000180 f7 df 01 7b 0c 89 13 6b 90 01 90 68 a8 b0 1c 47 |...{...k...h...G|
00000190 af 05 a4 05 f7 00 d9 03 d0 89 13 8d 14 39 00 89 |.............9..|
000001a0 53 04 01 43 08 01 4b 08 0c e9 1a c0 02 8b 4f 5c |S..C..K.......O\|
000001b0 01 30 0a e9 9b 77 90 13 20 60 10 8b 00 4b 00 fe |.0...w.. `...K..|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 20 0e 00 00 00 |........... ....|
000001d0 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

sudo fdisk -l resulted in this:

Identifying MBRs...
Computing Partition Table of /dev/sda...
Searching sda1 for information...
Searching sda2 for information...
Searching sda5 for information...
Searching sda3 for information...
Finished. The results are in the file RESULTS.txt located in /home/hyoki/Desktop
hyoki@hyoki-LifeBook-P7120:~$ sudo fdisk -l

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 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: 0x524f6b51

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2434 19543495+ 7 HPFS/NTFS
/dev/sda2 3591 3648 462849 5 Extended
/dev/sda3 2434 3591 9293824 83 Linux
/dev/sda5 3591 3648 462848 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/mmcblk0: 31 MB, 31129600 bytes
4 heads, 32 sectors/track, 475 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 475 30374+ 4 FAT16 <32M
I can still access all the files through the file explorer, however, would hate to re-install the os again (even if it is horrendous). All the help is greatly appreciated. thank you very much in advance.

Rubi1200
November 5th, 2010, 09:43 AM
Hi and welcome to the forums!

You will need to do some work now but the situation is not hopeless :)

Somehow, GRUB was installed to the Windows partition on sda1:

Grub 2 is installed in the boot sector of sda1To rectify this you need to restore the Windows bootloader and then afterwards reinstall GRUB to allow a dual-boot system.

Restore Windows:
http://ubuntuforums.org/showthread.php?t=1014708

Reinstall GRUB:
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

If you have any questions or are unsure about anything, please ask first before proceeding.

maxmus
November 5th, 2010, 09:44 AM
Unstalled ubuntu, and fixboot & fixmbr under windows recovery console.
Re-installed 10.10, with option "install alongside existing os".

Enters windows spash screen now, but will reset.... grrr...............

Not sure exactly what is the problem.. much to learn lol.

maxmus
November 5th, 2010, 09:48 AM
Hi and welcome to the forums!

You will need to do some work now but the situation is not hopeless :)

Somehow, GRUB was installed to the Windows partition on sda1:
To rectify this you need to restore the Windows bootloader and then afterwards reinstall GRUB to allow a dual-boot system.

Restore Windows:
http://ubuntuforums.org/showthread.php?t=1014708

Reinstall GRUB:
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

If you have any questions or are unsure about anything, please ask first before proceeding.

Great! thank you. I did whole bunch of uninstalling & trial and error & reading hindsight lol. My computer JUST booted into xp, its acting a bit random. I assume my xp installation is a bit fragmented.

Now let me check if it will boot into 10.10 and back to xp......

maxmus
November 5th, 2010, 10:15 AM
Seems that did the trick. XP has booted reliably couple times now. What a pita.

Ubuntu is awesome.... really happy with it so far.

Rubi1200
November 5th, 2010, 11:58 AM
Glad you got it sorted out :)

Enjoy!