Home > OS >  Ubuntu16.04 uninstall the old kernel into the system
Ubuntu16.04 uninstall the old kernel into the system

Time:10-04

I use the online tutorial uninstall the old kernel
1. The uname -a

2. DPKG -- -- get - selections | grep Linux

3. The sudo apt - get remove image
After the restart the ubuntu, couldn't get into the system



Only the memory test two options




But I is the kernel of the system (uninstall the old version, the new version is still in it)




But is couldn't get into the system, has been the memory test these two optional

Make a day, really collapse,,,,,,,

I hope the great god for help

CodePudding user response:

The Linux kernel boot depends on three places:
1,/boot/called - 2.6.30.4/boot have this file, the actual is bzImage;
2, the/boot/initrd - 2.6.30.4 is generated through mkintramfs tools;
3, grub. Conf launch configuration with the above two files,
The/etc/grub. Conf

Mainly to mount the root value of the root directory of the user UUID:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The title MyTestLinux
Root (hd0, 0)
Kernel/called - 2.6.30.4 ro root=UUID=172770 ca - 43 c4-4496 - b55b - 14890 adc53a2 RHGB quietselinux=0
The initrd/initrd - 2.6.30.4
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Pay attention to the UUID value:
[root @ localhost lark] # cat/etc/fstab
UUID=172770 ca - c4-4496-43 b55b - 14890 adc53a2/corruption defaults 1 1
UUID=90 d142e7 e0d - 9468-4-902 - d - 37 f76904d672/boot corruption defaults 1 2

Seek to grub. Conf files in the corresponding relation, rename your file into a script in the specified file name, try to see if I can solve,
Hope can help to you,

CodePudding user response:

reference 1st floor zhgure response:
Linux kernel boot depends on three places:
1,/boot/called - 2.6.30.4/boot have this file, the actual is bzImage;
2, the/boot/initrd - 2.6.30.4 is generated through mkintramfs tools;
3, grub. Conf launch configuration with the above two files,
The/etc/grub. Conf

Mainly to mount the root value of the root directory of the user UUID:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The title MyTestLinux
Root (hd0, 0)
Kernel/called - 2.6.30.4 ro root=UUID=172770 ca - 43 c4-4496 - b55b - 14890 adc53a2 RHGB quietselinux=0
The initrd/initrd - 2.6.30.4
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Pay attention to the UUID value:
[root @ localhost lark] # cat/etc/fstab
UUID=172770 ca - c4-4496-43 b55b - 14890 adc53a2/corruption defaults 1 1
UUID=90 d142e7 e0d - 9468-4-902 - d - 37 f76904d672/boot corruption defaults 1 2

Seek to grub. Conf files in the corresponding relation, rename your file into a script in the specified file name, try to see if I can solve,
Hope you can help to you,

Thank you thank you, I directly according to your method to modify the grub, and the corresponding files, and then restart into the ubuntu,
  • Related