Page 1 of 1

Made initrd.gz cpio file, but it won`t boot... [Solved]

Posted: Sun 11 Oct 2009, 07:34
by sunburnt
Here`s the command I used to make the initrd.gz file:

Code: Select all

find $DIR -print | cpio -o | gzip -9 > initrd.gz_NEW
I get the error: Can`t mount root file system on unknown block .............

Any ideas anyone?

Re: Made initrd.gz cpio file, but it won`t boot...

Posted: Sun 11 Oct 2009, 10:00
by Patriot
Hmmm .....

Code: Select all

find $DIR -print | cpio -o | gzip -9 > initrd.gz_NEW
That will borks the directory structure ... You need to go into the $DIR first :

Code: Select all

cd $DIR
find . | cpio -o -H newc | gzip -9 > ../initrd.gz.new

That's close enough to what my own script does ....

Rgds

Fixed: format used

._.

Posted: Sun 11 Oct 2009, 10:09
by sunburnt
Thanks Patriot, I`ll give it a go...

Posted: Sun 11 Oct 2009, 10:25
by sunburnt
Nope... Sorry to say it still has the same error! :-(
Kernel panic, can`t mount root file system on unknown block..........
I tried it on Pup400 that I`m experimenting with,
and MediaPup I`m code hacking so it won`t copy the SFS to ram (256MB).

Posted: Sun 11 Oct 2009, 12:38
by Patriot
Hmm .....

Bummer ... this copy/cut-n-paste thing sure makes for easy typo errs ... I normally specify the format too ...


Rgds

Posted: Sun 11 Oct 2009, 17:38
by sunburnt
Sorry again Patriot, I did as you suggested and checked my command line.
Yep... It`s wrong!
I`m writing this from MediaPup, my Hack: "don`t load SFS to 256MB ram" worked!
Many thanks for your help... Terry