Diff for "forum/hardware/LenovoB570"


Differences between revisions 8 and 9
Revision 8 as of 2012-05-21 05:19:37
Size: 4521
Editor: ip68-8-170-187
Comment:
Revision 9 as of 2012-05-21 20:23:00
Size: 4853
Editor: ip68-8-170-187
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This page exists to address a problem present in Ubuntu when attempting to install to a Lenovo B570. It exists in some other distributions, and it is likely a quirk of the B570 hardware -- although it could be a bug in the kernel or installation process. This page exists to address a problem ([[https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/908109|bug #908109]]) present in Ubuntu when attempting to install to a Lenovo B570. It exists in some other distributions, and it is likely a quirk of the B570 hardware -- although it could be a bug in the kernel or installation process.
Line 5: Line 5:
''If there is a problem with this page, edit it, ask in the forums, or send me a message [[https://launchpad.net/~eode|here]] but '''don't''' post in the launchpad bug for support. The bug is for ''
 
Line 20: Line 22:
'''For users willing to perform some shenanigans to get a 64-bit system:''' Read on. '''For users willing to perform some shenanigans<<FootNote(Shenanigans, I say!)>> to get a 64-bit system:''' Read on.
Line 80: Line 82:

Footnotes:

Lenovo B570 Installation Problems and Repair

This page exists to address a problem (bug #908109) present in Ubuntu when attempting to install to a Lenovo B570. It exists in some other distributions, and it is likely a quirk of the B570 hardware -- although it could be a bug in the kernel or installation process.

If there is a problem with this page, edit it, ask in the forums, or send me a message here but don't post in the launchpad bug for support. The bug is for

There is a problem with installation when:

  • You're using the Lenovo B570
  • You're trying to install the 64-bit version
  • Your system uses MBR

This problem shows up as:

  • Installation completes, and asks you to reboot
  • the system doesn't boot, or boots back into Windows without prompting you to choose.

This problem is fixable, but it can cause a lot of headaches, particularly if you don't know what the problem is.

The fix, for advanced users: Boot from the install cd, chroot into the ubuntu partition of your hard disk, and install grub-pc. You will probably need to install it to the MBR as well, since Lenovo has a lot of partitions by default, and generally Ubuntu will install to sda6, which isn't directly bootable with a boot flag.

A workaround, for very non-technical users with 4 gigs of memory or less:: Use the 32-bit version of Ubuntu.

For users willing to perform some shenanigans1 to get a 64-bit system: Read on.

What is happening

There are two ways of dividing a disk into partitions (sections): MBR and GPT. There are two standards for initializing your system: BIOS and UEFI. BIOS only knows about MBR. UEFI knows about GPT and MBR.

The Lenovo B570 ships with a UEFI that can use MBR. At least some of them ship with disks partitioned using MBR. The basic problem appears to be that the installer gets confused about whether to use an MBR or GPT version of GRUB (the thing that gives you the option to boot into Ubuntu or Windows). It is unknown at this time whether this is a bug in Ubuntu or whether it is a bug in the Lenovo B570.

For most people, this means that it will boot straight to Windows after installing Ubuntu, without giving the user an option to start Ubuntu. For some, it leaves them with a system that doesn't boot.

Manual Repair

Follow these instructions for manual repair:

WARNING: If done wrong, or if something else is different between my system and yours, this may cause you to lose the data on your hard drive. Back up your hard drive, and make sure you know how to restore it as well. If you don't, get a more technically-inclined friend to do this for you, and do something nice for him/her in return.

  • Boot from CD/USB live image
  • Connect to the network
  • Find and mount the Ubuntu partition you installed to. To do so:
    • Launch "Files" from the icons on the left
    • Select the partition you installed Ubuntu to earlier from the "Devices" list on the left.
  • right-click on this partition in nautilus (it's in the list on the left), and click 'properties'
  • copy the name field, and when typing commands below, replace name_of_mount with that text. It will probably be something like "563451BD58A19D16"
  • Open a terminal
  • Execute the following (don't forget to change name_of_mount):
    MOUNTPOINT="/media/name_of_mount"
    if grep -q "Ubuntu 12.04" $MOUNTPOINT/etc/lsb-release; then
        mount | grep $MOUNTPOINT | awk '{print $1}'
    fi
    • This should respond with something like "/dev/sda6"
      • If it does not, then check over to ensure you've done the above steps correctly (specifically, make sure you've got the name_of_mount right)
      • This must start with /dev/sda

      • if it does not, this fix is not for you, and may break things further, so don't bother unless you know what you're doing.

      • If it does start with /dev/sda, the number on the end is the partition number, and you'll need it in a bit.
  • In the same terminal you used above, execute the following, one by one, and keep an eye out for errors. Lines that start with "#" are comments.
    cd $MOUNTPOINT
    sudo mount -o bind /proc proc
    sudo mount -o bind /sys sys
    sudo mount -o bind /dev dev
    sudo chroot ./
    
    apt-get update
    apt-get install -y grub-pc
    
    # You should only need to do this line if your partition number is 5 or higher.
    # leave off the partition number.
    grub-install /dev/sda
    
    exit
    sudo umount proc
    sudo umount sys
    sudo umount dev
    sudo sync
    sudo shutdown -r now
  • At this point, the system should reboot, and give you the choice between Ubuntu and Windows (or just Ubuntu, depending on your install).

Footnotes:

  1. Shenanigans, I say! (1)

forum/hardware/LenovoB570 (last edited 2017-10-09 17:36:03 by 106)