# FSCK command through system calls in C programming

**URL:** <https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127>\
**Category:** Programming\
**Created:** [July 14, 2015, 12:00pm UTC](https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127 "2015-07-14T12:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elururajesh](https://linux-tips.com/letter_avatar_proxy/v4/letter/e/ec9cab/32.png) [@elururajesh](https://linux-tips.com/u/elururajesh)\
**Post date:** [July 14, 2015, 12:00pm UTC](https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127/1 "2015-07-14T12:00:59Z")

</div>

C program to emulates file system checking utility (fsck command) using system calls.  
Usually fsck command is used for file system consistency check, using system call C program

---

<div class="post-metadata">

**Author:** ![demirten](https://linux-tips.com/user_avatar/linux-tips.com/demirten/32/64_2.png) [@demirten](https://linux-tips.com/u/demirten)\
**Post date:** [July 14, 2015, 4:57pm UTC](https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127/2 "2015-07-14T16:57:39Z")

</div>

You can look at the source code of the cut-down versions of e2fsck or fsck\_minix in busybox project:

[http://git.busybox.net/busybox/tree/e2fsprogs/old\_e2fsprogs/e2fsck.c?h=1\_23\_stable](http://git.busybox.net/busybox/tree/e2fsprogs/old_e2fsprogs/e2fsck.c?h=1_23_stable)

[http://git.busybox.net/busybox/tree/util-linux/fsck\_minix.c?h=1\_23\_stable](http://git.busybox.net/busybox/tree/util-linux/fsck_minix.c?h=1_23_stable)

---

<div class="post-metadata">

**Author:** ![elururajesh](https://linux-tips.com/letter_avatar_proxy/v4/letter/e/ec9cab/32.png) [@elururajesh](https://linux-tips.com/u/elururajesh)\
**Post date:** [July 15, 2015, 9:57am UTC](https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127/3 "2015-07-15T09:57:24Z")

</div>

I am unable to understand the code, can you guide me through system call

---

<div class="post-metadata">

**Author:** ![demirten](https://linux-tips.com/user_avatar/linux-tips.com/demirten/32/64_2.png) [@demirten](https://linux-tips.com/u/demirten)\
**Post date:** [July 15, 2015, 2:07pm UTC](https://linux-tips.com/t/fsck-command-through-system-calls-in-c-programming/127/4 "2015-07-15T14:07:21Z")

</div>

I’m not a teacher 🙂

This is not a trivial subject, you need deep understanding of several concepts and if you can’t read the code yet, you can try to improve your reading skills first.
