Monthly Archives: December 2012

Grub install

sudo bash
mount /dev/sda2 /mnt 
mount /dev/sda3 /mnt/boot 

mount -o bind /dev /mnt/dev 
mount -o bind /sys /mnt/sys 
mount -t proc /proc /mnt/proc 

chroot /mnt /bin/bash 
grub-install /dev/sda
update-grub
exit

Sollte der Fehler “Could not find device for /boot: Not found or not a block device.” auftreten, gibt man folgende Zeile vor dem grub-install ein:

cp /proc/mounts /etc/mtab 

Boot-Repair

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
sudo chroot "/mnt/boot-sav/sda5" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda5" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda5" apt-get purge -y --force-yes grub*-common grub-common:i386 shim-signed linux-signed*
sudo chroot "/mnt/boot-sav/sda5" apt-get install -y --force-yes grub-pc linux-generic

Kernel Book Verbose

How do I enable verbose mode at boot?
How to enable boot messages to be printed on screen during boot up?

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_CMDLINE_LINUX_DEFAULT="nosplash debug"
GRUB_CMDLINE_LINUX=""
  1. Start your system and wait for the GRUB menu to show (if you don’t see a GRUB menu, press and hold the left Shift key right after starting the system).
  2. Now highlight the kernel you want to use, and press the e key. You should be able to see and edit the commands associated with the highlighted kernel.
  3. Go down to the line starting with linux and remove the parameters quiet and splash.
  4. Now press Ctrl + x to boot.