Results 1 to 9 of 9

Thread: GRUB problem after upgrading to 10.04

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Beans
    64

    Re: GRUB problem after upgrading to 10.04

    After changing the flag I did this:
    Code:
    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    ubuntu@ubuntu:~$ sudo su
    root@ubuntu:/home/ubuntu# fdisk -l
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 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: 0xff43ff43
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       12749   102406311    7  HPFS/NTFS
    /dev/sda2   *       12750       55241   341312659   83  Linux
    /dev/sda3           60050       60801     6040440   82  Linux swap / Solaris
    /dev/sda4           55241       60049    38623233    5  Extended
    /dev/sda5           55241       59846    36992000   83  Linux
    /dev/sda6           59846       60049     1630208   82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 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: 0x3ce53ce4
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       24577   197414721   83  Linux
    /dev/sdb2           24578       38913   115153889+   f  W95 Ext'd (LBA)
    /dev/sdb5           24578       38163   109129513+   7  HPFS/NTFS
    /dev/sdb6           38164       38913     6024343+  82  Linux swap / Solaris
    root@ubuntu:/home/ubuntu# mount /dev/sda2 mnt
    mount: mount point mnt does not exist
    root@ubuntu:/home/ubuntu# mount /dev/sda2 /mnt
    root@ubuntu:/home/ubuntu# mount --bind /dev /mnt/dev
    root@ubuntu:/home/ubuntu# chroot /mnt/dev
    chroot: cannot run command `/bin/bash': No such file or directory
    root@ubuntu:/home/ubuntu# chroot /mnt
    root@ubuntu:/# update-grub
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ...
    
    Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
    Searching for splash image ... none found, skipping ...
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    Updating /boot/grub/menu.lst ... done
    
    root@ubuntu:/# grub-install /dev/sda
    Searching for GRUB installation directory ... found: /boot/grub
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    /proc/devices: fopen failed: No such file or directory
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents of the device map /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'.
    
    (hd0)    /dev/sda
    (hd1)    /dev/sdb
    root@ubuntu:/# exit
    root@ubuntu:/home/ubuntu# umount /mnt/dev
    root@ubuntu:/home/ubuntu# umount /mnt
    and then I did this:
    Code:
    neoandersen@neoandersen-desktop:~$ sudo update-grub
    [sudo] password for neoandersen:
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    neoandersen@neoandersen-desktop:~$ sudo su
    root@neoandersen-desktop:/home/neoandersen# update-grub
    Searching for GRUB installation directory ... found: /boot/grub
    Searching for default file ... found: /boot/grub/default
    Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
    Searching for splash image ... none found, skipping ...
    Found kernel: /boot/vmlinuz-2.6.32-22-generic
    Found kernel: /boot/vmlinuz-2.6.31-22-generic
    Found GRUB 2: /boot/grub/core.img
    Found kernel: /boot/memtest86+.bin
    Updating /boot/grub/menu.lst ... done
    
    root@neoandersen-desktop:/home/neoandersen# grub-install /dev/sda
    Searching for GRUB installation directory ... found: /boot/grub
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents of the device map /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'.
    
    (hd0)    /dev/sda
    (hd1)    /dev/sdb
    root@neoandersen-desktop:/home/neoandersen#
    And as it doesn't worked I went to synaptic and synaptic and installed Grub-pc... and after all that xp doesn't start...

    I am thinking in recover xp with xp installation cd... and then reinstall grub again... is that possible?

  2. #2
    Join Date
    Jun 2008
    Location
    Vancouver Canada
    Beans
    3,148
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: GRUB problem after upgrading to 10.04

    Good work NeoAndersen.

    That should work. I'm crossing my fingers.
    I learn something ubuntu everyday.
    dell precision T7500 1Tb hdd x 2
    2.67 Ghz intel xeon X5550 cpu
    nvidia quadro fx 4800-1.5 Gb video card

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
  •