Systemrettung: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 11: Zeile 11:


for dir in /sys /dev /proc ; do
for dir in /sys /dev /proc ; do
   mount -o bind $DIR /trg/$DIR
   mount -o bind $dir /trg/$DIR
done
done
chroot /trg
chroot /trg

Version vom 29. November 2014, 16:47 Uhr


Grub restaurieren

  • Rettungssystem starten
BOOT_DISK=/dev/sdX
ROOT_PART=/dev/sdX5

test -d /trg || mkdir /trg
mount $ROOT_PART /trg

for dir in /sys /dev /proc ; do
   mount -o bind $dir /trg/$DIR
done
chroot /trg
echo "we have entered the forign system (chroot)!"

grub-install $BOOT_DISK

echo "use 'exit' to leave the forign system"