LinHES Forums
http://forum.linhes.org/

WARNING: Ramdisk image too big!
http://forum.linhes.org/viewtopic.php?f=5&t=10017
Page 1 of 1

Author:  hansaplast [ Fri May 12, 2006 6:50 am ]
Post subject:  WARNING: Ramdisk image too big!

Hello,

To get hibernate to work I was trying to install a ramdisk with "echo > /proc/suspend2/do_resume" in linuxrc.

Therfore I did:
Code:
wget http://ftp.us.debian.org/debian/pool/main/i/initrd-tools/initrd-tools_0.1.81.1_i386.deb
dpkg -i initrd-tools_0.1.81.1_i386.deb
cp --reply=yes /etc/modules /etc/mkinitrd/
mkinitrd -o /boot/initrd.gz
The size of initrd.gz however is 4.5M which is to big for my ramfs which is 4M.

Increasing ramdisk=8192 in lilo.conf doesn't help: Kernel panic.
I'm stuck here. And don't know which steps to take next.

Here's my modules file:
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
BusLogic
tmscsim
megaraid
a100u2w
usbcore
uhci_hcd
ohci_hcd
usb_storage
ieee1394
ohci1394
rtc
ac
battery
button
container
fan
processor
thermal
video
pcmcia_core
rsrc_nonstatic
yenta_socket
firmware_class
pcmcia
serial_core
8250
parport
parport_pc
agpgart
amd64_agp
mii
sis900
i2c_core
tveeprom
tuner
cx25840
wm8775
tda9887
soundcore
snd
snd_page_alloc
snd_timer
snd_pcm
snd_ac97_bus
snd_ac97_codec
snd_intel8x0
snd_mixer_oss
af_packet
autofs4
skge
videodev
v4l1_compat
v4l2_common
video_buf
btcx_risc
i2c_algo_bit
bttv
dvb_core
cx24110
bt878
dst
lgdt330x
or51211
dst_ca
sp887x
dvb_pll
mt352
nxt6000
dvb_bt8xx
evdev
ves1x93
stv0299
ves1820
tda1004x
mt312
saa7146
saa7146_vv
ttpci_eeprom
sp8870
stv0297
tda8083
l64781
dvb_ttpci
budget_core
s5h1420
budget
budget_ci
tda10021
budget_av
cx22700
dvb_ttusb_budget
ttusbdecfe
ttusb_dec
ipv6

Author:  cesman [ Fri May 12, 2006 12:40 pm ]
Post subject: 

Boot off the CD.
Code:
mount -o rw /dev/hda1 /mnt/hda1
chroot /mnt/hda1
cp /boot/initrd.gz.orig /boot/initrd.gz
lilo -v
exit
reboot

Author:  hansaplast [ Fri May 12, 2006 1:25 pm ]
Post subject: 

Does that mean that the initrd.gz.orig on the CD contains the "echo > /proc/suspend2/do_resume" in its linuxrc?

Author:  cecil [ Fri May 12, 2006 1:51 pm ]
Post subject: 

It means you'll be able to boot your system again. You can try removing some of the modules in /etc/mkinitrd/modules before running mkinitrd again. For instance, pcmica if you have have a laptop, the DVB related items if you are using DVB...

Author:  hansaplast [ Fri May 12, 2006 2:10 pm ]
Post subject: 

Booting was not the problem. I have a backup ;-)
Even with the initrd.gz image too big the system boots normaly however. But I'm afraid it won't be long until its not. I've tried disabling modules but there are far too much of them and I have no clue which are necessary and which not.
Any hint where I can find out which to use?

I also took another aproach.
I liked the small original initrd.gz which is in gzip format. I even managed to mount it via /dev/loop1 and manualy added "echo ...do_resume" in linuxrc. I then unmounted /dev/loop1, gziped inird and copied it back to /boot/initrd.gz.
I booted without problems however I still get the line that "echo /proc/../do_resume" lacks.
Maybe I'm forgetting something.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/