I'm new here, hope I'm posting in the right section...
Well, I got the initrd.img of debian 3.16.0-4-686-pae (downloaded and burned whole iso). If I boot from disk or lan initrd is ok, everything boots just fine.
The problem begins when I want to add a driver to the initrd. I take the file initrd.img and I extract it. I only get 1 directory named kernel. After searching around I found a thread with the same issue here and tried his solutions (Thread link: Why is it that my initrd only has one directory, namely, 'kernel'?).
I tried with cpio which only extracted 1410 blocks, after dd from 1410 to end of archive I get an archive (if it matters, it's only readable if I name it name.tar.gz ) that contains all folders and everything but it is somewhat damaged, some files there are sized 0 (sh and bash for example which makes any initrd I'll try to create from this useless and unbootable with eror: Sh found but cant be executed. Same with shell).
If I use the binwalk solution on the same thread I managed to extract an archive from the initrd but that archive only contains 3 folders (bin, etc, lib) with out all of the files. (No sh or bash for example).
Note - According to binwalk the initrd contains:
1 - ascii archive
1 - xz compressed data
30 - gzip compressed data archive which according to binwalk are
from NTFS file system (NT) NULL date: Thu jan 1 00:00:00 1970
All of them are less than 1MB.
So pretty much I'm unable to add a driver to this initrd.img file because of it's format... Any help would be appreciated, if more information is needed let me know I'll do my best to provide it.
Tl;dr I got weird initrd.img file I can't seem to be able to add a driver to.
Binwalk output: http://tinypic.com/r/iz8292/8
Note that I editted the file, the beginning of it are files from the ASCII archive, all other things I've removed are the date of the gzip compressed archives, all of which are, as stated: Thu 1 Jan 00:00:00 1970 (I believe that since this is epoch date, maybe it is unable to read their real date for some odd reason...)
Any help would be appreciated, let me know if more information is needed i'll do my best to provide it, thanks :)
Forgot to mention - all the commands I'm running and using are on ubuntu 3.16.0-30-generic (I think it's trusty)