A typical question asked by many new Linux users. The answer is pretty simple:
Your partitions are not being unmounted properly when you last shutdown the Linux desktop. Linux needs to shutdown properly (I’m sure this applies to Windows and Mac OS too) before powered off. If you skip this step there could be data loss.
If you are using text based session (CLI), type following command as privileged user:
shutdown -h now
OR
halt
If you are using GUI (KDE / Gnome or any other Windows Manager) click on System > Quit button. Look out for shutdown button.
Do not unplug the power supply. Also use UPS (Uninterruptible power supply) to protect data and to avoid other problems. I recommend APC ups for continuous supply of electric power.
Updated for accuracy.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 7 comments… read them below or add one }
you can also adjust file ext2/ext3 system parameters on partitions via tune2fs.
if you regularly turn off your pc, and you leave the file system defaults, the drives will fsck on a routine schedule (e.g. every 30 mounts or 120 days…).
“man tune2fs” to learn more.
Not ‘-r’ but rather ‘-h’. -r does a reboot, while -h does a halt, which should power your computer down.
Shawn, you’re exactly right. Here is a useful link how to change maximum mounts count value for filesystem: Set up mount count after system will be checked by e2fsck.
Jonathan, thanks for pointing out small issue.
Shawn, correct, but I don’t think so new user is going to play with that option.
Artem, thanks for sharing tutorial.
How can I shutdown properly an external harddrive partition with reiserfs?
i think the poweroff command work well
In Ubuntu it does routine checks every 30 mounts even if you shut down properly for maintenance.