SHOW:
|
|
- or go back to the newest paste.
| 1 | ubuntu@ubuntu:~$ sudo parted -l | |
| 2 | Model: ATA WDC WDS240G2G0B- (scsi) | |
| 3 | Disk /dev/sda: 240GB | |
| 4 | Sector size (logical/physical): 512B/512B | |
| 5 | Partition Table: gpt | |
| 6 | Disk Flags: | |
| 7 | ||
| 8 | - | Number Start End Size File system Name Flags |
| 8 | + | Number Start End Size File system Name Flags |
| 9 | - | 1 1049kB 556MB 555MB ntfs Basic data partition hidden, diag |
| 9 | + | 1 1049kB 556MB 555MB ntfs Basic data partition hidden, diag |
| 10 | - | 2 556MB 660MB 104MB fat32 EFI system partition boot, esp |
| 10 | + | 2 556MB 660MB 104MB fat32 EFI system partition boot, esp # EFI partition |
| 11 | - | 3 660MB 676MB 16.8MB Microsoft reserved partition msftres |
| 11 | + | 3 660MB 676MB 16.8MB Microsoft reserved partition msftres |
| 12 | - | 4 676MB 105GB 104GB ntfs Basic data partition msftdata |
| 12 | + | 4 676MB 105GB 104GB ntfs Basic data partition msftdata # Windows 10 |
| 13 | - | 5 105GB 178GB 73.4GB ntfs Basic data partition msftdata |
| 13 | + | 5 105GB 178GB 73.4GB ntfs Basic data partition msftdata # Private data |
| 14 | - | 6 178GB 188GB 9960MB ntfs Basic data partition msftdata |
| 14 | + | 6 178GB 188GB 9960MB ntfs Basic data partition msftdata # Private ubuntu data |
| 15 | - | 7 188GB 240GB 51.8GB ext4 |
| 15 | + | 7 188GB 240GB 51.8GB ext4 # Ubuntu 19.10 |
| 16 | ||
| 17 | ||
| 18 | Model: TOSHIBA USB FLASH DRIVE (scsi) | |
| 19 | Disk /dev/sdb: 15.5GB | |
| 20 | Sector size (logical/physical): 512B/512B | |
| 21 | Partition Table: msdos | |
| 22 | Disk Flags: | |
| 23 | ||
| 24 | Number Start End Size Type File system Flags | |
| 25 | 1 1049kB 15.5GB 15.5GB primary fat32 boot, lba | |
| 26 | ||
| 27 | ||
| 28 | ubuntu@ubuntu:~$ sudo mount /dev/sda7 /mnt | |
| 29 | ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt/boot/efi | |
| 30 | ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/dev | |
| 31 | ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys | |
| 32 | ubuntu@ubuntu:~$ sudo mount -t proc /proc /mnt/proc | |
| 33 | ubuntu@ubuntu:~$ sudo cp /proc/mounts /mnt/etc/mtab | |
| 34 | cp: '/proc/mounts' and '/mnt/etc/mtab' are the same file | |
| 35 | ubuntu@ubuntu:~$ sudo chroot /mnt /bin/bash | |
| 36 | root@ubuntu:/# grub-install | |
| 37 | Installing for x86_64-efi platform. | |
| 38 | grub-install: error: cannot open `/boot/efi/EFI/ubuntu/grubx64.efi': Input/output error. | |
| 39 | root@ubuntu:/# grub-install --recheck | |
| 40 | Installing for x86_64-efi platform. | |
| 41 | grub-install: error: cannot open `/boot/efi/EFI/ubuntu/grubx64.efi': Input/output error. | |
| 42 | root@ubuntu:/# cd boot/efi/EFI/ | |
| 43 | root@ubuntu:/boot/efi/EFI# ls | |
| 44 | ls: cannot access 'ubuntu': Input/output error | |
| 45 | Boot HP Microsoft ubuntu | |
| 46 | root@ubuntu:/boot/efi/EFI# |