How do I defrag a fat32 mount on Linux?

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I have Slackware 11 running on my laptop and I rarely boot into Windows anymore. However use a big fat32 partition since it will make my life easier if anything happens to linux. As that is my primary storage space, how do I defrag it when I'm in linux?
 

pcgeek11

Lifer
Jun 12, 2005
22,256
4,944
136
Boot into Windows, run the defragmentation utility on that partition and then reboot back into Linux.

pcgeek11
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Tar it all up and restore it, I don't think anyone's written a defrag tool for vfat yet.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
I don't really have the space needed to relocate or compress it all up somewhere and move it back. I understand how that'd worked, but just don't have the space to do it.

Would it be possible to vmware a windows session and access that partition in windows to defrag it, while in linux? :)
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
So copy the files to new names one by one, it'll take longer and won't have the same effect as a full defrag but it won't hurt either.

The VMWare idea is possible, you can give VM's access to raw partitions, but I've never tried it.
 

aceO07

Diamond Member
Nov 6, 2000
4,491
0
76
Originally posted by: Nothinman
So copy the files to new names one by one, it'll take longer and won't have the same effect as a full defrag but it won't hurt either.

The VMWare idea is possible, you can give VM's access to raw partitions, but I've never tried it.

Do you know if linux would have a fit if I was defraging the raw partition while it was still mounted under linux?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Do you know if linux would have a fit if I was defraging the raw partition while it was still mounted under linux?

Most definitely, I'd even be surprised if VMWare let you allocate a raw partition to a VM that was mounted.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: Nothinman
Do you know if linux would have a fit if I was defraging the raw partition while it was still mounted under linux?

Most definitely, I'd even be surprised if VMWare let you allocate a raw partition to a VM that was mounted.

I'm pretty certain VMWare WILL allow it, but it is definately NOT a good idea unless you are using some sort of clustering services. In your case, you will definately want to umount the partition before allocating it to the virtual machine otherwise you could really bork it up.