Ubuntu Pastebin

Paste from gero at Fri, 26 Aug 2016 20:31:25 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
lubuntu@lubuntu:~$ sudo mount /dev/sda2 /mnt
mount: /dev/sda2 is already mounted or /mnt busy
       /dev/sda2 is already mounted on /mnt
       /dev/sda2 is already mounted on /mnt/boot
lubuntu@lubuntu:~$ sudo mount --bind /dev /mnt/dev
lubuntu@lubuntu:~$ sudo mount --bind /proc /mnt/proc
lubuntu@lubuntu:~$ sudo mount --bind /sys /mnt/sys
lubuntu@lubuntu:~$ sudo chroot /mnt
root@lubuntu:/# grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
root@lubuntu:/# update-grub2
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found Windows 7 (loader) on /dev/sda1
done
root@lubuntu:/# exit
exit
lubuntu@lubuntu:~$ cd ~
lubuntu@lubuntu:~$ sudo umount /mnt/dev
lubuntu@lubuntu:~$ sudo umount /mnt/proc
lubuntu@lubuntu:~$ sudo umount /mnt/sys
lubuntu@lubuntu:~$ sudo umount /mnt/
umount: /mnt/: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
lubuntu@lubuntu:~$ 
Download as text