Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] External Harddrive XFS "Structure needs cleaning"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Fri Sep 14, 2007 5:14 pm    Post subject: [SOLVED] External Harddrive XFS "Structure needs cleani Reply with quote

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
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Fri Sep 14, 2007 8:15 pm    Post subject: Reply with quote

I think i found it: XFS seems not to work with UTF8 special characters, like german letters. Is that right?
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Fri Sep 14, 2007 9:20 pm    Post subject: Reply with quote

no it isn't ... still getting the error
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri Sep 14, 2007 11:35 pm    Post subject: Reply with quote

have you run fsck on it?
Back to top
View user's profile Send private message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Sat Sep 15, 2007 5:00 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Sat Sep 15, 2007 7:52 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Sat Sep 15, 2007 8:26 pm    Post subject: Reply with quote

Quote:
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.
Back to top
View user's profile Send private message
baschni
Apprentice
Apprentice


Joined: 08 Sep 2005
Posts: 193

PostPosted: Sat Sep 15, 2007 8:28 pm    Post subject: Reply with quote

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^^
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum