Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] External Harddrive XFS "Structure needs cleaning"

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
baschni
Apprentice
Apprentice
Posts: 193
Joined: Thu Sep 08, 2005 7:17 am

[SOLVED] External Harddrive XFS "Structure needs cleani

  • Quote

Post by baschni » Fri Sep 14, 2007 5:14 pm

Hi there!
Today I got my external harddrive which I just installed and formated with XFS. Then I wanted to backup some files from other harddrives and copied it to the harddrive, about 300 GB. On the last files it suddenly said: "cp: cannot create directory ... Structure needs cleaning". What does that mean :oops: ?
Is XFS a good filesystem for external harddrives? Is it normal that these drives are shown at the /dev/sd* tree instead of /dev/hd*?

Yours
baschni
Last edited by baschni on Mon Nov 19, 2007 4:31 pm, edited 1 time in total.
Top
baschni
Apprentice
Apprentice
Posts: 193
Joined: Thu Sep 08, 2005 7:17 am

  • Quote

Post by baschni » Fri Sep 14, 2007 8:15 pm

I think i found it: XFS seems not to work with UTF8 special characters, like german letters. Is that right?
Top
baschni
Apprentice
Apprentice
Posts: 193
Joined: Thu Sep 08, 2005 7:17 am

  • Quote

Post by baschni » Fri Sep 14, 2007 9:20 pm

no it isn't ... still getting the error
Top
termite
Guru
Guru
Posts: 466
Joined: Sun May 06, 2007 1:12 pm

  • Quote

Post by termite » Fri Sep 14, 2007 11:35 pm

have you run fsck on it?
Top
Akkara
Bodhisattva
Bodhisattva
User avatar
Posts: 6702
Joined: Tue Mar 28, 2006 12:27 pm
Location: &akkara

  • Quote

Post by Akkara » Sat Sep 15, 2007 5:00 am

fsck doesn't do anything on xfs.

Use xfs_check to check whether there's a problem.

Use xfs_repair to fix it.

They are both available in sys-fs/xfsprogs

Good luck!
Top
baschni
Apprentice
Apprentice
Posts: 193
Joined: Thu Sep 08, 2005 7:17 am

  • Quote

Post by baschni » Sat Sep 15, 2007 7:52 pm

localhost surgeon # xfs_check /dev/sdf
bad magic # 0xa5000000 in inobt block 6/3
agi_count 4672, counted 0 in ag 6
agi_freecount 47, counted 0 in ag 6
bad magic? Have to fight the evil :evil:

Well, what does that mean? It's not a hardware problem, is it *hopefully*

Greetings
baschni
Top
Akkara
Bodhisattva
Bodhisattva
User avatar
Posts: 6702
Joined: Tue Mar 28, 2006 12:27 pm
Location: &akkara

  • Quote

Post by Akkara » Sat Sep 15, 2007 8:26 pm

Well, what does that mean?
It means the filesystem is somewhat corrupted. Use xfs_repair to fix it. Then check your copy to be sure your files made it over OK.

You say this is a new drive? Make sure that the cables are well-seated and if it needs an external power unit, that it is making good connection.

Does dmesg report anything unusual when trying to copy?

Sometimes an external drive will automatically spin down, and the kernel doesn't try to spin it back up. This can cause corruption if there's still buffers that need to be flushed. Similar to what's reported in this thread.

Does the drive use an external power source? If it has an option to use one, try it. Sometimes drives can overload a usb's power capability.

Or it could mean the usb port you're using is bad or maybe the drive itself is bad.
Top
baschni
Apprentice
Apprentice
Posts: 193
Joined: Thu Sep 08, 2005 7:17 am

  • Quote

Post by baschni » Sat Sep 15, 2007 8:28 pm

hehe, i found the problem^^
I just decided to switch back to ext3... when i started fdisk and noticed there were no partitions on the disk! I had created it, but i didn't quit fdisk with w...
I just formatted a partitionless disk, try that! And that explains, why i always mounted /dev/sdf and not /dev/sdf1^^
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic