* [gentoo-user] Fixing xfs filesystem?
@ 2005-07-09 19:20 Alexander Skwar
2005-07-10 12:55 ` Bob Sanders
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Skwar @ 2005-07-09 19:20 UTC (permalink / raw
To: gentoo-user
Hi!
A short time ago, there was a quick power outage, because of which
some of my xfs filesystems broke :(
When I call xfs_check, I get output like this:
[21:11:09 alexander@server:~] $ sudo /bin/xfs_check /dev/mapper/Crypt-daten
xfs_check: unexpected XFS SB magic number 0x00000000
xfs_check: read failed: Invalid argument
xfs_check: data size check failed
xfs_check: cannot read root inode (22)
xfs_check: cannot read realtime bitmap inode (22)
/bin/xfs_check: line 56: 14148 Speicherzugriffsfehler xfs_db$DBOPTS -i -p xfs_check -c "check$OPTS" $1
"xfs_repair" also isn't successful :(
[20:55:48 alexander@server:~] $ sudo xfs_repair /dev/mapper/Crypt-daten
Phase 1 - find and verify superblock...
bad primary superblock - bad magic number !!!
attempting to find secondary superblock...
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
...................................................................................Sorry,
could not find valid secondary superblock
Exiting now.
Is there any other way to regain the data or are they gone for
good?
PS: No, I do not have a backup. Thus the data wasn't "important"...
Still, I'd like to get a hold of the data, if possible...
Alexander Skwar
--
Kill Ugly Processor Architectures
- Karl Lehenbauer
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Fixing xfs filesystem?
2005-07-09 19:20 [gentoo-user] Fixing xfs filesystem? Alexander Skwar
@ 2005-07-10 12:55 ` Bob Sanders
2005-07-10 17:15 ` Alexander Skwar
0 siblings, 1 reply; 5+ messages in thread
From: Bob Sanders @ 2005-07-10 12:55 UTC (permalink / raw
To: gentoo-user
On Sat, 09 Jul 2005 21:20:02 +0200
Alexander Skwar <listen@alexander.skwar.name> wrote:
A short time ago, there was a quick power outage, because of which
> some of my xfs filesystems broke :(
> >
> "xfs_repair" also isn't successful :(
>
> [20:55:48 alexander@server:~] $ sudo xfs_repair /dev/mapper/Crypt-daten
> Phase 1 - find and verify superblock...
> bad primary superblock - bad magic number !!!
>
> attempting to find secondary superblock...
>
Try - xfs_repair -no /dev/hdx
And if that works, drop the "n" and fix the filesystem.
btw - Did the mount of the filesystem fail?
Bob
--
-
Are you living in the real world?
-
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Fixing xfs filesystem?
2005-07-10 12:55 ` Bob Sanders
@ 2005-07-10 17:15 ` Alexander Skwar
2005-07-12 2:40 ` Bob Sanders
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Skwar @ 2005-07-10 17:15 UTC (permalink / raw
To: gentoo-user
Bob Sanders schrieb:
> Try - xfs_repair -no /dev/hdx
[19:14:39 alexander@server:~] $ sudo xfs_repair -no /dev/mapper/Crypt-daten
unknown option -o /dev/mapper/Crypt-daten2-ShP2P
Usage: xfs_repair [-nLvV] [-o subopt[=value]] [-l logdev] [-r rtdev] devname
I assume you mean "-o assume_xfs"? I already tried that - didn't work :(
> btw - Did the mount of the filesystem fail?
Sure :((
Alexander Skwar
--
Obviously I was either onto something, or on something.
-- Larry Wall on the creation of Perl
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Fixing xfs filesystem?
2005-07-10 17:15 ` Alexander Skwar
@ 2005-07-12 2:40 ` Bob Sanders
2005-07-16 6:34 ` Alexander Skwar
0 siblings, 1 reply; 5+ messages in thread
From: Bob Sanders @ 2005-07-12 2:40 UTC (permalink / raw
To: gentoo-user
On Sun, 10 Jul 2005 19:15:48 +0200
Alexander Skwar <listen@alexander.skwar.name> wrote:
>
> > btw - Did the mount of the filesystem fail?
>
> Sure :((
>
Well, this is a real long shot; but, given that nothing sane has worked...
With fdisk/cfdisk/parted, after writing down the starting block and length,
delete the partition, and write the partition table, and exit.
Go back into whichever you used and create the partition at the exact
starting block - it should default to the correct parameters. Then write
the partition, exit, and sync.
Then run xfs_repair on the partition. It might rebuild the filesystem now that
the partition tables and inodes are back in a sane state.
Bob
-
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Fixing xfs filesystem?
2005-07-12 2:40 ` Bob Sanders
@ 2005-07-16 6:34 ` Alexander Skwar
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Skwar @ 2005-07-16 6:34 UTC (permalink / raw
To: gentoo-user
Bob Sanders schrieb:
> On Sun, 10 Jul 2005 19:15:48 +0200
> Alexander Skwar <listen@alexander.skwar.name> wrote:
>
>>
>> > btw - Did the mount of the filesystem fail?
>>
>> Sure :((
>>
>
> Well, this is a real long shot; but, given that nothing sane has worked...
>
> With fdisk/cfdisk/parted, after writing down the starting block and length,
> delete the partition, and write the partition table, and exit.
I'm using LVM. No fdisk/cfdisk/parted possible. Further, I'm running a
dm_crypt on top of the LV ("partition"). The XFS is created on top of
the dm_crpted LV.
Alexander Skwar
--
Can anyone remember when the times were not hard, and money not scarce?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-07-16 6:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-09 19:20 [gentoo-user] Fixing xfs filesystem? Alexander Skwar
2005-07-10 12:55 ` Bob Sanders
2005-07-10 17:15 ` Alexander Skwar
2005-07-12 2:40 ` Bob Sanders
2005-07-16 6:34 ` Alexander Skwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox