CLI RPI: How to fdisk and defrag your flashdisk

pascalbythree

New Member
Joined
Aug 16, 2023
Messages
2
Reaction score
0
Credits
17
Hey does anoybody knows a site or command to fdisk your flashcard on your raspberry? Secondly i want to defrag it.

Anybody help? Greets, Wouter

PS: It is mounted in this enclosure. You can always ask for further explanation of my project
 

Attachments

  • WVW_Q_FORUM_PHOTO_ENCLOSURE.JPG
    WVW_Q_FORUM_PHOTO_ENCLOSURE.JPG
    73.9 KB · Views: 174


Linux doesn't need defragging, it has a sophisticated file system that stores part files in sectors, & when they amount to a full sector, are moved to their own sector, & so it goes on. Fdisk should be included, or it may be cfdisk.
 
cfdisk is a partition utility, not a repair one
 
What do you need to 'repair'?

(Quite often sudo apt-get --fix-broken install will sort things out.)
 
If you tell us what the problem is, rather than tell us what you think the solutions might be, it tends to go quicker and easier. In your defense, it's not all that easy to write a good support question.

 

Members online


Top