インストール中です。ハイパーレジャー構造、Ubuntu 18.04.3デスクトップではsudo -E
、ブートローダーそして別の同様のもの。
しかし、インストールした後はすべてがうまくいくようです。 Ubuntuは使用できなくなり、再起動すると黒い画面のみが表示されますgrub rescue>
。
iso-image USB経由で「Try Ubuntu」オプションにアクセスし、端末を開き、ブート回復ツールをインストールしました。
私が受け取った始動修理レポートは次のとおりです。http://paste.ubuntu.com/p/KVg3BCSGpd/
次のガイドラインに従ってください。grubメニューからUSBから起動する方法はありますか? そしてGrub RescueでUbuntuブートを修正する方法No LiveCD |。
私は編集する:
grub rescue> ls
(hd0) (hd0, msdos1) (hd1) (hd1,msdos1)
grub rescue> ls (hd0)/
error: unknown filesystem
grub rescue> ls(hd0,msdos1)/
error: unknown filesystem
grub rescue> ls (hd1)/
error: unknown filesystem
grub rescue> ls (hd1,msdos1)/
error: unknown filesystem
grub rescue> set
cmdpath=(hd0)
prefix=(hd0,msdos1)/boot/grub
しかし、起動修理は次のように言います。
sda1:
File system: LVM2_member
Boot sector type: -
Boot sector info:
sdb1:
File system: LVM2_member
Boot sector type: -
Boot sector info:
ubuntu-vg-root:
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 18.04.4 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
ubuntu-vg-swap_1:
File system: swap
Boot sector type: -
Boot sector info:
Drive/Partition Info:
Drive: sda
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id
System
/dev/sda1 2,048 488,396,799 488,394,752 8e Linux LVM
「Try Ubuntu」(iso image usb)がある端末でsudo update-grubを使用しようとしています。
ubuntu@ubuntu: ~$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of '/cow'
その後、指示に従います。/ cowへの正規パスを取得できません。。
その後、「LVM2_member」を取得しました。
ubuntu@ubuntu:~$ sudo mkdir /mnt/chroot
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/chroot
mount: /mnt/chroot: unkown filesystem type 'LVM2_member'
しかし、vgdisplayを使うと
ubuntu@ubuntu:~$ sudo vgdisplay
-- Volume group --
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size <465,77 GiB
PE Size 4.00 MiB
VG UUID frpHze-BaQY-T18Q-u5dc-TJH2-NNyp-1T6SsT
ubuntu@ubuntu:~$ sudo lvscan
ACTIVE '/dev/ubunstu-vg/root' [<463.93 GiB] inherit
ACTIVE '/dev/ubuntu-vg/swap_1' [980.00 MiB] inherit
iso-image usbが提供する「Try Ubuntu」がある端末で、以下を試しました。
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# mount /dev/mapper/ubuntu--vg-root /mnt
root@ubuntu:/home/ubuntu# cd /mnt
root@ubuntu:/mnt# mount -t devtmpfs none dev
root@ubuntu:/mnt# mount -t sysfs none sys
root@ubuntu:/mnt# mount -t proc proc proc
root@ubuntu:/mnt# chroot .
chroot: failed to run command 'bin/bash': No such file or directory
root@ubuntu:/mnt# ls -lah /bin grep bash
-rwxr-xr-x 1 root root 1.1M Jun 6 2019 bash
次の兆候を確認してください。 Chrootは `/bin/bash`を見つけることができません
「ファイル名やスクリプト、ELF インタプリタが存在しないか、インタプリタに必要なファイルや共有ライブラリが見つかりませんでした」という内容を読みました。しかし、具体的にどのように解決するのですか?