TLDR;
I Booted from an Ubuntu USB. During the installation from the USB into the Harddisk, USB Drive is not available as a source.
Background
I have an old PC with 4 GB RAM running on Windows 10. I decided to replace Windows with Ubuntu 22.04 (Not Dual Boot).
- I made a bootable USB Drive with Ubuntu ISO using Rufus.
- I changed the boot order from BIOS.
- I booted my PC with Ubuntu from the USB Drive (
/dev/sdb
57.73.GiB)
- I clicked on the "Try Ubuntu"
- I tried installing Ubuntu without any swap area on the hard drive
The task ran for about 11 hours, and suddenly we faced an electricity failure.
After that, I tried again, and this time I made a swap partition

But as you can see the Hard Drive itself is solely visible on the "Device for boot loader installation" dropdown. I tried moving top-bottom, but the second item is /dev/sda1
Windows 10, the third is /dev/sda2
, and so on and so forth. I found no /dev/sdb
under the dropdown - all are /dev/sda$
.

The issue is if I choose the /dev/sda
(1TB) Hard Drive (as I am bound to do so), the installation says: it found a half-done partition, whether I can continue or go back. If I can't react in a hurry, I simply stuck to the Window, and can't rescue until I restart the system. If I could click the "Continue" button in a hurry, then the system simply says:
"Creating ext4 file system for / in partition #2 of SCSI1 (0,0,0) (sda)...
...with a completely filled progress bar with no hint of completing the task, and run for hours after hours with no result.

The terminal below the window simply shows if I perform any task on this Ubuntu Instance, eg. disconnecting the internet, opening the browser, closing the browser, etc., and doesn't show any progress on the partition itself.
How can I install Ubuntu to an HDD from a USB Drive?