View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri May 12, 2006 6:50 am 
Offline
Joined: Sun Apr 23, 2006 4:45 pm
Posts: 14
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 12:40 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 1:25 pm 
Offline
Joined: Sun Apr 23, 2006 4:45 pm
Posts: 14
Does that mean that the initrd.gz.orig on the CD contains the "echo > /proc/suspend2/do_resume" in its linuxrc?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 1:51 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
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...


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 2:10 pm 
Offline
Joined: Sun Apr 23, 2006 4:45 pm
Posts: 14
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu