Hi, I'm trying to optimize debian's boot speed. Atm I'm trying to load as few modules as possible. But after booting up I always end up have ext3 ext2 fat vfat .. modules loaded (seen in lsmod). I don't have a need for those as I use reiserfs. I don't have them in my /etc/modules and I don't have discover or hotplug running at boot.
Why do those modules load ??
By the way, here's what I wrote on optimizing performance and boot time in debian (for those looking for some tips, guided by the topic..):
3.24 Speeding it up
The first 3 points can reduce boot time a lot. The other points can be tried but don't change that much in my experience.
Also read Tuning a debian system:
3.24.1 Minimise modules loaded at startup
In /etc/modules. I have only five: the reiserfs module, Ethernet card driver module, sound card module, videocard module and mouse module.
3.24.2 Minimise services loaded at startup
A handy tool is rcconf or sysvconfig. I run only the necessary services.
3.24.3 Minimise startup script actions
/etc/rcS.d/ contains the startup scripts. I have taken away the script that runs portmapper, as also the script that restores nvi editor sessions. They are useless to me.
I also removed hotplug and discover scripts. Instead of letting those detect the modules needed I put all moduules I need in /etc/modules. To know which modules you need become root and type "lsmod". Then copy all those modules running to /etc/modules. But it has to be in the reversed order, so the one at the bottom of the lsmod list should be at the top of /etc/modules.
Whenever a file is accessed in Linux, the current time and date are recorded. This is not usually needed, and you can gain a small amount of speed (which won't show up using hdparm -Tt) by disabling this option. This is done by editing your /etc/fstab file, and where on your hard drive line it says defaults, change it to defaults,noatime.
Install dash (it was named ash before). Make /bin/sh a simlink to /bin/dash. Normally it's linked to bash, which is slower. /bin/sh is the shell used to start up and shutdown the computer. Using dash will make it faster.
You can also make dash your user shell with 'chsh'. That will save some more ram, but I advice you then to use bash in [xae]term/rxvt. For example: 'aterm -e bash'. Dash is no good interactive shell.
Change the number of virtual consoles from 6 to 2 by adding a # in front of the lines.
Here you can also change CTRL+ALT+DELETE behaviour to shut the pc down instead of rebooting (if you'd ever want to).