How to analyze and defragment drive in ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












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?










share|improve this question























  • Have you considered downloading Bleachbit from the Ubuntu Software Centre?
    – Graham
    Mar 31 at 14:38










  • I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
    – Eka
    Mar 31 at 14:41











  • I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
    – sudodus
    Mar 31 at 15:26






  • 1




    Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
    – Panther
    Mar 31 at 17:19






  • 1




    sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
    – Panther
    Mar 31 at 17:27














up vote
1
down vote

favorite












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?










share|improve this question























  • Have you considered downloading Bleachbit from the Ubuntu Software Centre?
    – Graham
    Mar 31 at 14:38










  • I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
    – Eka
    Mar 31 at 14:41











  • I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
    – sudodus
    Mar 31 at 15:26






  • 1




    Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
    – Panther
    Mar 31 at 17:19






  • 1




    sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
    – Panther
    Mar 31 at 17:27












up vote
1
down vote

favorite









up vote
1
down vote

favorite











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?










share|improve this question















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?







16.04 partitioning fsck defrag






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 31 at 14:36

























asked Mar 31 at 14:28









Eka

92761735




92761735











  • Have you considered downloading Bleachbit from the Ubuntu Software Centre?
    – Graham
    Mar 31 at 14:38










  • I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
    – Eka
    Mar 31 at 14:41











  • I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
    – sudodus
    Mar 31 at 15:26






  • 1




    Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
    – Panther
    Mar 31 at 17:19






  • 1




    sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
    – Panther
    Mar 31 at 17:27
















  • Have you considered downloading Bleachbit from the Ubuntu Software Centre?
    – Graham
    Mar 31 at 14:38










  • I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
    – Eka
    Mar 31 at 14:41











  • I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
    – sudodus
    Mar 31 at 15:26






  • 1




    Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
    – Panther
    Mar 31 at 17:19






  • 1




    sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
    – Panther
    Mar 31 at 17:27















Have you considered downloading Bleachbit from the Ubuntu Software Centre?
– Graham
Mar 31 at 14:38




Have you considered downloading Bleachbit from the Ubuntu Software Centre?
– Graham
Mar 31 at 14:38












I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
– Eka
Mar 31 at 14:41





I did this sudo bleachbit -c --preset for clearing my system. But it exits after sometime with a error filesystem root has 99 MB left. Tried unchecking some options and rerun bleachbit but the problem still exists. Thats why I am not going to go bleachbit way
– Eka
Mar 31 at 14:41













I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
– sudodus
Mar 31 at 15:26




I suggest that you try to repair the root file system. Boot from another drive, for example an Ubuntu install drive (USB or DVD) and run an e2fsck command according to this link. Scroll down to 'Repair linux file systems with linux tools'.
– sudodus
Mar 31 at 15:26




1




1




Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
– Panther
Mar 31 at 17:19




Looks like the problem is your partition is full . Significant fragmentation is very rare in linux
– Panther
Mar 31 at 17:19




1




1




sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
– Panther
Mar 31 at 17:27




sudo fsck.ext2 -fn /dev/sdXY will show fragmentation. The problem probably is your partition is full
– Panther
Mar 31 at 17:27










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










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.







share|improve this answer
















  • 1




    Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
    – Panther
    Mar 31 at 19:12










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020848%2fhow-to-analyze-and-defragment-drive-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










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.







share|improve this answer
















  • 1




    Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
    – Panther
    Mar 31 at 19:12














up vote
3
down vote



accepted










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.







share|improve this answer
















  • 1




    Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
    – Panther
    Mar 31 at 19:12












up vote
3
down vote



accepted







up vote
3
down vote



accepted






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.







share|improve this answer












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.








share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 31 at 17:20









WinEunuuchs2Unix

35.8k759133




35.8k759133







  • 1




    Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
    – Panther
    Mar 31 at 19:12












  • 1




    Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
    – Panther
    Mar 31 at 19:12







1




1




Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
– Panther
Mar 31 at 19:12




Although very rare one can see significant fragmentation in Linux. This happens when the partition is full and the op suggests this may be the case
– Panther
Mar 31 at 19:12

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020848%2fhow-to-analyze-and-defragment-drive-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491