Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to edit the stage2.img file to fix a glitch where kickstart wont allow you to select network or hostname options. But I cant for the life of me get the damn thing mounted.

mount -o loop,ro -t cramfs stage2.img /mnt/img/

mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so

dmesg | tail results in

cramfs: wrong magic

Anyone know what would be causing this? CentOS 5

share|improve this question
Its not a cramfs; rather it is a squashfs. – Mark Wagner Nov 24 '10 at 23:37
up vote 1 down vote accepted

You don't actually have to edit the stage2.img. You can create an updates.img and this will get copied over the stuff from the regular stage2. See docs at:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.