sudo fdisk -l Disk /dev/loop0: 1.65 GiB, 1773535232 bytes, 3463936 sectors Units:…
- User
sudo fdisk -l Disk /dev/loop0: 1.65 GiB, 1773535232 bytes, 3463936 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
Disk /dev/loop1: 522.8 MiB, 548192256 bytes, 1070688 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
Disk /dev/loop2: 895.65 MiB, 939159552 bytes, 1834296 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
Disk /dev/loop3: 4 KiB, 4096 bytes, 8 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
Disk /dev/loop4: 73.89 MiB, 77479936 bytes, 151328 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
Disk /dev/loop5: 11.13 MiB, 11673600 bytes, 22800 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
Disk /dev/loop6: 258.04 MiB, 270569472 bytes, 528456 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
Disk /dev/loop7: 516.01 MiB, 541073408 bytes, 1056784 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
Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: SanDisk SD8TB8U2 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: gpt Disk identifier: A9B5D8F3-D27C-40AB-8AC7-77BB66187DA9
Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 500115455 500111360 238.5G Linux filesystem
Disk /dev/sdb: 250 GiB, 268435456000 bytes, 524288000 sectors Disk model: UDisk
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 Disk identifier: 0x0aef60deDevice Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 524287935 524285888 250G c W95 FAT32 (LBA)
Disk /dev/loop8: 91.69 MiB, 96141312 bytes, 187776 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
Disk /dev/loop9: 10.77 MiB, 11292672 bytes, 22056 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
- Assistant
From your
fdisk -loutput and mount attempts, here are some key points and suggestions:1. Partition vs Whole Disk
/dev/sdais the entire disk.- The main Linux filesystem is on (238.5 GiB, type Linux filesystem).
- User
- Assistant
You successfully mounted
/dev/sda2(type ext4) and chrooted into it, which is great progress!
Regarding
upgrade-grub: command not foundupgrade-grubis a Debian/Ubuntu wrapper script typically found in/usr/sbin/.In some cases, inside the chroot, this command may not be available or its environment may be incomplete.
Instead, try running:
bashupdate-grubupdate-grubis the actual command that generates grub config files.
Next steps inside the chroot:
- First, update your package lists to ensure everything is current:
bashapt update