Mount initrd.img?
im trying to mount initrd to remove some modules, but unable to mount it. This is what I did:
=========================
[root@dunhill mnt]# mv initrd-2.6.9-22.EL.img initrd.gz
[root@dunhill mnt]# ls -l
total 1076
drwxr-xr-x 2 root root 4096 Feb 13 14:45 initmnt
-rw-r--r-- 1 root root 1084859 Feb 13 15:15 initrd.gz
[root@dunhill mnt]# gunzip initrd.gz
[root@dunhill mnt]# ls -l
total 2308
drwxr-xr-x 2 root root 4096 Feb 13 14:45 initmnt
-rw-r--r-- 1 root root 2346496 Feb 13 15:15 initrd
[root@dunhill mnt]# mount initrd initmnt/
mount: initrd is not a block device (maybe try `-o loop'?)
[root@dunhill mnt]# mount initrd initmnt -o loop
mount: you must specify the filesystem type
[root@dunhill mnt]# mount initrd initmnt -o loop -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
==========================
Any ideas what I'm doing wrong? I've google it, seems like all instructions were just to mount with -o loop. Thanks.
|