xfs
[Top] [All Lists]

RE: Mount: Structure needs cleaning

To: Brian Foster <bfoster@xxxxxxxxxx>
Subject: RE: Mount: Structure needs cleaning
From: tom mason <tom_in_canada@xxxxxxxxxxx>
Date: Sun, 12 Oct 2014 22:51:49 +0000
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Importance: Normal
In-reply-to: <DUB113-W8015EC9E74D26138852F2FB6AF0@xxxxxxx>
References: <1413103408756-35026.post@xxxxxxxxxxxxx>,<20141012142008.GB35667@xxxxxxxxxxxxxxx>,<DUB113-W9BCC0D296AF7CD5D9D02FB6AF0@xxxxxxx>,<DUB113-W8015EC9E74D26138852F2FB6AF0@xxxxxxx>
and now xfs_check:

root@ubuntu:~# xfs_check /dev/sdc2
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_check.  If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.


> Date: Sun, 12 Oct 2014 10:20:08 -0400
> From: bfoster@xxxxxxxxxx
> To: tom_in_canada@xxxxxxxxxxx
> CC: xfs@xxxxxxxxxxx
> Subject: Re: Mount: Structure needs cleaning
>
> On Sun, Oct 12, 2014 at 01:43:28AM -0700, tommason wrote:
> > Hi,
> >
> > First up - my knowledge of linux is pretty sparse - I've used it a few times
> > before, so please be gentle!
> >
> > I've had a neil poulton network space for some time now - it freaked out a
> > while ago and I managed to rig it up to a Ubuntu liveCD via a SATA dock and
> > rescue the files.
> >
> > This has now happened again - the drive would not get out of a cycle and was
> > not spinning properly. Bring out the dock and liveCD (this time Knoppix).
> > All good. This time however as I eagerly copied files to another drive (a
> > USB powered lacie rugged thing) and left it overnight i woke up to an error.
> > I was copying around 500GB in a few diffferent chunks. The first error it
> > reported was I think error 15? mount structure needs cleaning...


> Logs? Kernel version? etc.

Hey Brian,
Apologies! I'm pretty new to all this so you'll have to walk me through it if possible - how do I check the logs?

- Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
- xfs_repair version 3.1.9


>
> http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F
>
> > I then tried with a Ubuntu liveCD - same error. This is maybe where I made a
> > bit of an error of my own. In an attempt to shake it out of it's stupor I
> > 'stupidly' plugged it into windows and opened up the disk utility (sorry I'm
> > generally mac based) and deleted in total 5 partitions (3x8mb, 1x250odd mb &
> > 1x600mbish partition) This left the partition that I assumed contained all
> > my files: a 920GB partition. Tried to look at it again on Linux & (both
> > Knoppix & Ubuntu) and the error message had changed slightly. It now reads:
> > "Error mounting /dev/sdc2 at
> > /media/ubuntu/e8b90eb2-8718-4964-939d-8a2b899b68bd: Command-line `mount -t
> > "xfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdc2"
> > "/media/ubuntu/e8b90eb2-8718-4964-939d-8a2b899b68bd"' exited with non-zero
> > exit status 32: mount: Structure needs cleaning"


> To be clear, you've deleted partitions other than the partition of
> interest? I suppose that shouldn't effect things either way, but I'm not
> really sure what the disk utility might do. It might be worth checking
> whether 'file -s <device>' still identifies the partition as an XFS
> filesystem..?


Yes it's a NAS drive and so I assume had some kind of proprietary OS on the other partitions (this is where i might have messed up by deleting?!) I'm pretty sure that the drive in bold below (sdc2) is the one I'm after which is xfs...

ubuntu@ubuntu:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME   FSTYPE     SIZE MOUNTPOINT LABEL
sda             596.2G           
├─sda1 vfat       200M            EFI
├─sda2 hfsplus  491.8G            Macintosh HD
├─sda3 hfsplus  619.9M            Recovery HD
└─sda4 ntfs     103.6G           
sdc             931.5G           
├─sdc1              1K           
└─sdc2 xfs      930.6G           
sr0    iso9660    981M /cdrom     Ubuntu 14.04.1 LTS amd64
loop0  squashfs 938.7M /rofs

& This:

ubuntu@ubuntu:~$ sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x34873486

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      409639      204819+  ee  GPT
/dev/sda2          409640  1031659623   515624992   af  HFS / HFS+
/dev/sda3      1031659624  1032929167      634772   ab  Darwin boot
/dev/sda4   *  1032929280  1250263039   108666880    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1734c26c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2   976773167   488386583    b  W95 FAT32

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb06a2add

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63     2008124     1004031    5  Extended
/dev/sdc2         2008125  1953520064   975755970   83  Linux


>
> Beyond that, I'd suggest to capture and post the logs of the failed
> mount and perhaps the output of 'xfs_repair -n <dev>.' This will attempt
> a dry-run (e.g., no modifications) check and repair of the filesystem.

Apologies again but you'd have to walk me through the process of exactly what to type in - as I say I'm really not very experienced with Linux/ubuntu & terminal!
Cheers!
Tom

> Brian
>
> > This drive has all my audio and video stored on it! Any help to move me
> > toward a solution would be much appreciated!
> >
> > Thanks for your time...
> >

> > xfs@xxxxxxxxxxx
> > http://oss.sgi.com/mailman/listinfo/xfs
<Prev in Thread] Current Thread [Next in Thread>