Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-01-2005, 08:29 PM
|
#1
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Rep:
|
File System Integrity Check
Hi everybody.
I am a new proud owner of a Linux Router/Firewall at my home. And I have to thank very much the Linuxquestions.org community and a special thank to Mara (moderator) for her patience and support.
But with every new solution, problems come along. And here it comes!!!
My Linux firewall doesn´t work on nobreaks (they are far too expensive here in Brazil for me to by one on a home basis), so sometimes the connection can drop because of electrical failures/blackouts... So, now I´m worried about the integrity of my file system and would like to know how can I monitor/fix file system inconsistencies?
Is there anything that works sort of like windows 95/98 scandisk?
I worry a lot about this because of the time and work put on to my router for it to work. So I would like to periodically (let´s say on a weekly basis, for a start) check for the integrity of my file system. :-)
My file system is ext3, by the way.
Thanks again!!! 
Palula Brasil.
|
|
|
08-01-2005, 08:31 PM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
|
|
|
08-01-2005, 09:14 PM
|
#3
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Original Poster
Rep:
|
Okay, I´ve already read about fsck, but the thing is that when I run it, this message appears:
WARNING!!! Running E2FSCK on mounted filesystem may cause SEVERE filesystem damage.
Is this a joke? I´m a newbie!!! Of course I will not run that thing on my file system.
Can anybody help?
|
|
|
08-02-2005, 12:50 AM
|
#4
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
You shouldn't run fsck on a mounted filesystem, like the message says (if you remount the filesystewm read only, though, it should be OK). Fsck will give you an option to run at boot if there's an unclean shutdown, before filesystems are mounted, if you choose, Generally, if you have a journalling filesystem like ext3 or reiserfs the chance of corruption is greatly lessened.
|
|
|
08-02-2005, 01:29 AM
|
#5
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
Buy an in-line UPS device. They are expensive but they are much better than stand-by UPS devices. An in-line UPS always draws its power from the battery while the battery is getting charged, so the computer power supply will get constant power. A stand-by UPS is just there waiting to make its move to switch from AC to battery. When it switches, there is a slight pause. Many power supplies have problems with this, so the computer could have some stability problems.
|
|
|
08-02-2005, 06:37 AM
|
#6
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Original Poster
Rep:
|
How do I unmount my hdx´s?
I mean... What would be the command line?
umount /dev/hda
umount /dev/hdb
And how do I remount it... To work just as it works when I boot? I took a look at fstab and that is just really awkward, full of codes etc...
Thank You.
|
|
|
08-02-2005, 09:35 AM
|
#7
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
Palula,
You can't unmount your /dev/hda- because this is where your system is running!
But fsck needs the disk unmounted......
The solution is to go to a console, become root and enter
shutdown -Fr
This will shutdown the computer, Force a filesystem check at the next boot and reboot for you. fsck will run as the system starts up.
HTH
|
|
|
08-02-2005, 10:37 AM
|
#8
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Original Poster
Rep:
|
Thank you very much.
That was exactly what I was looking for. :-)
|
|
|
08-02-2005, 11:08 AM
|
#9
|
Member
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669
Rep:
|
The ext3 filesystem is a journalizing filesystem If its unmounted uncleanly it recovers lost data from the journal. It will fsck itself after 30 days or so many mounts so you should'nt worry too much but forcing fsck wont hurt.
|
|
|
08-03-2005, 08:29 PM
|
#10
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Original Poster
Rep:
|
Well I did the "shutdown -Fr 0" and it started to work and did fine. It worked just like when the machine is booted unclean. And after that first part is started to show a lot of text I have never seened it. It´s really a lot of text/messages etc...
But the system halted at some place and this message appeared:
Recursive die failure, output supressed
<0> Kernel panic - not syncing: Fatal exception in interrupt.
What should I do?
Thanks.
|
|
|
08-03-2005, 08:35 PM
|
#11
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
It would help if you could paste a few lines of text above the kernel panic. Also try cold booting the system.
|
|
|
08-05-2005, 06:33 AM
|
#12
|
Member
Registered: May 2005
Location: Brazil
Distribution: Fedore Core 3
Posts: 138
Original Poster
Rep:
|
It worked!!!!!
For some reason when I put: shutdown -Fr 0 it goes all wrong (should work too). But when I put shutdown -Fr now, it works.
But I still need some help regarding the messages... My FC3 is in portuguese so I´ll try to write in an understandable way. I have two partitions in my Linux.
1 - Root partition (with all system files etc.);
2 - Home partition (all particular user files).
When I run reboot with fsck, the system show these messages:
Checking filesystem root 3.7% (non-contiguous).
Checking filesystem home 9.1% (non-contiguous).
Is this correct? I think the best choice would be to have nothing non-contiguous.
Another question is how can I put fsck to run on the next boot automatically, if the previous boot has been done unclean. It asks like this: Press a key in five second to run fsck. Or something like that. I want it to run imperatively. 
|
|
|
08-06-2005, 06:49 PM
|
#13
|
Member
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669
Rep:
|
Checking filesystem root 3.7% (non-contiguous).
Checking filesystem home 9.1% (non-contiguous).
I wouldn't worry about that I've never seen ext3 filesystem go above 10 percent fragmentation. I think that is what it was before fsck repaired it.
|
|
|
08-07-2005, 04:07 AM
|
#14
|
Member
Registered: Jun 2005
Distribution: Debian testing, Kubuntu 5.04
Posts: 104
Rep:
|
If you don't mind reinstalling everything, I'd reccommend Debian. It has very fast boot and shutdown times, and it is very stable. Also, the filesystem has never been so corrupted that it took more than 30 seconds or so to repair it. I'd also reccommend ReiserFS. It's journal is much more comprehensive, it is more effieient and it is faster, too.
|
|
|
All times are GMT -5. The time now is 01:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|