Problem with grub & new kernel

Ed Greshko Ed.Greshko at greshko.com
Fri May 26 22:55:16 UTC 2006


sasa wrote:
> "Ed Greshko" wrote:
>> Could you tell me the output of
>> "file initrd-2.4.22-1.2115.nptlcustom.img"?
> 
> #file initrd-2.4.22-1.2115.nptlcustom.img
> initrd-2.4.22-1.2115.nptlcustom.img: gzip compressed data, from Unix,
> max compression

You have to uncompress it before you can mount it.  Remember we went
through this steps.

1. copy it from /boot to /tmp and add the .gz extension.
2. gunzip the file.
3. After that you should see something similar to:
   [egreshko at gangster tmp]$ file initrd-2.4.21-40.ELsmp.img
   initrd-2.4.21-40.ELsmp.img: Linux rev 1.0 ext2 filesystem data
4. Then you can mount it...
   [root at gangster tmp]# mount -o loop initrd-2.4.21-40.ELsmp.img /mnt
   [root at gangster tmp]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc6             77940192  27503864  46477112  38% /
/dev/hdc1               202220     67293    124487  36% /boot
none                    367400         0    367400   0% /dev/shm
/tmp/initrd-2.4.21-40.ELsmp.img
                          7745       348      6997   5% /mnt

5. Then you can go to /mnt and see the file system....
[root at gangster tmp]# cd /mnt
[root at gangster mnt]# ls
bin  dev  etc  lib  linuxrc  loopfs  proc  sbin  sysroot

6. You should mount the non-custom initrd at some other mount point.
Maybe make a directory called /mnt1 and mount it there...and then
compare what is in the non-custom file system with your custom one.  I'm
guessing that the difference will be in the lib directory.

Ed





-- 
Federal grants are offered for... research into the recreation
potential of interplanetary space travel for the culturally disadvantaged.




More information about the fedora-list mailing list