Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5232  / 3 Years ago, sun, may 30, 2021, 1:18:16

After running Disk Usage Analyzer on the file system, I am looking for ways to remove unneeded files on my Live USB.




  1. Firstly, is there anything I can do about the files in the casper archive? For example, I noticed that there exists a directory /rofs, which I'm sure stands for read-only file system, the one stored in the read-only casper file, so I can't removing anything in it. Specifically, I removed LibreOffice yet /rofs/usr/lib/libreoffice takes up 222 MB of precious storage, as does Thunderbird and a bunch of other things.


  2. What can I clear regarding the apt program files. /var/lib/apt/lists takes up 115 MB, and /var/cache/apt (not the archives directory) is 139 MB. The /var/cache/apt folder is made up of several ~35 MB files, and I don't know if they are all necessary:



    ubuntu@ubuntu:/var/cache/apt$ du -ah
    4.0K ./archives/partial
    0 ./archives/lock
    28K ./archives
    4.0K ./typescript
    34M ./srcpkgcache.bin
    31M ./srcpkgcache.bin.ifDvIA
    34M ./pkgcache.bin.3IHVIK
    32K ./pkgcache.bin.h2Zwz7
    36M ./pkgcache.bin
    133M .

  3. I already clear browsing data regularly when I use chrome, so I don't think I have to deal with that much. However, I see that there are cache folders for other programs, and I wish to know if there is a safe way to remove the cache.




Generally, my question revolves around why I have only less than 300 MB on my 4.0 GB USB thumb drive when I only use it for browsing and simple development in python.



Your help is appreciated.


More From » live-usb

 Answers
2

You would need to make a custom .iso to modify those files.



See : Can I build a Ubuntu ISO from a manifest?



The root file system is compressed to fit on the iso, but casper mounts the file system ro (rofs).



You can use persistence , but persistence takes up even more space (cow).



How did you make your usb ? The iso should take up only 700 Mb or so, do you have other data stored on the usb ? Persistence ?


[#39795] Monday, May 31, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
turhizz

Total Points: 82
Total Questions: 106
Total Answers: 96

Location: South Korea
Member since Mon, Dec 6, 2021
2 Years ago
turhizz questions
;