Testdisk Showed Me the Problem, But I Can't Fix It.
Posted: 13 May 2016, 19:53
The problem is a bunch of undeleted superblocks left by deleted partitions as I've restructured the drive from time to time. Since all the files systems now use short dynamic formatting now, the superblocks are left behind, instead of being overwritten as happened previously when the partitions were reformatted throughout.
But that took a long time, which got longer as drives got larger. I estimate that it takes about an hour to reformat about 10 GBs of disk space, or ten hours to do a 1TB hdd.
Testdiak ia a great help in pinpointing superblocks all over if i do a deeper search. But among these are found remnants from old partitions that are now gone. I can write a new partition table, but what about all the superblocks that are now obsolete? Depending on where the start is or was for the new and old partitions, they can interlace on the screen during the deeper search. But i see no way to mark them for deletion or have them deleted.
This is not my area of expertise, and I know no way to force a full format. It should not be necessary anyway, as all that needs to be done is overwrite the defunct superblock sectors, right? Or a part of them anyway, enought so that they are not seen as superblocks anymore.
It's my impression that normal reads and writes akirt or skip superblocks without regare to their placement or content. Properly done, these in the wrong places should flag them for overwrites regardless. Another approach is to datetime stamp them when uperblocks are in dispute.
Testdisk does a great job of showing you when you have a proper lineup of the found likely partitions. I shows you when they don't fit together as they should and there is an overlap. gparted also does a good ahowing of the right partition structure and warns you of overlaps, but it does not go into details. It depends on gpart for a read only view inside the partitons, which is sometimes enough to access the partition's contents after you mount it. . Get it right, then write it as the new partition table would be my thought. But Testdisk says a reboot is necessary at that point. I'm not sure why,
Since Ubuntu 14.04 LTS I have been getting partitions and drives corrupted, even from running off the LiveCD. With 14.04, I found three was to trigger a corruption even, With 15.10, I didn't have to try, it just kept happening. I lost 6 or seven partitions early on. That's on 4 drives and 3 PCs. I'm still struggling to get back to normal. It's been months of effort just to hang in there.
Ubuntu-Gnome 16.04 has proved to be the worse yet experienced. None of the partitions types the installer hype work if implemented. I have to use gparted under Try to preformat them then attempt the install, but with jfs, even that does not work. The Ext2/3/4 efforts fail, the FAT32 and NTFS don;t work either, and it seems hopeless. Worse yet, it's gparted may offer more choices, but the installer does not work with them. No real consistency there.
It means I am off Ubuntu for awhile. I am currently taking a stab with SparkyLinux Rescue iso 4.1. It's a minimal system, but you really only need to get it installed, add in some more Repositories, add some scripting to install more packages, and make it fly. At least it comes prepared to recover or restore drives and paritions or recover data, which other packages don't do. And for the first time I see a ray of hope, as whatever plagued Ubuntu does not seem evident on this Debian cousin. But it is early in the battle, and no real exposure to it yet.
What it doesn't offer is a way to work with the drives via the GUI as to mounting them or examining their content. As a fallback, I have Ubuntu 8.04 up to 12.04 on DVDz, as there were no real complaints about these at the time. No actual installs until I get these drives tamed and my one good partition backed up in spades. Hope that day is soon.
Like I said though, it mostly seems ro be the partitions getting cross-threaded, and maybe I know why now. But whar can I do about it? I'm ready to try anything.
But that took a long time, which got longer as drives got larger. I estimate that it takes about an hour to reformat about 10 GBs of disk space, or ten hours to do a 1TB hdd.
Testdiak ia a great help in pinpointing superblocks all over if i do a deeper search. But among these are found remnants from old partitions that are now gone. I can write a new partition table, but what about all the superblocks that are now obsolete? Depending on where the start is or was for the new and old partitions, they can interlace on the screen during the deeper search. But i see no way to mark them for deletion or have them deleted.
This is not my area of expertise, and I know no way to force a full format. It should not be necessary anyway, as all that needs to be done is overwrite the defunct superblock sectors, right? Or a part of them anyway, enought so that they are not seen as superblocks anymore.
It's my impression that normal reads and writes akirt or skip superblocks without regare to their placement or content. Properly done, these in the wrong places should flag them for overwrites regardless. Another approach is to datetime stamp them when uperblocks are in dispute.
Testdisk does a great job of showing you when you have a proper lineup of the found likely partitions. I shows you when they don't fit together as they should and there is an overlap. gparted also does a good ahowing of the right partition structure and warns you of overlaps, but it does not go into details. It depends on gpart for a read only view inside the partitons, which is sometimes enough to access the partition's contents after you mount it. . Get it right, then write it as the new partition table would be my thought. But Testdisk says a reboot is necessary at that point. I'm not sure why,
Since Ubuntu 14.04 LTS I have been getting partitions and drives corrupted, even from running off the LiveCD. With 14.04, I found three was to trigger a corruption even, With 15.10, I didn't have to try, it just kept happening. I lost 6 or seven partitions early on. That's on 4 drives and 3 PCs. I'm still struggling to get back to normal. It's been months of effort just to hang in there.
Ubuntu-Gnome 16.04 has proved to be the worse yet experienced. None of the partitions types the installer hype work if implemented. I have to use gparted under Try to preformat them then attempt the install, but with jfs, even that does not work. The Ext2/3/4 efforts fail, the FAT32 and NTFS don;t work either, and it seems hopeless. Worse yet, it's gparted may offer more choices, but the installer does not work with them. No real consistency there.
It means I am off Ubuntu for awhile. I am currently taking a stab with SparkyLinux Rescue iso 4.1. It's a minimal system, but you really only need to get it installed, add in some more Repositories, add some scripting to install more packages, and make it fly. At least it comes prepared to recover or restore drives and paritions or recover data, which other packages don't do. And for the first time I see a ray of hope, as whatever plagued Ubuntu does not seem evident on this Debian cousin. But it is early in the battle, and no real exposure to it yet.
What it doesn't offer is a way to work with the drives via the GUI as to mounting them or examining their content. As a fallback, I have Ubuntu 8.04 up to 12.04 on DVDz, as there were no real complaints about these at the time. No actual installs until I get these drives tamed and my one good partition backed up in spades. Hope that day is soon.
Like I said though, it mostly seems ro be the partitions getting cross-threaded, and maybe I know why now. But whar can I do about it? I'm ready to try anything.