Solved
see answers below
I am trying to install version 22.04.1 LTS of Ubuntu desktop from a bootable usb onto my laptop's internal hdd. I completely want to replace Windows. My laptop has a 750GB hdd and I am using a usb of 4GB, those two drives are the only available options I have, I am learning
Some context: Windows 10 became corrupted due to some bad shutdowns, tried everything from recovery mode to fixing system files with sfc scan through cmd, dism repair, chkdsk etc. Nothing worked, so I decided to install and use Ubuntu as my OS
From my corrupted windows environment I managed to:
Managed to boot into safe mode with networking, white screen corrupted desktop environment
Managed to access Google Chrome app through task manager, downloaded Rufus and Ubuntu ISO, created bootable usb
Then I restarted laptop and the Ubuntu install process began, I continued with the process until reaching Installation Type
Selected "Erase disk and install Ubuntu", not enough space, continued anyways, install failed, Ubuntu desktop environment, found Disks app, erased stuff from windows space on hdd, mistake after mistake
Powered down laptop, reboot, usb still plugged in, no device detected to boot, research online through phone, learned about legacy mode, safe boot disable, etc
Seems everything got further corrupted now including bootable usb, so I borrowed another laptop and repeated the process
- Download ISO again, download balenaEtcher this time, created bootable usb, boot up original laptop again, success again, installation begins again
Now when I reached Installation Type again, this time I select the option Something else:
/dev/sda,
free space 1089MB,
/dev/sda4 ntfs 705092MB unknown,
free space 43974MB
/dev/sdb,
/dev/sdb1 3822MB unknown,
/dev/sdb2 4MB unknown,
/dev/sdb3 0MB unknown,
free space 100MB
options for Device for boot loader installation:
/dev/sda ATA TOSHIBA 750GB,
/dev/sda4,
/dev/sdb Kingston 4GB
I continue as per some research online:
Select free space from above of 43974MB, click +, create partition of 1000MB for EFI System Partition, Primary, Beginning of this space
Select free space again, click +, create partition of 6000MB for swap area, Logical, Beginning of this space
Select free space again, click +, create partition of remainder of MB for Ext4 journaling file system, Logical, Beginning of this space, mount point /
After doing this, more options become availabe in the Device for boot loader installation menu, I choose ATA TOSHIBA 750GB (have tried other menu options as well), continue with install, install fails
"Failed to unmount partitions
The installer needs to commit changes to partition tables, but cannot do so because partitions on the following mount points could not be unmounted: /cdrom
Please close any applications using these mount points.
Would you like the installer to try to unmount these partitions again?"
I select Go Back and the process usually freezes, sometimes process resets to Installation Type, else I kill the program with ctrl+alt+T xkill
This is where I am currently stuck and I don't know what else to do. I can't seem to find anymore information searching online, most info and questions etc are not helping my case. I don't even know if what I am trying to do is possible to begin with, but I want to simply replace whatever is on the hdd and just use Ubuntu so I can get back to work and any help I appreciate!
Update: I have tried using gparted to format or erase partitions, but it won't let me do so because they first need to be unmounted. I cannot unmount them. My guess is that the bootable usb has somehow installed some form of temporary files onto the internal hdd and since any and all operations I am trying to do are not possible
Update2: I have ran a SMART test, Disk is Ok with 2255 bad sectors at 90% remaining, then it finishes with SELF-TEST FAILED. Upon short research, this doesn't always mean it can't still be used.