Page 1 of 9 123 ... LastLast
Results 1 to 10 of 88

Thread: Boot problem....

  1. #1
    Join Date
    May 2010
    Location
    Northern California
    Beans
    41
    Distro
    Ubuntu 9.10 Karmic Koala

    Boot problem....

    Apologies if this it the wrong place, but I am trying all options (even another forum under WinXP/MBR). My first try at Linux. I had a working laptop, IBMT-40 and tried to install Ubuntu from the CD (not via WUBI). Nothing will boot now, and I suspect the MBR was trashed as all partitions (1 NTFS and an extended with 2 Ubuntu and 1 swap) appear to be intact using Gpart and Ultimate Boot App.. I cannot seem to recover XP with any utilities I have tried so far. Ubuntu runs fine from the CD. If I were to complete another new installation of Ubuntu (which does not recognize that I have (had?) another OS), might I be able to fix my XP problem from Ubuntu 'terminal', or must I start over from 'format C:'? I will try to provide any detailed information needed if there are any ideas. Thanks for the time. S.

  2. #2
    Join Date
    Feb 2010
    Beans
    248

    Re: Boot problem....

    Please run the bootinfoscript from the livecd:

    http://bootinfoscript.sourceforge.net/

    post results here by pasting the text in between code tags -- i.e. click on the # sign in the reply box and paste in between the brakets ] [

  3. #3
    Join Date
    Dec 2009
    Location
    Vancouver,Washington
    Beans
    109

    Re: Boot problem....

    Ubuntu should see xp and ask if you wish to install side by side
    by doing so it will automatically add xp to Grub and allow you to bootb both
    i7 3770 - 8Gb - 750ti 2Gb

  4. #4
    Join Date
    May 2010
    Location
    Northern California
    Beans
    41
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Boot problem....

    Quote Originally Posted by frantid View Post
    Please run the bootinfoscript from the livecd:

    http://bootinfoscript.sourceforge.net/

    post results here by pasting the text in between code tags -- i.e. click on the # sign in the reply box and paste in between the brakets ] [
    Thanks for the reply. I *think* that this is what you wanted. I am working in a language I don't know/understand (UNIX), with apps I didn't have, across platforms between machines. If anything else is needed, i will try to get it. Thanks also for the details on how to try to get it here, as I am very new to this. S

    Boot Info Script 0.55 dated February 15th, 2010

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

    => Syslinux is installed in the MBR of /dev/sda
    => Syslinux is installed in the MBR of /dev/sdb

    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: Extended Partition
    Boot sector type: -
    Boot sector info:

    sda5: __________________________________________________ _______________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

    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 9.10
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

    sda8: __________________________________________________ _______________________

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

    sdb1: __________________________________________________ _______________________

    File system: vfat
    Boot sector type: Fat32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

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

    Drive: sda ___________________ __________________________________________________ ___

    Disk /dev/sda: 40.0 GB, 40007761920 bytes
    255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xcccdcccd

    Partition Boot Start End Size Id System

    /dev/sda1 * 63 29,222,234 29,222,172 7 HPFS/NTFS
    /dev/sda2 40,997,880 78,140,159 37,142,280 5 Extended
    /dev/sda5 40,997,943 51,391,934 10,393,992 7 HPFS/NTFS
    /dev/sda6 51,391,998 62,476,784 11,084,787 83 Linux
    /dev/sda7 62,476,848 77,369,039 14,892,192 83 Linux
    /dev/sda8 77,369,103 78,140,159 771,057 82 Linux swap / Solaris


    Drive: sdb ___________________ __________________________________________________ ___

    Disk /dev/sdb: 4022 MB, 4022337024 bytes
    255 heads, 63 sectors/track, 489 cylinders, total 7856127 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x00000000

    Partition Boot Start End Size Id System

    /dev/sdb1 * 38 7,839,719 7,839,682 b W95 FAT32


    blkid -c /dev/null: __________________________________________________ __________

    Device UUID TYPE LABEL

    /dev/loop0 squashfs
    /dev/sda1 B66C58A36C586063 ntfs
    /dev/sda5 3A1DB15D26A575B0 ntfs NTFS
    /dev/sda6 0cf5a1f2-6705-464d-8dfc-0a11e861f9ca ext3 UBUNTU_ex3
    /dev/sda7 496ca826-1cdc-4ed9-ab6e-1dba6074112e ext4
    /dev/sda8 107dd150-c14a-4340-ad33-9986d7e11dcc swap
    /dev/sdb1 8811-5589 vfat UBUNTU_2

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

    Device Mount_Point Type Options

    aufs / aufs (rw)
    /dev/sr0 /cdrom iso9660 (rw)
    /dev/loop0 /rofs squashfs (rw)
    /dev/sdb1 /media/UBUNTU_2 vfat (rw,nosuid,nodev,uhelper=devkit,uid=999,gid=999,sh ortname=mixed,dmask=0077,utf8=1,flush)


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

    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Professional" /fastdetect /NoExecute=OptIn

    =========================== 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 /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,7)
    search --no-floppy --fs-uuid --set 496ca826-1cdc-4ed9-ab6e-1dba6074112e
    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,7)
    search --no-floppy --fs-uuid --set 496ca826-1cdc-4ed9-ab6e-1dba6074112e
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=496ca826-1cdc-4ed9-ab6e-1dba6074112e 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,7)
    search --no-floppy --fs-uuid --set 496ca826-1cdc-4ed9-ab6e-1dba6074112e
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=496ca826-1cdc-4ed9-ab6e-1dba6074112e 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 "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set b66c58a36c586063
    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 defaults 0 0
    # / was on /dev/sda7 during installation
    UUID=496ca826-1cdc-4ed9-ab6e-1dba6074112e / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda8 during installation
    UUID=107dd150-c14a-4340-ad33-9986d7e11dcc none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


    34.5GB: boot/grub/core.img
    34.5GB: boot/grub/grub.cfg
    32.8GB: boot/initrd.img-2.6.31-14-generic
    34.5GB: boot/vmlinuz-2.6.31-14-generic
    32.8GB: initrd.img
    34.5GB: vmlinuz

  5. #5
    Join Date
    Feb 2010
    Beans
    248

    Re: Boot problem....

    we'll need to mount the drive.


    Code:
    sudo mount /dev/sda7 /mnt
    then recopy grub from the cd.

    Code:
    sudo grub-install --root-directory=/mnt/ /dev/sda
    we are working through the repair steps here, for more info:
    https://help.ubuntu.com/community/Gr...0from%20LiveCD

    then reboot, hopefully you will see grub.
    Last edited by frantid; May 9th, 2010 at 12:15 AM.

  6. #6
    Join Date
    May 2010
    Location
    Northern California
    Beans
    41
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Boot problem....

    Quote Originally Posted by frantid View Post
    we'll need to mount the drive.


    Code:
    sudo mount /dev/sda7 /mnt
    then recopy grub from the cd.

    Code:
    sudo grub-install --root-directory=/mnt/ /dev/sda
    we are working through the repair steps here, for more info:
    https://help.ubuntu.com/community/Gr...0from%20LiveCD

    then reboot, hopefully you will see grub.
    WOW, thanks! I now get the GRUB menu. However, XP says "(ON sda1)" and fails to start, and when I select the "Ubuntu. Linux 2.6.31-14-generic" (first line of menu) I get "error no such device" and a long string of info. Below is the Terminal screen of my input to the machine and the result. I appreciate all your help. S.

    ubuntu@ubuntu:~$ sudo mount /dev/sda7 /mnt
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda
    Installation finished. No error reported.
    This is the contents of the device map /mnt/boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    Code:
    
    
    (hd0) /dev/sda

  7. #7
    Join Date
    Feb 2010
    Beans
    248

    Re: Boot problem....

    ok let's try something.

    boot into grub, when the menu comes up don't let grub try to boot anything. just push the up arrow.

    then highlight the xp menu and press e

    it should show you the config for xp. Use the arrow keys and backspace -- make it look like this:


    Code:
    insmod ntfs
    set root=(hd0,1)
    chainloader +1
    then push Ctrl-x to see what it does. do you have a second computer to post back or do you just have the one we're working on?

  8. #8
    Join Date
    May 2010
    Location
    Northern California
    Beans
    41
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Boot problem....

    Quote Originally Posted by frantid View Post
    ok let's try something.

    boot into grub, when the menu comes up don't let grub try to boot anything. just push the up arrow.

    then highlight the xp menu and press e

    it should show you the config for xp. Use the arrow keys and backspace -- make it look like this:


    Code:
    insmod ntfs
    set root=(hd0,1)
    chainloader +1
    then push Ctrl-x to see what it does. do you have a second computer to post back or do you just have the one we're working on?
    I followed the procedure and edited out two lines ("search --no floppy --fs uuid --set [string of characters]" & "drivemao -s (hd0) ${root}" then the unchanged 'chainloader' line, but ended up with the same results. I do have another Windows computer as the laptop is still non-functional. The major delay is when I have to boot the CD to run Ubuntu. From the CD, loading takes a while. Appreciate the help. S.

  9. #9
    Join Date
    Feb 2010
    Beans
    248

    Re: Boot problem....

    No problem.

    Let's try booting the ubuntu entry, same deal as the xp one:


    Code:
    insmod ext2
        set root=(hd0,7)
        search --no-floppy --fs-uuid --set  496ca826-1cdc-4ed9-ab6e-1dba6074112e
        linux    /boot/vmlinuz-2.6.31-14-generic  root=UUID=496ca826-1cdc-4ed9-ab6e-1dba6074112e ro
        initrd    /boot/initrd.img-2.6.31-14-generic
    Edit the blank space before the start of the lines doesn't matter.
    Last edited by frantid; May 9th, 2010 at 02:28 AM.

  10. #10
    Join Date
    May 2010
    Location
    Northern California
    Beans
    41
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Boot problem....

    Quote Originally Posted by frantid View Post
    No problem.

    Let's try booting the ubuntu entry, same deal as the xp one:


    Code:
    insmod ext2
        set root=(hd0,7)
        search --no-floppy --fs-uuid --set  496ca826-1cdc-4ed9-ab6e-1dba6074112e
        linux    /boot/vmlinuz-2.6.31-14-generic  root=UUID=496ca826-1cdc-4ed9-ab6e-1dba6074112e ro
        initrd    /boot/initrd.img-2.6.31-14-generic
    Edit the blank space before the start of the lines doesn't matter.

    Done, frantid. Gives me a message "error: no such device: 496ca826-1cdc-4ed9-ab6e-1dba6074112e ro" S.

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •