* can't mount xfs partition
@ 2007-03-01 15:48 M Kili
2007-03-01 16:38 ` Eric Sandeen
0 siblings, 1 reply; 3+ messages in thread
From: M Kili @ 2007-03-01 15:48 UTC (permalink / raw)
To: xfs
Background:
Windows XP installation overwrote the MBR with broken partition
layout. I used gpart to figure out the partition table. Primary
partitions were detected correctly and can be mounted, unfortunately
all important data are in logical partitions, most of which are XFS.
The beginings of the partitions were found, but the ends might be a
little off, I don't know.
If I try to mount any of the XFS partitions, I get this message:
mount: /dev/hda5: can't read superblock
I dded this partition to a file and run xfs_repair with this result:
# xfs_repair -f hda5.img
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- agno = 8
- agno = 9
- agno = 10
- agno = 11
- agno = 12
- agno = 13
- agno = 14
- agno = 15
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- clear lost+found (if it exists) ...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- agno = 4
- agno = 5
- agno = 6
- agno = 7
- agno = 8
- agno = 9
- agno = 10
- agno = 11
- agno = 12
- agno = 13
- agno = 14
- agno = 15
Phase 5 - rebuild AG headers and trees...
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- ensuring existence of lost+found directory
- traversing filesystem starting at / ...
- traversal finished ...
- traversing all unattached subtrees ...
- traversals finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done
------------------------------------------------
xfs_check doesn't give any message, and still, the image can't be
mounted, with the same error:
# mount -o loop hda5.img /mnt/
mount: /dev/loop0: can't read superblock
Output of fdisk print partition table (5, 6, 7, and 9 are XFS):
Disk /dev/hda: 320.0 GB, 320072933376 bytes
86 heads, 15 sectors/track, 484606 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 63 37752742 18876340 83 Linux
/dev/hda2 37752750 37833073 40162 83 Linux
/dev/hda3 37833075 48323504 5245215 83 Linux
/dev/hda4 48323505 625142447 288409471+ 5 Extended
/dev/hda5 48323521 87389120 19532800 83 Linux
/dev/hda6 87409666 560228673 236409504 83 Linux
/dev/hda7 560459656 581660935 10600640 83 Linux
/dev/hda8 581681521 582741795 530137+ 82 Linux swap / Solaris
/dev/hda9 582741811 625116634 21187412 83 Linux
Is there any help?
Another question: I'm running now on one older hd, however, it has
some read errors. Is it possible to use the already discovered
Thanks, Marek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't mount xfs partition
2007-03-01 15:48 can't mount xfs partition M Kili
@ 2007-03-01 16:38 ` Eric Sandeen
[not found] ` <29a617af0703011611p4ed51bb4g63b1ec0da42143bc@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Eric Sandeen @ 2007-03-01 16:38 UTC (permalink / raw)
To: M Kili; +Cc: xfs
M Kili wrote:
> xfs_check doesn't give any message, and still, the image can't be
> mounted, with the same error:
> # mount -o loop hda5.img /mnt/
> mount: /dev/loop0: can't read superblock
look at dmesg output, see what it says.
Does "-t xfs" help?
-Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't mount xfs partition
[not found] ` <29a617af0703011611p4ed51bb4g63b1ec0da42143bc@mail.gmail.com>
@ 2007-03-02 0:13 ` Eric Sandeen
0 siblings, 0 replies; 3+ messages in thread
From: Eric Sandeen @ 2007-03-02 0:13 UTC (permalink / raw)
To: M Kili, xfs
M Kili wrote:
> On 3/1/07, Eric Sandeen <sandeen@sandeen.net> wrote:
>> M Kili wrote:
>> > xfs_check doesn't give any message, and still, the image can't be
>> > mounted, with the same error:
>> > # mount -o loop hda5.img /mnt/
>> > mount: /dev/loop0: can't read superblock
>>
>> look at dmesg output, see what it says.
>
> [17206988.072000] SGI XFS with ACLs, security attributes, realtime,
> large block numbers, no debug enabled
> [17206988.072000] SGI XFS Quota Management subsystem
> [17206988.080000] attempt to access beyond end of device
> [17206988.080000] hda5: rw=0, want=39086080, limit=39065600
> [17206988.080000] I/O error in filesystem ("hda5") meta-data dev hda5
> block 0x25467ff ("xfs_read_buf") error 5 buf count 512
> [17206988.080000] XFS: size check 2 failed
>
> I guess I must repartition, am I right?
Yep, looks like your partition endpoint is just slightly too small.
-Eric
>>
>> Does "-t xfs" help?
>
> no
>
>>
>> -Eric
>>
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-02 0:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 15:48 can't mount xfs partition M Kili
2007-03-01 16:38 ` Eric Sandeen
[not found] ` <29a617af0703011611p4ed51bb4g63b1ec0da42143bc@mail.gmail.com>
2007-03-02 0:13 ` Eric Sandeen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox