(i only have ubuntu installed on this laptop)
i opened what seemed to be a subtitle file and the computer froze entirely so what seemed like the only option was to force shut it down pressing the power button. next time that i tried to turn it on, i got the following message:
error: failure writing sector 0x120f0580 to `hd0`.
after that it goes to a "initramfs" screen. i tried typing exit
but it returns a bunch of error messages and freezes.
then i tried to re-install ubuntu by creating a bootable usb flash drive. however when it gets to the actual installation part, it automatically selects the "something else" option and i can't create any partitions as it only recognizes the usb stick. fdisk
and gparted
on the terminal also don't seem to recognize the hard drive.
as i don't understand much about this i'm not sure what to do now. is it possible that my hd is damaged? if not, what would be the easiest way to fix this? is there a way to fix the filesystem through initramfs or the ubuntu live environment? OR if the easiest way to fix this problem would be through a new install, how do i get it to recognize my hd instead of the usb flash drive?
btw, i've seen a lot of people talking about this so i'm not using RAID (not sure what that means exactly but i have manually set it to AHCI through bios when i first installed ubuntu on this machine, and it has always worked perfectly fine until yesterday)
sudo parted -l
the only thing that shows up is my usb flash drive so i cant run fsck or e2fsck since the partitions aren't there – henri Apr 10 '23 at 17:02