raj1reddy
June 16th, 2018, 02:34 PM
I am having windows and ubuntu installed. When ever new kernal update happens it takes nearly 12 hours to update grub. (given about my system below) . can any one help me to solve this problem.
Given below command to purge old image :
sudo apt-get purge linux-image-4.13.0-26* linux-image-4.13.0-31* linux-image-4.13.0-32* linux-image-4.13.0-36* linux-image-4.13.0-37* linux-image-4.13.0-38* linux-image-4.13.0-39*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-4.13.0-26-lowlatency' for glob 'linux-image-4.13.0-26*'
Note, selecting 'linux-image-4.13.0-26-generic' for glob 'linux-image-4.13.0-26*'
Note, selecting 'linux-image-4.13.0-31-lowlatency' for glob 'linux-image-4.13.0-31*'
Note, selecting 'linux-image-4.13.0-31-generic' for glob 'linux-image-4.13.0-31*'
Note, selecting 'linux-image-4.13.0-32-lowlatency' for glob 'linux-image-4.13.0-32*'
Note, selecting 'linux-image-4.13.0-32-generic' for glob 'linux-image-4.13.0-32*'
Note, selecting 'linux-image-4.13.0-36-lowlatency' for glob 'linux-image-4.13.0-36*'
Note, selecting 'linux-image-4.13.0-36-generic' for glob 'linux-image-4.13.0-36*'
Note, selecting 'linux-image-4.13.0-37-lowlatency' for glob 'linux-image-4.13.0-37*'
Note, selecting 'linux-image-4.13.0-37-generic' for glob 'linux-image-4.13.0-37*'
Note, selecting 'linux-image-4.13.0-38-lowlatency' for glob 'linux-image-4.13.0-38*'
Note, selecting 'linux-image-4.13.0-38-generic' for glob 'linux-image-4.13.0-38*'
Note, selecting 'linux-image-4.13.0-39-generic' for glob 'linux-image-4.13.0-39*'
Note, selecting 'linux-image-4.13.0-39-lowlatency' for glob 'linux-image-4.13.0-39*'
Package 'linux-image-4.13.0-26-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-31-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-32-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-36-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-37-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-38-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-39-lowlatency' is not installed, so not removed
The following packages were automatically installed and are no longer required:
bnd findbugs gradle-4.4.1 java-wrappers libbindex-java libcommons-collections3-java libcommons-dbcp-java libcommons-pool-java libecj-java libfelix-osgi-obr-java
libgeronimo-jta-1.1-spec-java libgoogle-gson-java libgradle-core-java libgradle-plugins-java libjarjar-java libjatl-java libjcifs-java libjcip-annotations-java
libjetty-extra libjetty-extra-java libjformatstring-java libjna-java libjna-jni libkryo-java libllvm4.0 liblogback-java libmail-java libminlog-java
libnative-platform-java libnative-platform-jni libnekohtml-java libpolyglot-maven-java libreflectasm-java librhino-java libservlet3.0-java libtomcat7-java
libtomcat8-java linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-headers-4.10.0-42 linux-headers-4.10.0-42-generic linux-headers-4.13.0-26
linux-headers-4.13.0-26-generic linux-headers-4.13.0-31 linux-headers-4.13.0-31-generic linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic linux-headers-4.13.0-38
linux-headers-4.13.0-38-generic linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic linux-headers-4.13.0-41 linux-headers-4.13.0-41-generic
linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.13.0-41-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic
linux-image-extra-4.13.0-41-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
linux-image-4.13.0-26-generic* linux-image-4.13.0-31-generic* linux-image-4.13.0-32-generic* linux-image-4.13.0-36-generic* linux-image-4.13.0-37-generic*
linux-image-4.13.0-38-generic* linux-image-4.13.0-39-generic* linux-image-extra-4.13.0-26-generic* linux-image-extra-4.13.0-31-generic*
linux-image-extra-4.13.0-32-generic* linux-image-extra-4.13.0-36-generic* linux-image-extra-4.13.0-37-generic* linux-image-extra-4.13.0-38-generic*
linux-image-extra-4.13.0-39-generic*
0 to upgrade, 0 to newly install, 14 to remove and 14 not to upgrade.
After this operation, 1,667 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 652079 files and directories currently installed.)
Removing linux-image-extra-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.10.0-42-generic
Found initrd image: /boot/initrd.img-4.10.0-42-generic
Found linux image: /boot/vmlinuz-4.10.0-40-generic
Found initrd image: /boot/initrd.img-4.10.0-40-generic
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found Windows 8 (loader) on /dev/sda1
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
done
Purging configuration files for linux-image-extra-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
Removing linux-image-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
dkms: removing: bcmwl 6.30.223.271+bdcom (4.13.0-26-generic) (x86_64)
-------- Uninstall Beginning --------
Module: bcmwl
Version: 6.30.223.271+bdcom
Kernel: 4.13.0-26-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
wl.ko:
- Uninstallation
- Deleting from: /lib/modules/4.13.0-26-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-26-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
...
--
================================================== =======
`sudo parted -l`
Model: ATA APPLE HDD ST500L (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 368MB 367MB primary ntfs boot
2 368MB 231GB 230GB primary ntfs
3 231GB 234GB 3274MB primary ntfs
4 234GB 500GB 266GB extended
7 234GB 328GB 93.8GB logical ext4
5 328GB 492GB 164GB logical ext4
6 492GB 500GB 8577MB logical linux-swap(v1)
===============================================
`sudo fdisk -lu`
[sudo] password for praveen:
Disk /dev/loop0: 162.9 MiB, 170766336 bytes, 333528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 457.6 MiB, 479789056 bytes, 937088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 482.8 MiB, 506269696 bytes, 988808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop3: 86.6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop4: 86.6 MiB, 90812416 bytes, 177368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop5: 162.1 MiB, 169943040 bytes, 331920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop6: 483.2 MiB, 506716160 bytes, 989680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop7: 86.6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x51750080
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 718847 716800 350M 7 HPFS/NTFS/exFAT
/dev/sda2 718848 450559999 449841152 214.5G 7 HPFS/NTFS/exFAT
/dev/sda3 450560000 456953855 6393856 3.1G 7 HPFS/NTFS/exFAT
/dev/sda4 456955902 976771071 519815170 247.9G 5 Extended
/dev/sda5 640178176 960016383 319838208 152.5G 83 Linux
/dev/sda6 960018432 976771071 16752640 8G 82 Linux swap / Solaris
/dev/sda7 456955904 640178175 183222272 87.4G 83 Linux
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.
================================================== ==========
sudo cfdisk
Disk: /dev/sda
Size: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Label: dos, identifier: 0x51750080
Device Boot Start End Sectors Size Id Type
>> /dev/sda1 * 2048 718847 716800 350M 7 HPFS/NTFS/exFAT
/dev/sda2 718848 450559999 449841152 214.5G 7 HPFS/NTFS/exFAT
/dev/sda3 450560000 456953855 6393856 3.1G 7 HPFS/NTFS/exFAT
/dev/sda4 456955902 976771071 519815170 247.9G 5 Extended
├─/dev/sda5 640178176 960016383 319838208 152.5G 83 Linux
├─/dev/sda6 960018432 976771071 16752640 8G 82 Linux swap / Solaris
└─/dev/sda7 456955904 640178175 183222272 87.4G 83 Linux
Free space 976771072 976773167 2096 1M
┌───────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────┐
│ Partition type: HPFS/NTFS/exFAT (7) │
│ Attributes: 80 │
│ Filesystem: ntfs │
│Filesystem label: System Reserved │
│ Filesystem UUID: ECB672B8B67282BE │
└───────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────┘
================================================== =
`sudo lshw -C disk`
*-disk
description: ATA Disk
product: APPLE HDD ST500L
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 0007
serial: S2XMJ9AD523955
size: 465GiB (500GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=51750080
*-cdrom
description: DVD-RAM writer
product: DVD RAM UJ897
vendor: hp
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: 1.00
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=open
Given below command to purge old image :
sudo apt-get purge linux-image-4.13.0-26* linux-image-4.13.0-31* linux-image-4.13.0-32* linux-image-4.13.0-36* linux-image-4.13.0-37* linux-image-4.13.0-38* linux-image-4.13.0-39*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-4.13.0-26-lowlatency' for glob 'linux-image-4.13.0-26*'
Note, selecting 'linux-image-4.13.0-26-generic' for glob 'linux-image-4.13.0-26*'
Note, selecting 'linux-image-4.13.0-31-lowlatency' for glob 'linux-image-4.13.0-31*'
Note, selecting 'linux-image-4.13.0-31-generic' for glob 'linux-image-4.13.0-31*'
Note, selecting 'linux-image-4.13.0-32-lowlatency' for glob 'linux-image-4.13.0-32*'
Note, selecting 'linux-image-4.13.0-32-generic' for glob 'linux-image-4.13.0-32*'
Note, selecting 'linux-image-4.13.0-36-lowlatency' for glob 'linux-image-4.13.0-36*'
Note, selecting 'linux-image-4.13.0-36-generic' for glob 'linux-image-4.13.0-36*'
Note, selecting 'linux-image-4.13.0-37-lowlatency' for glob 'linux-image-4.13.0-37*'
Note, selecting 'linux-image-4.13.0-37-generic' for glob 'linux-image-4.13.0-37*'
Note, selecting 'linux-image-4.13.0-38-lowlatency' for glob 'linux-image-4.13.0-38*'
Note, selecting 'linux-image-4.13.0-38-generic' for glob 'linux-image-4.13.0-38*'
Note, selecting 'linux-image-4.13.0-39-generic' for glob 'linux-image-4.13.0-39*'
Note, selecting 'linux-image-4.13.0-39-lowlatency' for glob 'linux-image-4.13.0-39*'
Package 'linux-image-4.13.0-26-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-31-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-32-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-36-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-37-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-38-lowlatency' is not installed, so not removed
Package 'linux-image-4.13.0-39-lowlatency' is not installed, so not removed
The following packages were automatically installed and are no longer required:
bnd findbugs gradle-4.4.1 java-wrappers libbindex-java libcommons-collections3-java libcommons-dbcp-java libcommons-pool-java libecj-java libfelix-osgi-obr-java
libgeronimo-jta-1.1-spec-java libgoogle-gson-java libgradle-core-java libgradle-plugins-java libjarjar-java libjatl-java libjcifs-java libjcip-annotations-java
libjetty-extra libjetty-extra-java libjformatstring-java libjna-java libjna-jni libkryo-java libllvm4.0 liblogback-java libmail-java libminlog-java
libnative-platform-java libnative-platform-jni libnekohtml-java libpolyglot-maven-java libreflectasm-java librhino-java libservlet3.0-java libtomcat7-java
libtomcat8-java linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-headers-4.10.0-42 linux-headers-4.10.0-42-generic linux-headers-4.13.0-26
linux-headers-4.13.0-26-generic linux-headers-4.13.0-31 linux-headers-4.13.0-31-generic linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic linux-headers-4.13.0-38
linux-headers-4.13.0-38-generic linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic linux-headers-4.13.0-41 linux-headers-4.13.0-41-generic
linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.13.0-41-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic
linux-image-extra-4.13.0-41-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
linux-image-4.13.0-26-generic* linux-image-4.13.0-31-generic* linux-image-4.13.0-32-generic* linux-image-4.13.0-36-generic* linux-image-4.13.0-37-generic*
linux-image-4.13.0-38-generic* linux-image-4.13.0-39-generic* linux-image-extra-4.13.0-26-generic* linux-image-extra-4.13.0-31-generic*
linux-image-extra-4.13.0-32-generic* linux-image-extra-4.13.0-36-generic* linux-image-extra-4.13.0-37-generic* linux-image-extra-4.13.0-38-generic*
linux-image-extra-4.13.0-39-generic*
0 to upgrade, 0 to newly install, 14 to remove and 14 not to upgrade.
After this operation, 1,667 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 652079 files and directories currently installed.)
Removing linux-image-extra-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Found linux image: /boot/vmlinuz-4.10.0-42-generic
Found initrd image: /boot/initrd.img-4.10.0-42-generic
Found linux image: /boot/vmlinuz-4.10.0-40-generic
Found initrd image: /boot/initrd.img-4.10.0-40-generic
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Found Windows 8 (loader) on /dev/sda1
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
done
Purging configuration files for linux-image-extra-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
Removing linux-image-4.13.0-26-generic (4.13.0-26.29~16.04.2) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
dkms: removing: bcmwl 6.30.223.271+bdcom (4.13.0-26-generic) (x86_64)
-------- Uninstall Beginning --------
Module: bcmwl
Version: 6.30.223.271+bdcom
Kernel: 4.13.0-26-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
wl.ko:
- Uninstallation
- Deleting from: /lib/modules/4.13.0-26-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
update-initramfs: Deleting /boot/initrd.img-4.13.0-26-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-26-generic /boot/vmlinuz-4.13.0-26-generic
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
...
--
================================================== =======
`sudo parted -l`
Model: ATA APPLE HDD ST500L (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 368MB 367MB primary ntfs boot
2 368MB 231GB 230GB primary ntfs
3 231GB 234GB 3274MB primary ntfs
4 234GB 500GB 266GB extended
7 234GB 328GB 93.8GB logical ext4
5 328GB 492GB 164GB logical ext4
6 492GB 500GB 8577MB logical linux-swap(v1)
===============================================
`sudo fdisk -lu`
[sudo] password for praveen:
Disk /dev/loop0: 162.9 MiB, 170766336 bytes, 333528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 457.6 MiB, 479789056 bytes, 937088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 482.8 MiB, 506269696 bytes, 988808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop3: 86.6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop4: 86.6 MiB, 90812416 bytes, 177368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop5: 162.1 MiB, 169943040 bytes, 331920 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop6: 483.2 MiB, 506716160 bytes, 989680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop7: 86.6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x51750080
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 718847 716800 350M 7 HPFS/NTFS/exFAT
/dev/sda2 718848 450559999 449841152 214.5G 7 HPFS/NTFS/exFAT
/dev/sda3 450560000 456953855 6393856 3.1G 7 HPFS/NTFS/exFAT
/dev/sda4 456955902 976771071 519815170 247.9G 5 Extended
/dev/sda5 640178176 960016383 319838208 152.5G 83 Linux
/dev/sda6 960018432 976771071 16752640 8G 82 Linux swap / Solaris
/dev/sda7 456955904 640178175 183222272 87.4G 83 Linux
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.
================================================== ==========
sudo cfdisk
Disk: /dev/sda
Size: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Label: dos, identifier: 0x51750080
Device Boot Start End Sectors Size Id Type
>> /dev/sda1 * 2048 718847 716800 350M 7 HPFS/NTFS/exFAT
/dev/sda2 718848 450559999 449841152 214.5G 7 HPFS/NTFS/exFAT
/dev/sda3 450560000 456953855 6393856 3.1G 7 HPFS/NTFS/exFAT
/dev/sda4 456955902 976771071 519815170 247.9G 5 Extended
├─/dev/sda5 640178176 960016383 319838208 152.5G 83 Linux
├─/dev/sda6 960018432 976771071 16752640 8G 82 Linux swap / Solaris
└─/dev/sda7 456955904 640178175 183222272 87.4G 83 Linux
Free space 976771072 976773167 2096 1M
┌───────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────┐
│ Partition type: HPFS/NTFS/exFAT (7) │
│ Attributes: 80 │
│ Filesystem: ntfs │
│Filesystem label: System Reserved │
│ Filesystem UUID: ECB672B8B67282BE │
└───────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────────────────────────────────────── ────────────────┘
================================================== =
`sudo lshw -C disk`
*-disk
description: ATA Disk
product: APPLE HDD ST500L
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 0007
serial: S2XMJ9AD523955
size: 465GiB (500GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=51750080
*-cdrom
description: DVD-RAM writer
product: DVD RAM UJ897
vendor: hp
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: 1.00
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=open