LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-12-2009, 05:29 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Question My Linux installation keeps corrupting


I have installed mandriva 2010 on my system.but after a day or two the Computer upon restart gives erroe in verbose mode and asks to run fsck manually.
Please If anyone could halp
 
Old 11-12-2009, 05:31 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ
What errors?
Did you run fsck?
 
Old 11-12-2009, 08:58 AM   #3
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by repo View Post
Welcome to LQ
What errors?
Did you run fsck?
yes but it didnt fixed anything
 
Old 11-12-2009, 10:48 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
yes but it didnt fixed anything
What are the errors?
Seems to me the filesysem is corrupted, or the drive is dying.
 
Old 11-12-2009, 11:01 AM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Don't wait...

It may not be that your HDD is failing, but considering the consequences and in the lack of an alternative cause of the problem, you should immediately copy any files on the HDD that you need and want.

After you have a backup, you might try SMART. It must be activated in your BIOS and on the HDD. If you can't use SMART, google for a HDD utility from the HDD maker. There is HUTIL for Samsung, SeaTools for Seagate, plus others. The utilities should be available on both a bootable floppy and a CD ISO.

Last edited by thorkelljarl; 11-12-2009 at 11:12 AM.
 
Old 11-12-2009, 12:56 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Welcome to LQ!

How did you perform the 'fsck'?

Yes, if possible backup that hdd.

 
Old 11-13-2009, 03:56 AM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
What is your procedure for shutting down the computer (and what hapens)?
 
Old 11-13-2009, 05:56 AM   #8
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
sir this usually happens after an improper shutdown.and the error says some thing regarding partition failed to mount
 
Old 11-13-2009, 06:00 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
sir this usually happens after an improper shutdown.and the error says some thing regarding partition failed to mount
Why is there a an improper shutdown?
Does the system freezes, so you need to use the power button?
 
Old 11-13-2009, 09:33 AM   #10
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Power cuts!
 
Old 11-13-2009, 09:43 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
After a power outage, when I used to use a non-journaled filesystem like Ext2, I usually had a long fsck ahead of me after the power came back. Sometimes the automatic fsck upon bootup would do it, but often enough, I had to use

e2fsck -v -y /dev/XXX

to restore the partition. As you would see on the fsck man page, the -v means "verbose" and the -y means "answer YES to all questions", which has the potential to do something you don't want, but otherwise, you must sit there and press YES or NO many times until the process is complete. Using the -y option has never caused me grief, though on rare occasions, I have lost a file or two to the /Lost+Found folder (from where you can recover them if you like).

If you have frequent power cuts that are causing frequent bad shutdowns, and a UPS is not a cost effective solution, if I were you I would investigate the possibility of installing your Mandriva OS onto a journaled filesystem such as Ext3 or Ext4. Though Ext4 is the newest Linux filesystem to hit "production" and/or heavy testing stage, it has been working without error for me now for several months or more with my Slackware system, AND if I suffer a bad shutdown, the reboot is usually painless with only an occasional very short fsck lasting just a few seconds.

Do keep in mind though, as mentioned by earlier posters above, if there is cause OTHER THAN power outages that may lead you to suspect a failing HDD, please backup any important data before you lose it!

Best of success,
Sasha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing dual boot (linux and windows)without corrupting windows anirudh.iitm Linux - Newbie 7 06-30-2006 02:16 PM
Fat32 formatting under linux corrupting under windows? sausagejohnson Linux - Hardware 17 11-21-2004 09:31 PM
DNS value corrupting melanieS Mandriva 0 10-09-2004 03:31 AM
Windows corrupting Linux geyes30 Linux - General 2 03-24-2004 08:44 AM
Windows ad Linux "corrupting" each other? Richey General 22 03-07-2004 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration