LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2014, 05:00 AM   #1
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Rep: Reputation: Disabled
Unhappy how to check filesystem


hi ,

i made bootable CF having four partition. first partition is image partition . sometime other partitions are corrupted . so i have to check id other partitions are corrected or not . i don't know how to write shell script . i know the chkfsys utility . but inside the is how to write if and else condition .

regards,
ganesan palanisamy
 
Old 07-22-2014, 09:15 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ganesan_p View Post
hi ,
i made bootable CF having four partition. first partition is image partition . sometime other partitions are corrupted . so i have to check id other partitions are corrected or not . i don't know how to write shell script . i know the chkfsys utility . but inside the is how to write if and else condition
There are THOUSANDS of very easily-found tutorials on shell scripting...including one in my posting signature. You can start there if you need help writing a shell script. And as in your OTHER threads about corrupted file systems, fsck is what's typically used under Linux...but AGAIN, you are using a commercial piece of software...which means you are PAYING FOR SUPPORT. Have you called them??

Post what you've written/tried on your own, and we will be happy to help you, but we aren't going to write your shell scripts for you.
 
Old 07-23-2014, 02:56 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I'd wonder why you have failures too.


Can shutdown and force it. # shutdown -rF now


Just check it every time you boot and don't try any if else then statements.

http://www.linuxfromscratch.org/lfs/...ts/apds09.html
 
  


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
Filesystem check lrt Linux - Newbie 2 02-05-2010 12:09 PM
[SOLVED] Filesystem check failed. samsom Linux - Newbie 13 01-24-2010 04:56 PM
Filesystem consistency check. swamprat Linux - Newbie 1 03-29-2008 12:30 PM
Filesystem Check Every Boot springshades Linux - Software 4 08-16-2005 12:25 PM
Check filesystem twantrd Linux - Newbie 4 03-26-2003 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

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