Flashről törölt file helyének felaszabadítása

Flashről történő törlés után az IOS csupán megjelöli a file-t hogy le lett törölve, azonban a helyét nem szabadítja fel. A megoldás a squeeze parancsban rejlik.


Router#sh flash

System flash directory:
File Length Name/status
1 17748616 c2600-is-mz.123-15a.bin
2 15257044 c2600-is-mz.122-13.T5.bin
[33005788 bytes used, 24352 available, 33030140 total]
32768K bytes of processor board System flash (Read/Write)

Router#delete flash:c2600-is-mz.122-13.T5.bin
Delete filename [c2600-is-mz.122-13.T5.bin]?
Delete flash:c2600-is-mz.122-13.T5.bin? [confirm]
Router#sh flash

System flash directory:
File Length Name/status
1 17748616 c2600-is-mz.123-15a.bin
2 15257044 c2600-is-mz.122-13.T5.bin [deleted]
[33005788 bytes used, 24352 available, 33030140 total]
32768K bytes of processor board System flash (Read/Write)

Router#squeeze flash:
Squeeze operation may take a while. Continue? [confirm]
squeeze in progress... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Rebuild file system directory...
Squeeze of flash complete

Router#sh flash

System flash directory:
File Length Name/status
1 17748616 c2600-is-mz.123-15a.bin
[17748680 bytes used, 15281460 available, 33030140 total]
32768K bytes of processor board System flash (Read/Write)