Discussion:
bad primary superblock - bad magic number
Philipp H
2002-12-22 16:46:23 UTC
Permalink
Hello!

Today I reinstalled my gentoo system... so I have a new kernel version 2.4.19-xfs-r2 instead of 2.4.19-xfs-r1!
But now, I am unable to mount my home partition!!! :(

plinux011 root # losetup -a
/dev/loop/0: [0008]:375 (/dev/hdc7) offset 0, AES128 encryption

plinux011 root # mount /dev/loop/0 /home/phil -t xfs
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems

plinux011 root # xfs_repair /dev/loop/0
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.

Any iedeas? Please help me!

MrIch
--
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze
Eric Sandeen
2002-12-23 03:06:17 UTC
Permalink
I have no idea what gentoo uses for xfs code, so I'm not sure what
to tell you. Very odd that it couldn't even find a backup superblock.

For starters, you're certain that /dev/hdc7 is an xfs filesystem?

Try xfs_db /dev/hdc7 and type:

xfs_db: sb 0
xfs_db: p

and see what it gives you, that way we can see what the primary
superblock looks like.

-Eric
Post by Philipp H
Hello!
Today I reinstalled my gentoo system... so I have a new kernel version 2.4.19-xfs-r2 instead of 2.4.19-xfs-r1!
But now, I am unable to mount my home partition!!! :(
plinux011 root # losetup -a
/dev/loop/0: [0008]:375 (/dev/hdc7) offset 0, AES128 encryption
plinux011 root # mount /dev/loop/0 /home/phil -t xfs
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
plinux011 root # xfs_repair /dev/loop/0
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.
Any iedeas? Please help me!
MrIch
--
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr
Powered by Outblaze
Philipp H
2002-12-23 08:15:24 UTC
Permalink
Yesterday evening, I booted from a Knoppix Live CD... Knoppix supports loop AES encryption too!

So I set up the loop device and mounted the partition successfully! Then I copyed everything to a backup partition
and recreate ( on gentoo) the XFS filesystem (mkfs.xfs) and everything is fine...

I have absolutely no idea why the old xfs partition was not "mountable"!

Very suspect for me... but now I am happy to have my data back!

----- Original Message -----
From: Eric Sandeen <***@sgi.com>
Date: Sun, 22 Dec 2002 21:06:17 -0600 (CST)
To: Philipp H <***@linuxmail.org>
Subject: Re: bad primary superblock - bad magic number
Post by Eric Sandeen
I have no idea what gentoo uses for xfs code, so I'm not sure what
to tell you. Very odd that it couldn't even find a backup superblock.
For starters, you're certain that /dev/hdc7 is an xfs filesystem?
xfs_db: sb 0
xfs_db: p
and see what it gives you, that way we can see what the primary
superblock looks like.
-Eric
Post by Philipp H
Hello!
Today I reinstalled my gentoo system... so I have a new kernel version 2.4.19-xfs-r2 instead of 2.4.19-xfs-r1!
But now, I am unable to mount my home partition!!! :(
plinux011 root # losetup -a
/dev/loop/0: [0008]:375 (/dev/hdc7) offset 0, AES128 encryption
plinux011 root # mount /dev/loop/0 /home/phil -t xfs
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
plinux011 root # xfs_repair /dev/loop/0
Phase 1 - find and verify superblock...
bad primary superblock - bad magic number !!!
attempting to find secondary superblock...
.............................................................................................................................Sorry,
could not find valid secondary
Post by Eric Sandeen
Post by Philipp H
superblock
Exiting now.
Any iedeas? Please help me!
MrIch
--
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr
Powered by Outblaze
--
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze
Loading...