Category Archives: Linux

modprobe FATAL could not load /lib/modules/2.6.29.4/modules.dep – Fix!!

So I installed Backtrack 4 Pre on my shiny new Asus Eee PC 900 the other day and to be fair everything was going well. I used Unetbooting and a spare 8gb Flash Dirve and installed the Distro onto sdb (The secondary 16Gb Flash Drive). No problems apart from the aforementioned error on boot.

modprobe FATAL could not load /lib/modules/2.6.29.4/modules.dep

Some people have reported that packing and unpacking the module does the trick, so after a short stint at the prompt I was hoping this would be fixed:

cd /boot
cp initrd.img-2.6.29.4 initrd-2.6.29.4.old (Just making a backup)
depmod -a
update-initramfs -k 2.6.29.4 -c
cd /tmp
gzip -dc /boot/initrd.img-2.6.29.4| cpio -id
touch lib/modules/2.6.29.4/modules.dep
find ./ | cpio -H newc -o > /boot/initrd.img-2.6.29.4.new
gzip /boot/initrd.img-2.6.29.4.new
cd /boot
mv initrd.img-2.6.29.4.new.gz initrd.img-2.6.29.4

Didn’t fix the problem unfortunately, but the I stumbled across a forum post over at Remote-Exploit and the following rather simple cammand fixed the whole shebang:

update-grub

And now it works like a treat! Original Post at the RE Forums here.

Backtrack Linux – Setting up your internet (Wired Ethernet)

Many people struggle to set up their internet on Linux in general (especially if you only have the command line to help you, no GUI’s here folks). There are a few commands you will need to get your head around and I would suggest at least a working knowledge of networks and network topology, it is completely beyond the scope of this article to explain networking and networks. For this example we will use a very simple network, the commands you will need are the following:

ifconfig
iwconfig
dhclient

Lets assume that your running in a DHCP network to make our lives even easier (this also applys if your running Linux in something like VMWare), so, tap in:

ifconfig

‘ifconfig’ is the Interface configuration program, it will list all available interfaces on your hardware, in my case it shows lo (local loopback) & eth0 (ethernet), we are of course after eth0. So we now issue:

dhclient eth0

We are telling linux to attempt to automagically attach itself to the network and search for a DHCP server and assign itself an IP address – if this command will not run (has an error), chances are that you are not logged in as a root user, so issue:

sudo dhclient eth0

And enter your credentials when prompted, assuming you are in a small simple network, boot your browser of choice and away you go. Next up connecting Wirelesly ;)

Backtrack Linux – Changing the root password

The first thing to remember about a fresh install of Backtrack are the default installed credentials for the root account:

root
toor

Nice and simple – right? But sometimes (often in my case) you’ll want to change the root password (especially as you’ll be spending so much time as a root user). You do remember the username and password you used when you installed backtrack right? So, open up a terminal and type the following:

sudo su
whoami
passwd

‘sudo su’ will change you into the Super User account, your system will ask you for your password (current password of the account you are using). ‘whoami’ will tell you the account you are using – should be ‘root’. Last but not least ‘passwd’ will let you change the root password, enter it twice and away you go.