LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-13-2018, 10:05 AM   #1
nullbyte_91
LQ Newbie
 
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled
Tool to list all unused files which are not used by any process in Embedded target - Linux? Ask Question


Is there any existing Linux tool/util to list all the unused files(Linux root file system files), which are not used by any process either Kernel space nor user space process?

For example, My embedded target is running with my custom Linux system which I build from scratch. I really want to understand, Are all the files used?? If I able to find this list, I can reduce my Root file system size.

I found many tools like Filelight, BleachBit, GtkOrphan, Cruft and so on. But, Those tools really help to find the unused users data, not an operating system root file system.
 
Old 03-13-2018, 02:59 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
not to my knowledge, no.

i know from experience that this can be mildly infuriating; even the leanest installation carries some unnecessary stuff.

what i recommend is to build your distro up from the leanest possible base, so that _you_ decide what's on it.
several distros offer choices very early in the installation process, long before the question of even wanting a GUI arises: archlinux, gentoo, ....
but if you're fairly new to all this i recommend starting with a debian "netinst" (it's called net install, but really means "a very basic yet usable system").
 
Old 03-13-2018, 04:13 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You can write a small program using inotify that will monitor all files in the system for open or execution. You run it on your system for some time and then print its output and compare with the list of all files. You then get the list of those that weren't opened.
 
Old 03-14-2018, 05:54 PM   #4
rocq
Member
 
Registered: Jan 2013
Location: Netherlands
Distribution: XUbuntu
Posts: 57

Rep: Reputation: Disabled
We use the yocto project which uses openembedded. It's a perfect environment to create your own custom distro for any major known target (x86, ARM, ...).

The key in openembedded is that you supply so-called recipes to the bitbake build tool. Part of those recipes is to specify on which other recipes or tools a certain recipe depends on. For example, if you build an application that needs another library to build/run, you need to specify this in the recipe so that bitbake knows these dependencies are to be included in the rootfs as well. This way only the apps/libs you really need are build and included in the rootfs image.
 
Old 03-15-2018, 02:53 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052Reputation: 6052
Quote:
Originally Posted by Mara View Post
You can write a small program using inotify that will monitor all files in the system for open or execution. You run it on your system for some time and then print its output and compare with the list of all files. You then get the list of those that weren't opened.
and then delete those? i don't think so.

i know op didn't say it explicitely, but that's what i understood is what they really want: get rid of "cruft".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to use grep command along with ls to list only certain files in target location sriram91 Linux - General 3 03-09-2015 12:58 PM
How to use Xdelta tool on my embedded target... teabagindia Linux - Newbie 1 01-19-2010 10:39 AM
installing directfb / library files on embedded target that doesn't have make coffeecoffee Linux - Newbie 2 03-17-2009 02:05 AM
tool to sync files considering free space left on target lentschi Linux - Software 2 03-25-2008 04:54 AM
Is there any tool avialable to talk with a target machine in embedded system?? payal_shah Linux - Networking 2 05-10-2007 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration