Skip to content
Codeable Magazine

Codeable Magazine

5 Tips to Solve Linux & Unix System Hard Disk Problems

James, March 3, 2017

Taking the backup is a daunting task as it may lead to lost files, folders or accidental hard disk formatting. Ever your hard disk crash or leading to poor stability term? If the backup failed because of storage full or write problem to disk then following are some other ways to solve Linux & Unix system hard disk problems. These tips are based on Linux & UNIX server system to diagnose the hard disk problems by using the command line. Following methods or tips can protect against hard disk failure and backup of heterogeneous. Scroll down to pay attention to following tips to troubleshoot Backup problems.

Linux & Unix system hard disk problems

5 Tips to solve Linux & Unix system hard disk problems like disk full or can’t write to the disk: –

  1. No space left: –

In case, if your hard disk is full on Linux-Unix system and you are getting a message error of storage full then following fallocate command can help you for run out of the disk space. Follow the steps –

  • First, type $df command to find out the information of total space, used space and free space.
  • Now compress the files or logs by using tar or Gzip command.
  • Delete unwanted files using rm command.
  • Or move unwanted files to external disk by using rsync command
  • Find out the largest file which is opened but deleted from system to truncate it by using the truncate command.
  1. Use of cron command for daily basis backup: –

Find out one of the best ways to good backup is the toughest task, but Corn command is best to solve Linux & Unix system hard disk problems by taking daily basis backup. Make a rsync command from the previous section at 3:30 pm and edit root corn table by adding following command line –

30 3 * * * rsync -a –delete source/ destination/

Save the file and that’s all. The backup will happen at every 3:30 pm and root will get an e-mail.

  1. Dump or tar command: –

These utilities were actually designed for writing a tape media. If you are using backup in incremental order, it may flow to backward with rsync command. The following summary is the difference of rsync and Dump or tar command to make it clear.

  • If your Monday backup is full with Dump or tar command then it will contain everything with incremental backup and small changes as well.
  • If your Monday backup is full with rsync command it will contain only the most recent changes. Just like it will contain only those files that are changed between Saturday or Sunday.

So, dump or tar method are still popular for per week backup than rsync command.

  1. Is your hard drive is going to die?

Something going wrong, then you can check the errors to solve Linux & Unix system hard disk problems by using SMARTctl command. Following is the syntax to monitor this command smartctl -a /dev/DEVICE

or you can use the disk utility command to get backup same information on regular basis.

  1. Read only mode: –

You may be fed up with getting an error while you are creating or saving a file to your Linux-UNIX system. Check the reason by using the following command –

$ cat > file

-bash: file: Read-only file system

Opps your file is in read-only mode. You can follow the following steps to fix this problem.

  • Run mount command to find out which file is in read-only mode.
  • Remount the filesystem in read- write mode by using mount -o remount,rw /ftpusers/tmp command.
Linux Resources Technology LinuxTips & TricksUnix

Post navigation

Previous post
Next post

Related Posts

Business

9 Best Free Online Invoice Creator for Small Businesses

November 9, 2016September 15, 2025

Most of the time it has been observed that companies spends a lot of time in creating invoices and sending them. There are human resources involved in the huge and hectic works. Companies also need to keep track of these data as they need them for future references. To solve…

Read More
Resources

9 Free Online Template Generators for Websites or Blogs

April 24, 2017September 15, 2025

Internet is flooded with websites. Why wouldn’t it be? After all, a website is very important for creating online presence and reaching a wider audience. A website is quite important for the success of a business, no matter how big or small it is. Two things that are very important…

Read More
Business

5 Awesome Open Source Backup Software for Linux and UNIX like Systems

January 18, 2017September 15, 2025

Backup software is always important for personal computers or servers to prevent permanent data loss. Backup tools or softwares are important especially for System Administrators, who work with large amount of data. Searching for Backup software especially for Linux and UNIX systems? Good backup software has the ability to recover…

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

©2026 Codeable Magazine | WordPress Theme by SuperbThemes