From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpq1.tb.mail.iss.as9143.net ([212.54.42.164]:34066 "EHLO smtpq1.tb.mail.iss.as9143.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932159AbdGLKVs (ORCPT ); Wed, 12 Jul 2017 06:21:48 -0400 Message-ID: <1499862173.1356.20.camel@versatel.nl> Subject: Re: non mountable xfs with 2 primary and 2 logical From: Richard Waterbeek Date: Wed, 12 Jul 2017 12:22:53 +0000 In-Reply-To: References: <1498686205.13847.1.camel@versatel.nl> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Eric Sandeen Cc: linux-xfs@vger.kernel.org Hello Eric, linux-xfs list, I have been thinking about getting myself options first. I learned that; The [Linux] operating system, doesn't recognize all "sda" partition. But I have found a program "CG TestDisk". To avoid discuccins about that program, let me post a link to a screenshot, of what I have now. First things first, the two NTFS partitions have been restored. Then, I expect to find a 'sda5', and a 'sda6', [so that is an extended partition, containing two XFS partitions [524GB and 363GB]. The first screenshot is this program, again, to avoid discussing about that program, [CG TestDisk], my question is related to XFS. Because; I can tell, there seems to be a 'drive geometry', readable. Here is the link to the screenshot; http://www.fotobakje.nl/map/div/linux/testdisk/testdisk-correcte-weergave.png [Notice the two green 'L']. However, it is reported as being 'HPFS/ NTFS'. Now I wonder about the geometry, is it possible [and how], to calculate where mkfs.xfs, should have been written something [this is based on my expectations, I really have no real understanding of the XFS file system], so, where mkfs.xfs should have been written a [sda5 "mbr"], since I believe the SuperBlock or SuperBlocks are intact. Since you might have noticed there are five partitions in total [NTFS/ NTFS/ EXT4/ XFS/ XFS], I wonder, is there a way, I make a call to the [most] knowledgable people here, to have a "xfs- On 6/28/17 4:43 PM, Richard Waterbeek wrote: > > Hi linux-xfs mailinglist, > > > > I've recently subscribed to this list. I've seen many messages, but have > > little understading of the 'XFS' file system. I know about mkfs.xfs. > > I've benched my hardware. But, now my harddrive had a collision with the > > mbr somehow. [or something] > > > > But, now I've 'hexdumped', the first 512 bytes, [because after a > > disaterous reboot, cfdisk is now saying; "/dev/sda empty". > > If the xfs partition you lost was on extended partition sda5, > that's not at the front of the disk. It sounds like something > overwrote your partition table. > > Honestly, recreating a partition table isn't an xfs issue. > > > I'm aware of two primary and two logical partitions. I feel that I know > > the size of the first and second primary, but the xfs/ sda5 and, xfs > > sda6, are no longer appearing. I had to '#' the /etc/fstab, because it > > won't boot [long waiting]. > > > > Now I would like to restore the first 512 bytes which is the MBR. > > > > I have absolutely no understanding of -where-, "the SuperBlock" [or how > > that should be called], happens to be. > > The MBR is not the XFS superblock. sda5's XFS superblock is somewhere > much further into the disk. > > I don't think anyone here can tell you how to recreate the partitions, > because nobody knows what their exact size was. > > The XFS superblock signature is "XFSB" so you could go hexdumping the > whole disk, look for eveny-spaced occurences of that pattern, and assume > that you've found some superblocks, and work backwards from there. > > All this is essentially data recovery, getting well beyond the scope of > normal mailing-list help, though. > > -Eric > > > But, I feel that 512 bytes missing and no reason to believe a whole > > Terabyte would be "ones and/ or zero's", now, I wonder, how to restore > > this. I have not made backup of this harddrive, just an rsync, which is > > a little outdated and a bit incomplete, because difference in size of > > both drives. > > > > I might be able to create a XFS-something [from /dev/sda, for example], > > and write that with dd. > > > > But, before I would 'try this out', I would like to gain some > > understanding, of what -should- be on the first 512 bytes of a > > harddrive, besides what I have now, cfdisk is saying empty. > > > > Hoping to receive a reply, Richard, the Netherlands > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html