I rearranged my disk partitions, figuring that I could account for the changes by modifying the files used by grub. I'm now trying to understand what actually happened. The oddest thing is that gparted now reports that /dev/sd4 is immediately followed by /dev/sd9. I'd like to understand how the dev names are mapped into the actual disk partitions, since they clearly are not consecutive, If I can understand that, I should be able to make the necessary repairs.
Here is some more information,following oldfred's suggestion:
root@HP-Pavilion-Laptop-17-ar0xx:/home/pwa# parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name
Flags
1 1049kB 274MB 273MB fat32 EFI system
partition boot, esp
2 274MB 290MB 16.8MB Microsoft
reserved partition msftres
3 290MB 157GB 156GB ntfs Basic data
partition msftdata
4 171GB 172GB 599MB ntfs
hidden, diag
9 172GB 486GB 315GB ext4 Kubuntu 21.10
5 567GB 867GB 300GB ext4
6 867GB 870GB 3000MB linux-swap(v1)
swap
7 986GB 987GB 1028MB ntfs Basic data
partition hidden, diag
8 987GB 1000GB 12.8GB ntfs Basic data
partition hidden, msftdata
root@HP-Pavilion-Laptop-17-ar0xx:/home/pwa# lsblk -e 7 -o
name,fstype,size,fsused,label,partlabel,mountpoint
NAME FSTYPE SIZE FSUSED LABEL PARTLABEL
MOUNTPOINT
sda 931.5G
├─sda1 vfat 260M 112.1M EFI system partition
/boot/efi
├─sda2 16M Microsoft reserved
partition
├─sda3 ntfs 145.5G 71.6G Windows Basic data partition
/media/pwa/Windows2
├─sda4 ntfs 571M
├─sda5 ext4 279.4G 186.8G
/
├─sda6 swap 2.8G
[SWAP]
├─sda7 ntfs 980M Windows RE tools Basic data partition
├─sda8 ntfs 11.9G RECOVERY Basic data partition
└─sda9 ext4 293G Kubuntu 21.10
sr0 1024M
root@HP-Pavilion-Laptop-17-ar0xx:/home/pwa#