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