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: 55


camtaf

Active Member
Joined
May 14, 2023
Messages
345
Reaction score
220
Credits
2,307
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.
 

Brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
4,944
Reaction score
3,310
Credits
36,789
cfdisk is a partition utility, not a repair one
 

camtaf

Active Member
Joined
May 14, 2023
Messages
345
Reaction score
220
Credits
2,307
What do you need to 'repair'?

(Quite often sudo apt-get --fix-broken install will sort things out.)
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
10,673
Reaction score
9,168
Credits
88,613
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


Latest posts

Top