vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have a little project going where I have slimmed down Slackware to just below 20MB (on disk) to go onto a very specific laptop. A lot of this has been done by linking to a full busybox and removing obviously un-needed drivers. Being quite new to Linux I have gotten it as far down as I can without reading up on every single driver that comes with slackware. I now need a way of identifying every component that is loaded, linked or required so that I can start removing any drivers or modules that are never used. Are there any standalone consol apps that will create a text file listing everything loaded or running? Basically I'm trying to retrofit a very small slackware to copy onto a fat drive in as few floppies as possible that has disk access (inc USB) and network services. I know there are already some slim linuxes but they often won't work well on this laptop without recompiling etc... AND I'm having a lot of fun learning this way round... Any ideas for an app that will detect loaded modules, drivers, etc would be appreciated. Pete |
| |||
| On Thu, 21 Dec 2006 22:05:43 GMT, Pete <nospam@nospam.f--> wrote: Sorry - Should have said ZipSlack not SlackWare... >I have a little project going where I have slimmed down Slackware to >just below 20MB (on disk) to go onto a very specific laptop. A lot of >this has been done by linking to a full busybox and removing obviously >un-needed drivers. > >Being quite new to Linux I have gotten it as far down as I can without >reading up on every single driver that comes with slackware. > >I now need a way of identifying every component that is loaded, >linked or required so that I can start removing any drivers or modules >that are never used. > >Are there any standalone consol apps that will create a text file >listing everything loaded or running? > >Basically I'm trying to retrofit a very small slackware to copy onto a >fat drive in as few floppies as possible that has disk access (inc >USB) and network services. I know there are already some slim linuxes >but they often won't work well on this laptop without recompiling >etc... AND I'm having a lot of fun learning this way round... > >Any ideas for an app that will detect loaded modules, drivers, etc >would be appreciated. > >Pete |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message * nospam <Pete> writes: > Any ideas for an app that will detect loaded modules, drivers, etc > would be appreciated. lsmod(8) will give you a list of the currently loaded modules, lsof(8) will give you a list of all the currently "in use" files. -- |---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---| | Genius - Is the ability to reduce | | the complicated to the simple | |----------------------------------<steve@youngs.au.com>---| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) Comment: The SXEmacs Project <http://www.sxemacs.org> Comment: Eicq - The SXEmacs ICQ Client <http://www.eicq.org/> iEYEARECAAYFAkWLD+0ACgkQHSfbS6lLMAM8UACgr0ixpkINsD pAtpu/OoPIIjr3 0iIAoKR9zLhmfr7pJk7GcUj8nh3Lcuk7 =KJaG -----END PGP SIGNATURE----- |
| |||
| Steve Youngs <steve@youngs.au.com> wrote: > * nospam <Pete> writes: > > Any ideas for an app that will detect loaded modules, drivers, etc > > would be appreciated. > > lsmod(8) will give you a list of the currently loaded modules, lsof(8) > will give you a list of all the currently "in use" files. Maybe something like "find / -atime +10" would also be useful. That command would show all files that hasn't been used in the last 10 days. However, it assumes that the files are on a file system which has support for the access time stamp on files. FAT is not capable of logging access time. Also, sometimes even with a file system capable of logging access time the mount option noatime is used and that makes those time stamps unusable. regards Henrik -- The address in the header is only to prevent spam. My real address is: hc8(at)uthyres.com Examples of addresses which go to spammers: root@variousus.net root@localhost |
| |||
| > Jérôme PRIOR <XXX@laposte.net> wrote: > : be carrefull, make a light kernel without knowlegment is sinonym of > : "kernel panic" (no boot). > : > carrefull -> careful > sinonym -> synonym > > oldstar -> old$chool |
| |||
| On Thu, 21 Dec 2006 23:31:27 +0100, Jérôme PRIOR <XXX@laposte.net> wrote: >> Any ideas for an app that will detect loaded modules, drivers, etc >> would be appreciated. > >lsmod > >be carrefull, make a light kernel without knowlegment is sinonym of >"kernel panic" (no boot). You know I have been so busy focusing on hacking bits out & rebooting I tend to forget about the basic stuff already inbuilt. I never really learnt to program so breaking stuff has often been the quickest way I can get to where I want. Making a light kernel will come latter. I made a heavy busybox with every option I could so I could be sure that I had everything to hand.. That'll need reducing later also. |
| |||
| On Sat, 23 Dec 2006 17:18:24 +0100, Jérôme PRIOR <XXX@laposte.net> wrote: >> Jérôme PRIOR <XXX@laposte.net> wrote: >> : be carrefull, make a light kernel without knowlegment is sinonym of >> : "kernel panic" (no boot). >> : >> carrefull -> careful >> sinonym -> synonym >> >> > >oldstar -> old$chool LOL. I smell bad too ;o) |