[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: