20-05-2020, 23:00
0
Uruchomilem jak kazales, wklejajac polecenia do terminala - oto wynik:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
mint@mint:~$ sudo file -s /dev/sda6
/dev/sda6: Linux rev 1.0 ext4 filesystem data, UUID=abd51476-f723-421b-b39a-ab6a596093f9 (extents) (64bit) (large files) (huge files)
mint@mint:~$ sudo mkdir /mnt/root/
mint@mint:~$ sudo mkdir /mnt/root/
mkdir: cannot create directory ‘/mnt/root/’: File exists
mint@mint:~$ sudo mount -t ext4 /dev/sda6 /mnt/root
mint@mint:~$ sudo mount -o bind /dev /mnt/root/dev
mint@mint:~$ sudo mount proc /mnt/root/proc -t proc
mint@mint:~$ sudo mount sysfs /mnt/root/sys -t sysfs
mint@mint:~$ sudo chroot /mnt/root
root@mint:/# sudo grub-install /dev/sda2
Instalowanie dla platformy x86_64-efi.
grub-install: błąd: nie można odnaleźć katalogu EFI.
root@mint:/#
Cos robilem zle?
Dodano po pewnym czasie:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
mint@mint:~$ sudo file -s /dev/sda6
/dev/sda6: Linux rev 1.0 ext4 filesystem data, UUID=abd51476-f723-421b-b39a-ab6a596093f9 (extents) (64bit) (large files) (huge files)
mint@mint:~$ sudo mkdir /mnt/root/
mint@mint:~$ sudo mkdir /mnt/root/
mkdir: cannot create directory ‘/mnt/root/’: File exists
mint@mint:~$ sudo mount -t ext4 /dev/sda6 /mnt/root
mint@mint:~$ sudo mount -o bind /dev /mnt/root/dev
mint@mint:~$ sudo mount proc /mnt/root/proc -t proc
mint@mint:~$ sudo mount sysfs /mnt/root/sys -t sysfs
mint@mint:~$ sudo chroot /mnt/root
root@mint:/# sudo grub-install /dev/sda2
Instalowanie dla platformy x86_64-efi.
grub-install: błąd: nie można odnaleźć katalogu EFI.
root@mint:/#
Cos robilem zle?
Dodano po pewnym czasie:
(20-05-2020, 23:00)broken napisał(a): Uruchomilem jak kazales, wklejajac polecenia do terminala - oto wynik:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
mint@mint:~$ sudo file -s /dev/sda6
/dev/sda6: Linux rev 1.0 ext4 filesystem data, UUID=abd51476-f723-421b-b39a-ab6a596093f9 (extents) (64bit) (large files) (huge files)
mint@mint:~$ sudo mkdir /mnt/root/
mint@mint:~$ sudo mkdir /mnt/root/
mkdir: cannot create directory ‘/mnt/root/’: File exists
mint@mint:~$ sudo mount -t ext4 /dev/sda6 /mnt/root
mint@mint:~$ sudo mount -o bind /dev /mnt/root/dev
mint@mint:~$ sudo mount proc /mnt/root/proc -t proc
mint@mint:~$ sudo mount sysfs /mnt/root/sys -t sysfs
mint@mint:~$ sudo chroot /mnt/root
root@mint:/# sudo grub-install /dev/sda2
Instalowanie dla platformy x86_64-efi.
grub-install: błąd: nie można odnaleźć katalogu EFI.
root@mint:/#
Cos robilem zle?
Postanowilem jednak wpisac ostatnie polecenie i otrzymalem:
root@mint:/# sudo update-grub
Sourcing file /etc/default/grub'
Sourcing file /etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generowanie pliku konfiguracyjnego GRUB-a...
Znaleziono motyw: /boot/grub/themes/linuxmint/theme.txt
Znaleziono obraz Linuksa: /boot/vmlinuz-5.3.0-53-generic
Znaleziono obraz initrd: /boot/initrd.img-5.3.0-53-generic
Znaleziono obraz Linuksa: /boot/vmlinuz-5.3.0-51-generic
Znaleziono obraz initrd: /boot/initrd.img-5.3.0-51-generic
Znaleziono obraz Linuksa: /boot/vmlinuz-5.0.0-32-generic
Znaleziono obraz initrd: /boot/initrd.img-5.0.0-32-generic
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Adding boot menu entry for EFI firmware configuration
gotowe
root@mint:/#
Chcialem abys mial caly obraz zdarzen.