See Test If Linux Server SCSI / SATA / SSD Hard Disk Going Bad page for detailed instuctions on the smartctl command. ![]() $ sudo smartctl -attributes -log=selftest /dev/sda Once the test completed, run the following to see if disk is failing Check for the overall health of your disk: Hence, it is best to check if the disk is failing badly. Linux file system enters in read-only mode when it detects disk or filesystem problems. To fix this problem, simply remount the file system in read-write mode on a Linux based system:Īnother example, from my FreeBSD 9.x server to remount / in rw mode: Run mount command to find out if the file system is mounted in read-only mode: You may end up getting an error such as follows when you try to create a file or save a file: # works on Linux/Unix/BSD/OSX etc all # > "/path/to/the/deleted/file.name" # works on Linux only # > "/proc/PID-HERE/fd/FD-HERE"Ģ – Is the file system is in read-only mode? However, these tools needs to be pre-installed on the box. You can also use the duf command, ncdu command, or pydf command tools that provides disk usage information on your server or desktop. dev/sda10 4.0G 4.0G 0 100% /ftpusers/tmpįrom the df command output it is clear that /dev/sda10 has 4.0Gb of total space of which 4.0Gb is used. The first step is to run the df command to find out information about total space and available space on a file system including partitions:įilesystem Size Used Avail Use% Mounted on In this example, I’m running fallocate command and my system run out of disk space: $ fallocate -l 1G test4.img fallocate: test4.img: fallocate failed: No space left on device When the Disk is full on Unix-like system you get an error message on screen. Let us see how tips on how to solve Linux and Unix hard disk problems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |