banner



How To Use Roman Wallpaper Adhesive To Repair Peeling Border

Today, we'll show you lot how you lot can fix your broken or accidentally deleted Initrd Paradigm ie. Linux Kernel Image and Chow Loader in your Ubuntu installed machine.  Information technology should also piece of work for Ubuntu derivatives as well equally other distribution.

Initrd is a scheme for loading a temporary root file arrangement into memory in the boot procedure of the Linux kernel. It is a cpio archive of the initial file system that gets loaded into retention during the Linux startup process. The Kernel mounts it as root file system and starts the init procedure from it.

The Initrd image may be broken or corrupt if the kernel you installed was corrupted or due to some modifications made on the system's kernel or the kicking process which in results the system crash :(

panic
initrd-error

Equally nosotros know,  "When there is will there is way". Yes, nosotros can fix or rebuild the initrd prototype. In my case I volition exist showing you with my Ubuntu 13.ten Operating System.

Here are easy step wise steps below with screenshots which will assistance us rebuild our corrupted Kernel Prototype (Initrd)

ane. Boot your machine with a Live Media

You tin apply your Ubuntu CD/DVD or USB stick to boot live into your machine. If yous don't have one, there are a lot of ways to create bootable media. You tin can download the latest Ubuntu Distribution from their official site ie. http://ubuntu.com/ and burn the paradigm to a Blank DVD or employ unetbootin to create your USB Stick bootable.

2. Open a terminal panel and get partitions path

You can easily run a terminal console by pressing Ctrl+ Alt +T in Ubuntu or you lot can switch to tty1 by pressing Ctrl+ Alt+f1. What we need to do is, we need to mountain our the filesystem from our Hard disk. For that, we need to know the device path. To get the device path you the need to run:

          $ sudo fdisk -l        
fdisk-l

Here, from above issue, in my case, sda1 is the 1 I need to mount.

3. Mountain the filesystems

The filesystem we need to mountain the difficult deejay'southward partitions such as / (root), /boot, /var and should mountain bind  /sys, /proc and /dev under a directory /mnt. So, that tin be done past steps below:

          $ sudo mount /dev/sdaX /mnt        
mount

Note: Here in /dev/sdaX, 10 refers to the partition number one in my instance,  which we got from step 2.

          $ sudo mount --bind /dev /mnt/dev  $ sudo mountain --bind /proc /mnt/proc  $ sudo mount --bind /sys /mnt/sys        

iv. Chroot /mnt and creating a Backup of the initrd epitome

Now, nosotros need to chroot /mnt so that nosotros tin can setup chrooted environment for the Hard Disk'due south division.

          $ sudo chroot /mnt        
chroot

Afterward Chroot is washed, we will be backing up the image file of initrd, y'all can run across the image files under /boot.

          # ls /boot/*initrd*  or        
          # ls /lib/modules/        
kernel-module

You will be able to get the version of the kernel you accept currently in the organization from the in a higher place command.

Consider replacing version 3.11.0.12-generic with the own yous got from above command.

          # mv /kick/initrd.img-3.xi.0.12-generic /kicking/one-time-initrd.img-three.11.0.12-generic-quondam        

Note: the file format of the initrd paradigm may differ from Ubuntu to Fedora Based Systems.

If your initrd epitome has been deleted, you lot won't be able to run the in a higher place command hence, can't create its backup.

5. Building Initrd Image

At present, the real stuff is here. We are gonna build the initrd kernel image here using the control below:

          # mkinitrd /boot/initrd.img-3.xi.0.12-generic three.11.0.12-generic-old        

The above control works for the other distributions like CentOS, Fedora, Hat,etc non for Ubuntu

For Ubuntu Based Distribution:

          # update-initramfs -c -k iii.11.0.12-generic        
update-initramfs

vi. Finalizing Chow Loader and unmounting

We will go for unmounting the mounted path as:

If your organisation has Fedora, RHEL, CentOS installed, try this:

          # grub2-mkconfig -o /kicking/grub2/chow.cfg        

If your system has Ubuntu and its derivative installed:

          # update-grub  # leave        
grub-update

At present, we have successfully left our Chroot Environment.

          $ sudo umount /dev  $ sudo umount /proc  $ sudo umount /sys  $ sudo umount /mnt        
unmount

Hurray, At present, reboot your machine and eject your Bootable Media. We have done it successfully, boot your arrangement dorsum to the normal and savor Linux Calculating.

Source: https://linoxide.com/fixing-broken-initrd-image-linux/

Posted by: hendersonhancy1944.blogspot.com

0 Response to "How To Use Roman Wallpaper Adhesive To Repair Peeling Border"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel