You are not logged in.

#1 2006-03-22 11:16:40

ToLo
Member
From: Flensburg/Germany
Registered: 2006-02-12
Posts: 36

Manually Editing the Initrd Image

hallo to everyone

after reading the arch-wiki for initrd

http://wiki.archlinux.org/index.php/Initrd

I decided to take a look inside my initramfs-2.6.15-archck.img

I'f done
cd /tmp
mkdir initrd
gunzip < /boot/initramfs-2.6.15-archck.img > initrd.img
mount -o loop initrd.img initrd

and got this message:

ioctl: LOOP_CLR_FD: Das Gerät oder die Ressource ist belegt
mount: Sie müssen den Dateisystemtyp angeben
[root@xxx tmp]#

Is this problem related to an error message I get at boot
umount couldn't umount /initrd?

Or, thats what I expect tongue , here' something wrong configurated on my system?

Any hint is welcome
greetings ToLo

Offline

#2 2006-03-22 12:04:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Manually Editing the Initrd Image

That wiki page refers to initrd images - archck uses intramfs images. They are generated in completely different ways.

I will get around to wikifying this, but in the meantime, here's the equivalent procedure for initramfs images:

- To unpack the image:

cd /tmp
mkdir my_initramfs ( or whatever you'd like to call it)
cd my_initramfs
gzip -dc < /boot/initramfs-2.6.15-archck.img | cpio -i

- To re-compress the image:

find . | cpio -o -H newc | gzip -9 > /boot/initramfs-2.6.15-archck-new.img

If you intend to manually edit your image, always re-compress it with a new name, as above. Manual editing should not be necessary, though.

Offline

#3 2006-03-22 12:32:42

ToLo
Member
From: Flensburg/Germany
Registered: 2006-02-12
Posts: 36

Re: Manually Editing the Initrd Image

thanks for your quick answer. Now I'm able to take a look inside the
initramfs-2.6.15-archck.img

My aim was to find something with a wrong path for the umount command at the end of the living of the ramfs. It doesn't seem so easy, but I take a look
around.

thanks, ToLo

Offline

#4 2006-03-22 14:50:34

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Manually Editing the Initrd Image

ToLo wrote:

thanks for your quick answer. Now I'm able to take a look inside the
initramfs-2.6.15-archck.img

My aim was to find something with a wrong path for the umount command at the end of the living of the ramfs. It doesn't seem so easy, but I take a look
around.

thanks, ToLo

Just ignore that warning about umount at the end, it's completely harmless.

Offline

Board footer

Powered by FluxBB