3

I want to check whether my root drive requires a defragmentation. If requried I am planning to do this sudo e4defrag -c /dev/<my partition> I followed this method to analyze my disk.

sudo touch /forcefsck
sudo tune2fs -c 1 /dev/<my partition>

Then I rebooted my system but its showing nothing on my reboot and directly goes to the login page. How to analyze and defrag a drive in ubuntu 16.04?

Eka
  • 3,007

1 Answers1

3

Ubuntu doesn't need disk-defragmenting

From this article:

If you’re a Linux user, you’ve probably heard that you don’t need to defragment your Linux file systems. You’ll also notice that Linux distributions don’t come with disk-defragmenting utilities. But why is that?

To understand why Linux file systems don’t need defragmenting in normal use – and Windows ones do – you’ll need to understand why fragmentation occurs and how Linux and Windows file systems work differently from each other.