I dual boot Windows 10 and Ubuntu. I used to have them on one disk but I moved them onto separate disks for more space. After I separated their disks now I get this error on startup:
/dev/sda2: The filesystem size (according to the superblock) is 30146560 blocks
The physical size of the device is 4096 blocks
Either the superblock or the partition table is likely to be corrupt!
/dev/sda2: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
Something strange is that /dev/sda2 is a 'Microsoft reserved partition', and Ubuntu is actually installed at /dev/sdb2. I also noticed that this only happens after Ubuntu boots into a blank purple screen with no mouse or any response, and that only happens after I restart from Windows to go to Ubuntu. Also Windows says 'Press any key to skip disk checking' on startup, which it didn't before I moved the disk.
I have tried all the solutions in other similar questions. They do not work because the first error says Either the superblock or the partition table is likely to be corrupt! Abort<y>?
Answering 'yes' then exits fsck. I have also tried answering 'no' to this question and then 'a' for 'all' but that also did not fix the problem after a system restart.
I have also run 'quick' SMART disk checks and full tests which have found no errors on the SSD.
UPDATE: A temporary fix for the problem was to unplug the SATA cable for the disk with Windows on it, which then allowed Ubuntu to boot normally. All the data seems intact. This confirms that Ubuntu has issues with the 'Microsoft reserved partition' on the Windows SSD, and removing it allowed Ubuntu to work (but now I can't use Windows)
How can I fix this? (preferably permanently) Why would it matter if /dev/sda2 (a partition which is not involved in the Ubuntu install) appears broken to Ubuntu?
Thanks.
EDIT 2: better question here
sudo parted -l
– oldfred Jan 03 '21 at 16:05