Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
Herbert Xu wrote: On Tue, Aug 14, 2001 at 09:11:04PM -0400, Jerome Acks Jr wrote: I tried the -386 kernel package. I no longer get "cramfs: wrong magic". Please give 2.4.8 a go. I installed kernel-image-2.4.9-386_2.4.9-1. This kernel package boots with no problem. Thanks again for suggestions and help. -- Jerome
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Thu, Aug 16, 2001 at 08:24:30PM +1000, herbert wrote: > > --/etc/mkinitrd/scripts/dma (must be executable)-- > #!/bin/sh > > cd $INITRDDIR > > mkdir proc > > cat > scripts/dma.sh <<- EOF Better insert modprobe ide-probe-mod here. > mount -nt proc proc /proc > echo using_dma:0 > /proc/ide/hda/settings > echo using_dma:0 > /proc/ide/hdb/settings > umount -n /proc > EOF -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Thu, Aug 16, 2001 at 12:11:43AM -0400, Jerome Acks Jr wrote: > > In one of your earlier messages, you mentioned turning off DMA. I've > done some searching with google, looked at documentation for kernel and > lilo, and I'm not quite sure how to do that. Would I need to intall > hwtools and hdparm and put put add an hdparm line into > /etc/init.d/whtools? Or is there a way to do this passing parameters > through lilo at boot? Make sure you've got initrd-tools >= 0.1.10. Then create these files (watch out for the tabs): --/etc/mkinitrd/exe-- /bin/mount /bin/umount --/etc/mkinitrd/scripts/dma (must be executable)-- #!/bin/sh cd $INITRDDIR mkdir proc cat > scripts/dma.sh <<- EOF mount -nt proc proc /proc echo using_dma:0 > /proc/ide/hda/settings echo using_dma:0 > /proc/ide/hdb/settings umount -n /proc EOF -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
Herbert Xu wrote: >On Tue, Aug 14, 2001 at 09:11:04PM -0400, Jerome Acks Jr wrote: > >>I tried the -386 kernel package. I no longer get "cramfs: wrong magic". >> > >Please give 2.4.8 a go. > I tried kernel-image-2.4.8-386_2.4.8-1.deb. I get same result as with 2.4.7-386 kernel. The boot hangs at or right after the partition check. Once in a while, bootup messages give one additional line: "INIT: version 2.78 booting" The boot looks like it always hangs during or right after the partition check of my second hard drive which is where all my linux partitions are. I guess that may mean that probing the ide drives may be causing some sort of problem. In one of your earlier messages, you mentioned turning off DMA. I've done some searching with google, looked at documentation for kernel and lilo, and I'm not quite sure how to do that. Would I need to intall hwtools and hdparm and put put add an hdparm line into /etc/init.d/whtools? Or is there a way to do this passing parameters through lilo at boot? I'll be out of town the next five days, and won't be able to do any thing else on this until next week. Thanks for the suggestions and help. -- Jerome
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Tue, Aug 14, 2001 at 09:11:04PM -0400, Jerome Acks Jr wrote: > > > I tried the -386 kernel package. I no longer get "cramfs: wrong magic". Please give 2.4.8 a go. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
Herbert Xu wrote: On Mon, Aug 13, 2001 at 10:46:12PM -0400, Jerome Acks Jr wrote: The disk light is off. In that case please try the -386 kernel package. I tried the -386 kernel package. I no longer get "cramfs: wrong magic". The boot hangs at about the same point. The disk light is off. The last lines of the boot post are: Partition check: /dev/ide/host0/bus0/target0/lun0: [EZD] [remap 0->1] [700/255/63] p1 p2 /dev/ide/host0/bus0/target1/lun0: [PTBL] [2491/255/63] p1 p2 p3 p4 p6 p7> VFS: Mounted root (ext2 filesystem) readonly change-root: old root has d_count=2 Freeing unused kernel memory: 184k freed I tried to rebooting six times. On two of the attempts, the bootup messages ended during the partition check of the second drive with "/dev/ide/host0/bus0/target1/lun0:" Once it ended with "/dev/ide/host0/bus0/target1/lun0: [PTBL] [2491/255/63] p1 p2 p3 p4 " The other three times I got the bootup messages from VFS and change-root. -- Jerome
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Mon, Aug 13, 2001 at 10:46:12PM -0400, Jerome Acks Jr wrote: > > The disk light is off. In that case please try the -386 kernel package. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Sun, Aug 12, 2001 at 02:30:53PM -0400, Jerome Acks Jr wrote: > oop! -- I corrected a few incorrect details in my prior message > regarding the results of 2.4.7 boot partitions check and contents of my > lilo.conf file. > > I have been trying unsuccessfully to get a 2.4.7 kernel to boot. My PC > has a AMD-K6-II and runs woody. My most recent attempt used the kernel > image is from kernel-image-2.4.7-k6_2.4.7-1.i386.deb. The boot sequence > runs until the hard disk partition check and then hangs. The final part > of the boot post is: > > Partition check: > /dev/ide/host0/bus0/target0/lun0: [EZD] [remap 0->1] [700/255/63] p1 p2 > > /dev/ide/host0/bus0/target1/lun0: [PTBL] [2491/255/63] p1 p2 p3 p4 p6 p7> > cramfs: wrong magic > VFS: Mounted root (est2 filesystem) readonly > change-root: old root has d_count=2 > Freeing unused kernel memory: 184k freed I had this same problem when I tried 2.4.7 and an initrd; I decided I really wanted 2.4.7 more than I wanted an initrd so I compiled IDE support into the kernel proper. > The boot hangs at this point. Sometimes is hangs at the line "cramfs: > wrong magic" Recompile the kernel with IDE support non-modular and see what happens ... > When I boot with my 2.2.19 kernel, partition check reports: > hda: [EZD] [remap 0->1] [700/255/63] hda1 hda2 < hda5 > > hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 > > Is it normal for a 2.4.x kernels to report partitions as p1, p2, etc. > vice hda1, hda2, hdb1, etc? Uh, yeah ... it's devfs at work. You need to install devfsd if you plan to use a 2.4.x kernel and devfs > What does "cramfs: wrong magic" mean, and > does anyone have suggestions on how to fix this problem? I believe it means it can't make sense of your initrd but I'll let Herbert make the call. Cheers, -- Nathan Norman - Staff Engineer | A good plan today is better Micromuse Ltd. | than a perfect plan tomorrow. mailto:[EMAIL PROTECTED] | -- Patton pgpJpJuzitedO.pgp Description: PGP signature
Re: 2.4.7 kernel boot hangs with "cramfs: wrong magic"
On Sun, Aug 12, 2001 at 02:30:53PM -0400, Jerome Acks Jr wrote: > > Partition check: > /dev/ide/host0/bus0/target0/lun0: [EZD] [remap 0->1] [700/255/63] p1 p2 > > /dev/ide/host0/bus0/target1/lun0: [PTBL] [2491/255/63] p1 p2 p3 p4 p6 p7> > cramfs: wrong magic > VFS: Mounted root (est2 filesystem) readonly You mean ext2? > change-root: old root has d_count=2 > Freeing unused kernel memory: 184k freed > > The boot hangs at this point. Sometimes is hangs at the line "cramfs: > wrong magic" Is the disk light on at this point in time? If it is, you need to turn DMA off on your IDE disks. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
2.4.7 kernel boot hangs with "cramfs: wrong magic"
oop! -- I corrected a few incorrect details in my prior message regarding the results of 2.4.7 boot partitions check and contents of my lilo.conf file. I have been trying unsuccessfully to get a 2.4.7 kernel to boot. My PC has a AMD-K6-II and runs woody. My most recent attempt used the kernel image is from kernel-image-2.4.7-k6_2.4.7-1.i386.deb. The boot sequence runs until the hard disk partition check and then hangs. The final part of the boot post is: Partition check: /dev/ide/host0/bus0/target0/lun0: [EZD] [remap 0->1] [700/255/63] p1 p2 /dev/ide/host0/bus0/target1/lun0: [PTBL] [2491/255/63] p1 p2 p3 p4 p6 p7> cramfs: wrong magic VFS: Mounted root (est2 filesystem) readonly change-root: old root has d_count=2 Freeing unused kernel memory: 184k freed The boot hangs at this point. Sometimes is hangs at the line "cramfs: wrong magic" When I boot with my 2.2.19 kernel, partition check reports: hda: [EZD] [remap 0->1] [700/255/63] hda1 hda2 < hda5 > hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 > Is it normal for a 2.4.x kernels to report partitions as p1, p2, etc. vice hda1, hda2, hdb1, etc? What does "cramfs: wrong magic" mean, and does anyone have suggestions on how to fix this problem? My lilo.conf is: lba32 boot=/dev/hda root=/dev/hdb2 install=/boot/boot.b map=/boot/map message=/boot/bootmess.txt prompt single-key delay=20 timeout=100 vga=normal append="hdc=ide-scsi" default=linux-2.2.19 image=/vmlinuz-2.2.19 label=linux-2.2.19 read-only alias=1 image=/vmlinuz label=linux read-only initrd=/boot/initrd alias=2 #other is Windows98 boot partition other=/dev/hda1 label=dos alias=3 /boot/initrd is linked to /boot/initrd-2.4.7-k6. /vmlinuz is linked to /boot/vmlinuz-2.4.7-k6 hda contain a Windows 98 installation and fat32 partitions. hdb are my linux partitions hdc is a HP Colorado 8GB tape drive. hdd is CDROM The PC also has an Adaptec AHA2940 scsi adaptor that currently connects to my zip drive. Any ideas and suggestions would be appreciated. thanks. -- Jerome
2.4.7 kernel boot hangs with "cramfs: wrong magic"
I have been trying unsuccessfully to get a 2.4.7 kernel to boot. My PC has a AMD-K6-II and runs woody. My most recent attempt used the kernel image is from kernel-image-2.4.7-k6_2.4.7-1.i386.deb. The boot sequence runs until the hard disk partition check and then hangs. The final part of the boot post is: Partition check: /dev/ide/host0/bus0/target0/lun0: [EZD] [remap 0->1] [700/255/63] p1 p2 /dev/ide/host0/bus0/target1/lun0: [PTBL] [remap 0->1] [2491/255/63] p1 p2 p3 p4 cramfs: wrong magic VFS: Mounted root (est2 filesystem) readonly change-root: old root has d_count=2 Freeing unused kernel memory: 184k freed The boot hangs at this point. Sometimes is hangs at the line "cramfs: wrong magic" When I boot with my 2.2.19 kernel, partition check reports: hda: [EZD] [remap 0->1] [700/255/63] hda1 hda2 < hda5 > hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 > Is it normal for a 2.4.x kernels to report partitions as p1, p2, etc. vice hda1, hda2, hdb1, etc? What does "cramfs: wrong magic" mean, and does anyone have suggestions on how to fix this problem? My lilo.conf is: vga=normal append="hdc=ide-scsi" default=linux-2.2.19 image=/vmlinuz-2.2.19 label=linux-2.2.19 read-only alias=1 image=/vmlinuz label=linux read-only initrd=/boot/initrd alias=2 #other is Windows98 boot partition other=/dev/hda1 label=dos alias=3 /boot/initrd is linked to /boot/initrd-2.4.7-k6. /vmlinuz is linked to /boot/vmlinuz-2.4.7-k6 hda contain a Windows 98 installation and fat32 partitions. hdb are my linux partitions hdc is a HP Colorado 8GB tape drive. hdd is CDROM The PC also has an Adaptec AHA2940 scsi adaptor that currently connects to my zip drive. Any ideas and suggestions would be appreciated. thanks. -- Jerome