<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4881&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Severe damage to ext4 filesystem - advice needed]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4881</link>
		<description><![CDATA[The most recent posts in Severe damage to ext4 filesystem - advice needed.]]></description>
		<lastBuildDate>Mon, 14 Feb 2022 17:54:35 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34657#p34657</link>
			<description><![CDATA[<p>I&#039;m sorry to hear, Altoid.<br />As I wrote, dd writes from the beginning of the disk/partition. Even only a smaller iso-file dumped to it will overwrite the partition-boot-block and a lot of important filesystem information, like the superblock, some inode-tables, directories, datablocks etc.<br />Even if you are successful in creating a new partition table or taking the one from the end of the blockdevice (GPT), the overwritten information is gone.<br />When you create a new filesystem and install an OS or copy data to it, the data is mostly written to the beginning of the filesystem. So there are more likely data erased there when an accidental dd wreaks its havoc. You may be able to recover some files if they and the related inode-tables are in the non-overwritten area. But blocks my still be missing since the filesystem can reuse emptied blocks if their files were once deleted and the associated file was extended, before the accident happened.<br />The explanation may not please - life can be miserable.</p>]]></description>
			<author><![CDATA[dummy@example.com (Andre4freedom)]]></author>
			<pubDate>Mon, 14 Feb 2022 17:54:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34657#p34657</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34652#p34652</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... to recover an DOS partition table ...<br />... run <span class="bbc">fdisk</span> to create a DOS partition table ...<br />... run fsck as per <span class="bbc">superblock</span> advice at post #7 ...<br />Might work ...</p></div></blockquote></div><p>It&#039;s well worth trying ...</p><p>First I zapped with sgdisk:</p><div class="codebox"><pre><code>~$ sudo sgdisk --zap-all /dev/sdf

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************

GPT data structures destroyed! You may now partition the disk using fdisk or other utilities.
~$</code></pre></div><p>Then I used <span class="bbc">fdisk</span> to create a partition and delete the iso9660 signature:</p><div class="codebox"><pre class="vscroll"><code>~$ sudo fdisk /dev/sdf

Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x0be77ae3.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)

Select (default p): p
Partition number (1-4, default 1):
First sector (2048-585937499, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-585937499, default 585937499):

Created a new partition 1 of type &#039;Linux&#039; and of size 279.4 GiB.
Partition #1 contains a iso9660 signature.

Do you want to remove the signature? [Y]es/[N]o: y

The signature will be removed by a write command.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
~$</code></pre></div><p>Unfortunately I was not able to recover anything from <span class="bbc">fsck</span> and any of the listed superblocks.<br />ie: 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 and 71663616</p><p>They were all corrupted.&#160; 8^|</p><p>At this point I decided to cut my losses and cleared the #$%&amp; drive, formatted as ext4 and put it back on-line.<br />Fortunately, I <em>was</em> able to scrape back some files using PhotoRec but, as I posted earlier, it is a huge mess I have to sift through by hand.</p><p>My sincere thank you to all who pitched in.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 14 Feb 2022 11:06:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34652#p34652</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34641#p34641</link>
			<description><![CDATA[<p>Yes, good, that&#039;s better, since GPT decorates both the head and the tail of the device.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 13 Feb 2022 21:32:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34641#p34641</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34639#p34639</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>to recover an DOS partition table, you clear the first 1 Mb of the device</p></div></blockquote></div><p>An MS-DOS partition table only occupies the first 512 bytes. Reference: <a href="https://en.wikipedia.org/wiki/Master_boot_record#Disk_partitioning" rel="nofollow">https://en.wikipedia.org/wiki/Master_bo … rtitioning</a></p><p>This will clear the table for both MS-DOS (&quot;MBR&quot; type) and GPT devices:</p><div class="codebox"><pre><code># sgdisk --zap-all /dev/sdX</code></pre></div><p>That command is supplied by the gdisk package.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 13 Feb 2022 21:12:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34639#p34639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34638#p34638</link>
			<description><![CDATA[<p>@Altoid, to recover an DOS partition table, you clear the first 1 Mb of the device:</p><div class="codebox"><pre><code># dd if=/dev/zero of=/dev/sdf bs=1M count=1 conv=notrunc</code></pre></div><p>NOTE THIS IS HARMFUL TO A DISK. Make sure doubly <span class="bbc">/dev/sdf</span> is the disk at hand.</p><p>Then run <span class="bbc">fdisk</span> to create a DOS partition table as per post #3, create a single primary partition of type 83 starting at 2048 and ending at end. </p><p>Thereafter run fsck as per <span class="bbc">superblock</span> advice at post #7, trying some of the discovered superblocks.</p><p>Then mount sdf1.</p><p>Might work, though it doesn&#039;t recover overwritten files of course.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 13 Feb 2022 21:03:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34638#p34638</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34627#p34627</link>
			<description><![CDATA[<p>This is the approach that I use:</p><div class="codebox"><pre><code>df -h</code></pre></div><p>That shows me my mounted drives. If I see (for example) that <em>/dev/sdb</em> is my &quot;highest&quot; drive, then I&#039;ll guess that the USB stick will be <em>/dev/sdc</em>.</p><p>Although my guess has usually been correct, I always verify it like this:</p><div class="codebox"><pre><code># fdisk -l /dev/sdc</code></pre></div><p>I then look at the output of fdisk to see if the size of <em>/dev/sdc</em> (and other drive info) matches what I expect. It usually does, but if were to ever see something I wasn&#039;t expecting, then I would know to be <em>extra</em> careful before proceeding.</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Sun, 13 Feb 2022 15:00:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34627#p34627</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34602#p34602</link>
			<description><![CDATA[<p>It&#039;s probably better to use dmesg: </p><div class="codebox"><pre><code>{sudo} dmesg | tail</code></pre></div><p> will give you the last 10 lines, usually enough to find which drive letter the kernel has assigned to the USB stick you&#039;ve just inserted.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Sat, 12 Feb 2022 17:39:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34602#p34602</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34601#p34601</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>I&#039;ve realised that this happened because I used <span class="bbc">lsblk</span> to re-check the USB drive&#039;s asigned letter.</p></div></blockquote></div><p>Next time run <span class="bbc">lsblk</span> twice, once *before* you plug the USB drive in and once *afterwards*. Then look for a device (or devices) that was not there before you plugged the USB drive in. Eg:</p><div class="codebox"><pre><code>chris@rigel:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0    40G  0 part /
├─sda3   8:3    0 254.2G  0 part /home
└─sda4   8:4    0   3.9G  0 part 
sr0     11:0    1  1024M  0 rom  

chris@rigel:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0    40G  0 part /
├─sda3   8:3    0 254.2G  0 part /home
└─sda4   8:4    0   3.9G  0 part 
sdb      8:16   1   250M  0 disk 
└─sdb1   8:17   1   250M  0 part 
sr0     11:0    1  1024M  0 rom  </code></pre></div><p>HTH</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 12 Feb 2022 17:19:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34601#p34601</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34592#p34592</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Andre4freedom wrote:</cite><blockquote><div><p>... know that dd is a disk-dumper, a block-copying program ...</p></div></blockquote></div><p>Yes, I&#039;m aware of that.</p><p>But the drive is 300G and the image I dumped into it is 7.2G.</p><p>The problem at hand, at least with TestDisk 7.1, is that (even if it says so) it does <em>not</em> write the partition structure to the drive.&#160; &#160;<br />I think it&#160; has to do with the *.iso structure, no idea if it can be changed.</p><div class="quotebox"><cite>Andre4freedom wrote:</cite><blockquote><div><p>... dd program starts to copy block by block, from the beginning.</p></div></blockquote></div><p>Yes, I&#039;m also aware of that.<br />But at7.2G + 1 block, it would have&#160; stopped copying.</p><div class="quotebox"><cite>Andre4freedom wrote:</cite><blockquote><div><p>... reality can be hard.</p></div></blockquote></div><p>And painful. 8^/</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 12 Feb 2022 13:26:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34592#p34592</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34590#p34590</link>
			<description><![CDATA[<p>Hello,<br />please know that dd is a disk-dumper, a block-copying program, that acts on physical devices (like disks, partitions etc). If you give a file-name as output device it will write the blocks to that file. If the output device is partition or a disk, then for heavens sake you will have the contents of that input file (the iso image) on your partition or device. Even if you manage to recover the superblock or some inodes from you original filesystem, the blocks pointed to will still contain copied blocks from your source-device (or file). The dd program starts to copy block by block, from the beginning. man dd helps....<br />Sorry, but reality can be hard.</p>]]></description>
			<author><![CDATA[dummy@example.com (Andre4freedom)]]></author>
			<pubDate>Sat, 12 Feb 2022 11:05:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34590#p34590</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34589#p34589</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... done this once or twice,</p></div></blockquote></div><p>Hmm ...<br />Nice club we belong to.</p><p>TestDisk has saved my hide once or twice.<br />But I had never before had to face such a screw up. </p><p>I dd&#039;id the *iso file to a data HDD drive instead of dd&#039;ing it to the USB stick. 8^/</p><div class="codebox"><pre><code>~$ sudo dd if=/home/user/Downloads/chimaera_amd64_desktop-live.iso of=/dev/sdg1 bs=1M</code></pre></div><p>I&#039;ve realised that this happened because I used <span class="bbc">lsblk</span> to re-check the USB drive&#039;s asigned letter.</p><p>This instead of checking it with <span class="bbc">gparted</span> as I <em>always</em> do.<br /><em>Big</em> mistake ...</p><p>For some reason the USB drive <span class="bbu">did not mount</span>.<br />As a result of that, /dev/sdg1 ended up being assigned to the data HDD drive drive instead of the USB drive.</p><p>I knew (from the last time I plugged it in) that the USB drive mounted at /dev/sdg1, so when I saw it in the <span class="bbc">lsblk</span> printout, I assumed everything was all right.</p><p>Obviously, I did not notice that the size was 279.4G instead of 7.2G.&#160; &#160; &#160;<br />Had I checked with <span class="bbc">gparted</span>, this would have not happened.</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>Generally just chose the last superblock before the trouble began.</p><div class="codebox"><pre><code>superblock 884736, blocksize=4096 [300Gb]</code></pre></div></div></blockquote></div><p>No idea how to do that.<br />Would you mind explaining how to&#160; do it?</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... used photorec to recover files...<br />... but the names are all machine-like.</p></div></blockquote></div><p>Indeed ...<br />A real mess.<br />See my previous post.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 12 Feb 2022 11:03:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34589#p34589</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34588#p34588</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Plentyn wrote:</cite><blockquote><div><p>... create a backup of the drive with dd ...</p></div></blockquote></div><p>That would mean a 300Gb image.<br />I have no drive to hold that, all my drives are 300Gb.</p><div class="quotebox"><cite>Plentyn wrote:</cite><blockquote><div><p>Then you might ...<br />... horrible hand work, I can tell you from experience. ;-S</p></div></blockquote></div><p>I tried again with TestDisk 7.1 from a Knoppix USB.<br />No dice.</p><p>It will <em>not</em> write to the drive. 8^|</p><p>I also tried my luck with photorec.</p><p>I was able to &quot;recover&quot; (a way of putting it) a huge mess of numbered folders filled with numbered files, some with the proper extension, a great many with the wrong extension but viewable, many without any extension and an absolutely <em>huge</em> amount of files with the *.dwg (AutoCAD) extension. </p><p>A real mess ...<br />So, yes.<br />Horrible hand work.</p><div class="quotebox"><cite>Plentyn wrote:</cite><blockquote><div><p>Parts of the inode table might be salvageable.<br />See <a href="https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout" rel="nofollow">https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout</a></p></div></blockquote></div><p>I&#039;ll have a look.<br />Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 12 Feb 2022 10:38:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34588#p34588</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34584#p34584</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Hello:</p><p>For whatever reasons (from carelesness to a USB drive with ID issues) I ended up dd&#039;ing an *.iso image on to a 300Gb HDD containing relatively important stuff. I say relatively because I cannot exactly recall what was there.</p><p>[Please don&#039;t ask about the backup ...]</p><p>So I went to see what the testdisk 7.0 utility had to say with respect to the screwed up drive (/dev/sdf):</p><div class="codebox"><pre><code>---
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER &lt;grenier@cgsecurity.org&gt;
http://www.cgsecurity.org

TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
--- snip ---
&gt; Disk /dev/sdf - 300 GB / 279 GiB - HITACHI HUS153030VLS300
---</code></pre></div><p>As expected TestDisk detected an Intel/PC partition which I selected:</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - HITACHI HUS153030VLS300

Please select the partition table type, press Enter when done.
&gt;[Intel  ] Intel/PC partition
--- snip ---

Disk /dev/sdf - 300 GB / 279 GiB - HITACHI HUS153030VLS300
     CHS 36472 255 63 - sector size=512</code></pre></div><p>I then selected Analyse but it found this:</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - CHS 36472 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

No ext2, JFS, Reiser, cramfs or XFS marker
 1 * Linux                    0  32 33 36472 225 41  585934848
 1 * Linux                    0  32 33 36472 225 41  585934848</code></pre></div><p>I then selected [Quick Search] and waited as it found the only partition (primary/300Gb) the drive had:</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - CHS 36472 255 63
     Partition               Start        End    Size in sectors
&gt;* Linux                    0  32 33 36472 225 41  585934848 [300Gb]   &lt;- black fg on green bg ...   =^D

Structure: Ok.  Use Up/Down Arrow keys to select partition.   &lt;-- Says it is OK ...   =^D
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 299 GB / 279 GiB</code></pre></div><p>I did not go for the [Deeper Search] option because I knew it was only one partition on the drive.</p><p>So I went ahead and selected [Write] to write the partition structure to the disk, confirming with (Y).</p><p>It (apparently) wrote the partition and informed me that I had to reboot:</p><div class="codebox"><pre><code>You will have to reboot for the change to take effect.

&gt;Ok</code></pre></div><p>After rebooting I see that the drive is <em>still</em> an <span class="bbc">isoimage</span> and that <em>nothing</em> was written to the drive.<br />Maybe because *.iso images are RO?</p><p>So I went to [Advanced] Filesystem Utils to see what it was about.</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - HITACHI HUS153030VLS300
     CHS 36472 255 63 - sector size=512

 [ Analyse  ] Analyse current partition structure and search for lost partitions
&gt;[ Advanced ] Filesystem Utils
--- snip ---</code></pre></div><p>I got this:</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - CHS 36472 255 63

     Partition                  Start        End    Size in sectors
&gt; 1 * Linux                    0  32 33 36472 225 41  585934848

 [  Type  ] &gt;[Superblock]  [*ist]  [Image Creation]  [  Quit  ]
                    Locate ext2/ext3/ext4 backup superblock</code></pre></div><p>I first tried the [*ist] option but that went badly:</p><div class="codebox"><pre><code> [  Type  ]  [Superblock] &gt;[ *ist ]  [Image Creation]  [  Quit  ]
                              List and copy files

Support for this filesystem hasn&#039;t been enable during compilation.</code></pre></div><p>So I tried with the [Superblock] option and got this:</p><div class="codebox"><pre><code>Disk /dev/sdf - 300 GB / 279 GiB - CHS 36472 255 63

     Partition                  Start        End    Size in sectors

  Linux                    0  32 33 36472 225 41  585934848 [300Gb]
superblock 819200, blocksize=4096 [300Gb]
superblock 884736, blocksize=4096 [300Gb]
superblock 1605632, blocksize=4096 [300Gb]
superblock 2654208, blocksize=4096 [300Gb]
superblock 4096000, blocksize=4096 [300Gb]
superblock 7962624, blocksize=4096 [300Gb]
superblock 11239424, blocksize=4096 [300Gb]
superblock 20480000, blocksize=4096 [300Gb]
superblock 23887872, blocksize=4096 [300Gb]
superblock 71663616, blocksize=4096 [300Gb]

To repair the filesystem using alternate superblock, run
fsck.ext4 -p -b superblock -B blocksize device</code></pre></div><p>This is where I loose footing, way out of my depth.</p><p>Anyone know how to solve this problem?</p><p>I assume (?) that the partition and it&#039;s contents is recoverable by writing the partiton structure to the drive.</p><p>But TestDisk was not able to do that and I have no idea as to what to do to get it done.</p><p>Not to mention all that superblock/alternate superblock stuff.</p><p>I&#039;d appreciate some input on this.</p><p>Thanks in advance,</p><p>A.</p></div></blockquote></div><p>Hi, I&#039;ve done this once or twice, </p><p>Generally just chose the last superblock before the trouble began.</p><div class="codebox"><pre><code>superblock 884736, blocksize=4096 [300Gb]</code></pre></div><p>I have also used photorec to recover files... but the names are all machine-like.</p><p>regards, Glenn</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 11 Feb 2022 22:52:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34584#p34584</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34583#p34583</link>
			<description><![CDATA[<p>Whatever you do, create a backup of the drive with dd first.</p><p>Then you might use debugfs, pointing it at one of the remaining superblocks. As the inode table is probably history, you will have to use pattern search for anything you find worthwhile to scrap from the disk. This is horrible hand work, I can tell you from experience. ;-S</p><p>EDIT: as I darkly remembered, FS layout has changed - which is a good news. Parts of the inode table might be salvageable. See <a href="https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout" rel="nofollow">https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Plentyn)]]></author>
			<pubDate>Fri, 11 Feb 2022 21:29:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34583#p34583</guid>
		</item>
		<item>
			<title><![CDATA[Re: Severe damage to ext4 filesystem - advice needed]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34569#p34569</link>
			<description><![CDATA[<p>Write a copy of the super block to the drive, even if you lose what was overwritten by the .iso file, you should be able to recover the rest to copy to another disk.</p><p><a href="https://ngelinux.com/how-to-view-backup-superblock-locations-on-linux-filesystem/" rel="nofollow">https://ngelinux.com/how-to-view-backup … ilesystem/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Fri, 11 Feb 2022 10:31:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34569#p34569</guid>
		</item>
	</channel>
</rss>
