Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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: http://fedoraproject.org/wiki/Anaconda/Updates

share|improve this answer

Your Answer

 
discard

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.