Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stupid mistake with fsck
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
Xamien
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2005
Posts: 88

PostPosted: Wed Oct 10, 2007 8:11 pm    Post subject: Stupid mistake with fsck Reply with quote

Hey guys,

I'll go ahead and start this off by admitting that I did something really stupid. In my defense, I'd been awake since 4:40 that morning, but still...

I ran into that errno:30 after I left it to re-emerge system files (it needed maintenance and cleaning up), looked it up and saw a remark about fsck and ran it right on the logged-in system. (Yes, without logging in on a livecd or ANYTHING. Yes, moronic.) I don't know fully, yet, if this has resulted in a corrupted filesystem since I had to go to work right after finding out the horror.

So... take pity upon a penitent geek and give some advice about perhaps recovering from this? Also, any advice about running diagnostics on the drive itself would be much appreciated. It's a Maxtor 120GB drive.

Thanks in advance,
X
Back to top
View user's profile Send private message
Xamien
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2005
Posts: 88

PostPosted: Thu Oct 11, 2007 12:11 am    Post subject: Reply with quote

le bump
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Thu Oct 11, 2007 2:59 am    Post subject: Reply with quote

If the system is still powered up, remount all affected partitions read-only. Once remounted, copy any important files off the system.

If the system is not up, do not boot it from the hard drive until you are sure your data is in a good state.

In either case: what filesystem are you using? What is the output of sfdisk -l your-hard-drive? Which partitions did you fsck?
Back to top
View user's profile Send private message
Xamien
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2005
Posts: 88

PostPosted: Thu Oct 11, 2007 4:44 am    Post subject: Reply with quote

Thanks for replying. I actually started searching forums about recovering the lost+found file but it appears that trying that with as many files got sent to it was going to take too long even for someone as patient as I tend to be. The main drive (which was hda3) had the grace to put itself into read-only mode automatically. I checked the rest of the drive and was able to actually recover the -really- important files from my home directory and tar them up to the backup 10GB I have. Most fortunate considering it was those files I was most stressed out about. It's a pain that I had to drop the etwolf pk3s I had accumulated but that's not a big deal, really. Even managed to save my .wine folder, too!

So for now, I've basically cleared out hda3 and plan to do a complete reinstall. Only problem is that I need to actually check hda to make sure there isn't a drive failure of any sort (never had any prior to this but that doesn't necessarily mean anything). I am curious to know if it'll be safe to rebuild the system using distcc. Can I expect a sane system or should I not risk it?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Fri Oct 12, 2007 3:03 am    Post subject: Reply with quote

I recommend against using any tools which were installed on hda to assist in the rebuilding. I doubt that any of them would produce subtly corrupt output, but it is possible that some of them depend on files which were destroyed by the fsck. That dependency would make the build fail, requiring your intervention to get it working again. Since you intend to reinstall, it would be simpler just to treat all packages on hda as suspect.

I know of no problems using distcc to build a system, so once you have one rebuilt, it should be safe to begin distributing the load.
Back to top
View user's profile Send private message
blueflame
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 107
Location: Singapore

PostPosted: Fri Oct 12, 2007 6:26 am    Post subject: Reply with quote

What I don't understand is why fsck actually let you run it on a mounted filesystem. Shouldn't it give you an error message or at least a warning? :?
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