Linux Update kernel error, Update-initramfs:failedb workaround

Source: Internet
Author: User

Environment:

Win7,ubuntu dual System.

The problem arises with the background and solution:

The first two days found that the/home directory is full, and then in Ubuntu under the GParted tool to the system re-partition, after partition results/boot and Win7 C disk mounted to the same partition/sda1, so start the times wrong. As a result, the system was re-partitioned and 2G was used as/boot.

However, when running Apt-get, the error is as follows:

Did not find the file/boot/config-*, the solution is to copy the original/boot file and copy it over.


Then, when running Apt-get install-f, a new error was reported:


Setting Initramfs-tools (0.103ubuntu1.1) ...
Update-initramfs:deferring update (trigger activated)
Processing triggers for initramfs-tools ...
Update-initramfs:generating/boot/initrd.img-3.11.0-12-generic
E:/usr/share/initramfs-tools/hooks/watershed failed with return 1.
Update-initramfs:failed for/boot/initrd.img-3.11.0-12-generic with 1.
Dpkg:error processing Initramfs-tools (--configure):
Child process installed Post-Installation script returned error number 1
An error occurred while processing:
Initramfs-tools
E:sub-process/usr/bin/dpkg returned an error code (1)


On-line search for half a day, the following two solutions:

1,/boot is full, the old kernel needs to be deleted.

Run uname-a to view the currently running kernel version.

Run dpkg--get-selections|grep Linux to view all installed cores and uninstall the install

sudo apt-get remove linux-image-2.6.24-16-generic

2, run df-h found the boot that was hung is not full. Read the above error carefully, found that the main problem is watershed, may be lost or no way to read. Perform:

sudo chmod-x/usr/share/initramfs-tools/hooks/watershed

Then everything OK.

Linux Update kernel error, Update-initramfs:failedb workaround

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.