Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I fix a bad XFS partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mrizzo
n00b
n00b


Joined: 21 Apr 2002
Posts: 6
Location: New Jersey, USA

PostPosted: Thu Jul 11, 2002 7:55 pm    Post subject: How can I fix a bad XFS partition Reply with quote

Hi,

I installed gentoo 1.2 with the gentoo-soures and xfs on one of my partitions. Now when I boot, I get a kernel panic because it can't find init. So I used the cd to boot up and manually mount each partition. Well it turns out the my / partition (/dev/hda2) which is xfs now contains no files at all. If I do df -h on it, it shows that 130 MB is being used. but an ls -la reveals that there are indeed no files.

Does anyone know of a way to recover this xfs partition. I just finished compiling everything (kernel, glibc, KDE 3,. etc....) and really want to start running a Neverwinter Nights server on it. I don't want to have to spend another 72 hours compiling again.

Thanks
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 8:00 pm    Post subject: Reply with quote

Fsck it! :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 8:01 pm    Post subject: Reply with quote

Actually, there is no fsck utility for XFS; it's checked and fixed automagically each mount.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 11, 2002 8:02 pm    Post subject: Reply with quote

xfs_repair
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 8:04 pm    Post subject: Reply with quote

Yeah, but that's not fsck, it's repair. ;)
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
mrizzo
n00b
n00b


Joined: 21 Apr 2002
Posts: 6
Location: New Jersey, USA

PostPosted: Fri Jul 12, 2002 1:01 pm    Post subject: Reply with quote

I tried xfs_repair but to no avail. Upon further investigation it looks like the drive is bad.

Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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