Can I remove all partitions?

Have you gone away for pizza? Keep us updated.

Using the screenshot you posted as a reference, please note the following:

/dev/sda is selected.
erase disk is checked.
change no swap to allow a swap partition
(size: at least as much as your RAM)
then click next.

If there is an error, show it to us.

Installation Failed
The installer failed to create partition on disk ā€˜WDC WD5000LPCX-35VHATO’.
Details:
Create a new partition (300.00 MiB, fat32) on ā€˜/dev/sda’
Job: Create new partition on device ā€˜/dev/sda’

Command: sfdisk --force --append /dev/sda
Failed to add partition ā€˜New Partition’ to device ā€˜/dev/sda’.

Gives me this error everytime.

Did you use erase disk?

Yes, i did.

Thanks, I had to be sure.

The error is something I can’t overcome from here, and it seems neither can anyone else. It might be best to take the machine to your local computer repair shop, and ask for assistance.

Explain the error to them, and they can more easily discover whether it’s an issue with your disk, or misconfiguration in BIOS. I’m afraid I haven’t anything more to suggest.

You could try downloading the GParted disk as I mentioned earlier, and try to create a new GPT partition table, before trying the install again; but I’m unsure how successful that might be at this point.

Thats fine, thank you for trying, and u may be right, its probably something on my disk.

I dont know if this will help.

1 Like

I mean, it does not hurt to swipe the disk in gparted first and THEN try to reinstall. But I think that is pretty much what the installer is trying to do if you select ā€œerase diskā€.

Just delete ALL partitions and then press save. (all space should be ā€œunallocatedā€)
You have to press the ā€œvā€ (save) for anything to actually happen.
Then try to install by selecting ā€œerase diskā€.

Try that and report back here with the outcome.
If it fails with gparted trying to remove the disk, copy and paste the log text here.

its deleting the partitions, but its giving me ā€œinput/output error during read on dev/sdaā€ error while its deleting it.

Yeah, that starts to sound more and more like some kind of harware error.
We can go deeper and use cli tools and see if that would give closer description of the error, but I feel enough time has been given here and probably won’t change anything.

The last thing you could try is if you have another drive, or even a usb stick with enough space just to test. You can try to install to another device to make ABSOLUTELY sure it is the drive and not something else at fault here.

Edit, well, lets try one last thing actually.

We can try to force overwrite with dd and see what happens.

Open a terminal and type this:
sudo dd bs=1024 count=1048576 if=/dev/zero of=/dev/sda conv=noerror,sync status=progress

That will try to fill the device with 1GB of zeros, in effect destroying the filesystem that is there now.
Then try to install with ā€œerase diskā€ again.

seems like im gonna have to wait till the weekend then, well, thanks for helping, i wouldnt even know what the problem was if it wasnt for you two.

I edited above message, please reread and see if you want to do it.

im gonna try this later and update you if anything happens

GPT table is corrupt

Is likely your problem.

sudo fdisk /dev/sda

Enter g.
Enter w to save.

Note: Data on /dev/sda will obviously be lost.