Some problems encountered during upgrade of Ubuntu12.04

Source: Internet
Author: User
After upgrading Ubuntu11.10 to 12.04, the system reports the "nopartitionfound" error when starting the system. After Entering Grub, enter the "ls" command and report the "nopartitionfound" error ". It can be seen that Grub has crashed. So I downloaded UNetbootin and used it to create an Ubuntu USB flash drive in Win7. After the preparation, it is found that the boot will not be automatically started. You need to press F12 on the Thinkpad welcome page after the boot, and then select the USB flash drive to start.

After upgrading Ubuntu 11.10 to 12.04, the system reports an error"No partition found", Enter the Grub, enter the" ls "command, and the error" no partition found "is also reported ". It can be seen that Grub has crashed.

So I downloaded UNetbootin and used it to create an Ubuntu boot USB flash drive in Windows 7. After the preparation, it is found that the boot will not be automatically started. You need to press F12 on the Thinkpad welcome page after the boot, and then select the U disk to start. Then select the USB flash drive to start Ubuntu. After Entering Ubuntu, install Grub 2 to the hard disk according to How to Fix Grub 2.

To fix GRUB 2, you need an Ubuntu live CD from which you need to boot.Once you boot to the live cd, open a terminal an and type these commands:
A) Firstly, you need to find out on which partition your Linux system is installed:
sudo fdisk -l
(In my case, it's "sda1 ")

B) Now, we must mount this partition:
sudo mount /dev/sda1 /mnt
Where "sda1" is the partition where you installed Ubuntu (or any other Linux distro). It cocould be "sda5", "sda6", etc. for you.

C) Install grub to the partition you 've mounted:
sudo grub-install --root-directory=/mnt/ /dev/sda


Important:Please notice that it's "/dev/sda", not "/dev/sda1". "sda" is the hard disk on which your Linux distribution is installed!

D) Restart your computer. As previous Grub 2 entries are removed, run the following command to restore them:
sudo update-grub

I used to install Ubuntu with USB Stick. During the installation process, the option is to select the installation location of the boot program. The default value is/dev/sdb, that is, the USB flash disk. Grub 2 was installed on the USB flash drive because I did not pay attention to it at the time. Although it was re-installed on the hard drive after the upgrade, it seems that it is still abnormal after the upgrade.

After restarting the computer and entering Grub 2, enter the command (Grub 2 no longer supports the kernel command, you need to useLinuxSpecify the kernel ):

  1. Linux (hd0, X)/vmlinuz-3.2 ......
  2. Initrd (hd0, X)/initrd. img-3.2 ......
  3. Boot

Sadly, the system is still unable to access the GUI or shell halfway through startup. After multiple checks and tests, it is confirmed that the partition where/is located has crashed, and Ubuntu cannot identify it at all.

Although I don't want to, I have no choice but to reinstall Ubuntu 12.04. Unfortunately, my computer has not yet backed up files and movies ......

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.