Skip to main content

Thread: Missing initrd no liveusb or comp


hi have had major problem. entire boot folder erased , stuck in initramfs there commands can use make new initrd or can act initrd file somehow. remember have limited commands have basic such mkdir cat mktemp cp pwd set du chroot chmod , few others.
have little access bet use commands open programs. dont know these programs. know boot proccess far kernel , grub not know else initrd says do. please help.

boot live cd, mount root file system , if necessary boot partition in chroot, , re-install kernel.

assuming running live cd, , ubuntu root partition /dev/sda, , not have separate boot partition ...

code:
sudo mount /dev/sda1 /mnt sudo cp /etc/resolv.conf /mnt/etc/
depending on configuration, may need copy hosts file

code:
 sudo cp /etc/hosts /mnt/etc/  sudo mount --bind /dev/ /mnt/dev sudo chroot /mnt mount -t proc none /proc mount -t sysfs none /sys mount -t devpts none /dev/pts
to avoid locale issues , in order import gpg keys

code:
export home=/root export lc_all=c
restore grub

code:
grub-install /dev/sda
reinstall kernel

code:
apt-get install --reinstall linux-gnereic
should automatically update /boot , grub.

should able reboot.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Missing initrd no liveusb or comp


Ubuntu

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Thread: World of Warcraft private server with wine?

Thread: video metadata editing??