I have a computer with windows 7 installed that's not booting and decided to install ubuntu on it. I've downloaded ubuntu on a mac and used
dd to make a bootable usb. I'm able to boot from the usb and I choose
Erase Disk and
Install now but I get this error:
The creation of swap space in partition #5 of SCSI1 (0,0,0) (sda) failed.
So it seems some part of the system is corrupted. I may have mangled it even more trying to fix this. I've googled around and tried lots of solutions that didn't work for me:
Erase DiskI choose
Something else. I then try to set up partitions as in this question. Clicking
Install nowgets me a bit further than before, but after staying on
Creating ext4 file system for / in partition #5 of SCSI1 (0,0,0) (sda)...
for a while, I get this error:
The ext4 file system creation in partition #6 of SCSI1 (0,0,0) (sda) failed
Try Ubuntu instead and open a terminal. Then try the following:
sudo gparted. It gives the following error:
Invalid partition table on /dev/sda - wrong signature bfd3.
clicking ignore gives
The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
I click ignore again and see three partitions:
Partition | File System | Size | Used | Unused | Flags
/dev/sda1 | linux-swap | 590.18 GiB | 0.00 B | 590.18GiB |
/dev/sda2 | extended | 5.99 GiB | - | - |
unallocated | unallocated | 5.99 GiB | - | - |
I delete the partitions
sda2. It repeats the two errors but it seems to have worked; the only thing partition left is
unallocated. But after restarting and choosing
Install UbuntuI get the same errors. And using
gpartedagain the partitions are exactly like in the table above once more.
Testdiskand run it as explained here. When running the
AnalyseI see the following:
Disk /dev/sda - 640 GiB / 596 GiB - CHS 77825 255 63 Current partition structure: Partition Start End Size in sectors 1 P Linux swap 0 32 33 62 53 55 997376 2 E extended 62 86 23 77825 70 5 1249261570 No partition is bootable 5 L Linux 62 86 25 2493 172 47 39059456 X Extended 2493 172 48 77825 70 5 1210202112 test_logical Partition sector doesn't have the endmark 0xAA55
so the output is a bit different than in the link. I run
Quick Searchand get some of the same info again. I then have options to change partition characteristics and to add partition, load backup and change type, but I'm not sure what to do.
sudo LANG=C sfdisk -d /dev/sdagives"
Ignoring extra data in partition table 6 Ignoring extra data in partition table 6 Ignoring extra data in partition table 6 Invalid flag 0x9616 of EBR (for partition 6) will be corrected by w(rite). label: dos label-id: 0x976074d3 device: /dev/sda unit: sectors /dev/sda1 : start = 2048, size = 997376, type = 82 /dev/sda2 : start = 1001470, size = 1249261570, type = 5 /dev/sda5 : start = 1001472, size = 39059456, type = 83 /dev/sda6 : start = 3022904410, size = 3562462754, type = 77