View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 57 posts ] 
Go to page Previous  1, 2, 3, 4  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: update?
PostPosted: Mon Jan 23, 2006 4:55 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
Any updates anyone? did anyone succeed at all?
share your experience whether good or bad please ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 3:51 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
Hi,

I've been trying to get the suspend / resume function to work, on my Virtual Machine, before I'm trying it at home.

I've got it so far it's hibernating, and trying to resume after a reboot, but then it says :

Suspend2: Initrd lacks echo > /proc/software_suspend/do_resume.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
(fs/jbd/recovery.c, 255): journal_recover: JBD: recovery, exit status 0, recovered transactions 5497 to 5854
(fs/jbd/recovery.c, 257): journal_recover: JBD: Replayed 2956 and revoked 0/9 blocks
EXT3-fs: hda1: orphan cleanup on readonly fs
ext3_orphan_cleanup: deleting unreferenced inode 43168
ext3_orphan_cleanup: deleting unreferenced inode 43163
EXT3-fs: hda1: 2 orphan inodes deleted
EXT3-fs: recovery complete.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Trying to move old root to /initrd ... okay
Freeing unused kernel memory: 216k freed
Suspend2 2.2-rc7: Swapwriter: Signature found.
Suspend2 2.2-rc7: Suspending enabled.
Suspend2 2.2-rc7: Root filesystem (300001) has been mounted prior to trying to resume.
Suspend2 2.2-rc7: Image invalidated.
Adding 835624k swap on /dev/hda2. Priority:-1 extents:1
EXT3 FS on hda1, internal journal

In other words. It says one of my partitions has been mounted prior to resume the session.

Does anyone has any idea how this is possible? Or where I can find the place where it's going wrong?

I'm not a complete newbie on linux. I'm running Fedora Core 4 workstation, I was running an Fedora server. But Debian is new to me.

I'm more then willing to help setting this part up, but I need a small hand I guess...

Kindly regards,

Eppie

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject: same issue
PostPosted: Mon Jan 30, 2006 3:57 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
Eppie,
thanks for joining this. Yep, if you read the resume2 manuals you will see that you can actually corrupt things if you don't have the
Ep Woody wrote:
Suspend2: Initrd lacks echo > /proc/software_suspend/do_resume.

command in the initrd (before mounting takes place!). Have you got any ideas on how to insert that command into initrd in debian/knopp - in step by step instructions?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 4:06 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
I used R5A30.2 for this test, and do_resume seems to be included in the initrd. This would mean you don't have to include te resume yourselfs.

In my case it is trying to resume, but finds it has allready been mounted, something that shouldn't have happend.

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject: strange
PostPosted: Mon Jan 30, 2006 4:14 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
huh, that's strange then, i'll try R5A30 then too...
>Initrd lacks echo > /proc/software_suspend/do_resume.
suggests to me (according to resume2 instructions) that the line is in the wrong place... see the manuals (http://www.suspend2.net/HOWTO-7.html#ss7.4)

Quote:
7.4 Using an initrd/initramfs but Suspend2 compiled in

If you are using an initrd, you MUST edit the linuxrc script to attempt to resume before filesystems are mounted. Do this by inserting the line:

echo > /proc/suspend2/do_resume

somewhere after mount /proc but before mounting filesystems in your linuxrc script.


are you able to verify where abouts in the linuxrc/initrc script in the R5A30 the command is?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 5:22 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Eppie,

You mention that you are trying this on a virtual machine. Could it be that the "real" machine is mounting the partition in question? Also, it mentions the root file system. The emulator might be doing strange things with it.

Disclaimer: I've never really played with a VM.

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 5:32 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
It might be possible, but I had a sneek preview in the initrd.gz and I noticed that there wasn't a line, named : echo > /proc/software_suspend/do_resume, so it's in a later stage.

There was an mount /dev/hda1 in the initrd.gz. So I think the echo > proc/software_suspend/do_resume is after the mount...

The VM is just a softwareprogram that simulates an entire system, include virtual diskdrives. So it is impossible to mount it.

I only destroyed the initrd.gz so I'm reinstalling at this moment :)

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 8:01 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
Warning: USE AT OWN RISK!

A small step by step approach to view your initrd.gz or modify it.

Install the package : initrd-tools

Extract the /boot/initrd.gz
Mount the new file in a new dir. (mount -o loop initrd directory)
copy linuxrc into /usr/share/initrd-tools/

Then you can change the linuxrc file.
But be carefull, you can destroy more than you would want to... I've had a couple of kernel panics and things like that.

And I haven't got it working yet...

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 3:35 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
Have been trying to get the initrd / linuxrc correct, and I've found an better way of changing it, but it seems not to give any result.

I've copied the initrd.gz into /root
Ungzip'd it.
mount -o loop initrd /initrd

After this point you can see the contents of the initrd, including an linuxrc file (executable).

I've modified it, so "echo > /proc/software_suspend/do_resume" is just before umount /proc
I've also added "echo "Just before software_suspend/resume" so I can see it's acually doing something.

After that I to the following things :
umount /initrd
gzip /root/initrd
cp /root/initrd.gz /boot/initrd.gz (ofcourse I've made an backup.)

But when I reboot I just don't see anything related to software_suspend (besides the resume that was allready in it, somewhere).
I don't even see my echo : "Just before......."

Does anyone has any clue?

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 6:18 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
Darn, am I talking alot...

I've managed to write my memory onto a disk, and after the resume it.

I've installed initrd-tools
copy /boot/initrd.gz /root/initrd.gz
gunzip -d /root/initrd.gz
mkdir /tmpinitrd
mount -o loop /root/initrd.gz /tmpinitrd
cp /tmpinitrd/linuxrc /usr/share/initrd-tools/linuxrc
umount /tmpinitrd
rmdir /tmpinitrd
copy /boot/initrd.gz /boot/initrd.original.gz

In that linuxrc I've added echo > /proc/software_suspend/do_resume just before umount /proc
run mkinitrd -o /boot/initrd.gz

Add this code into /etc/lilo.conf
Quote:
image=/boot/vmlinuz-2.6.13.2-chw-3
label=LinuxOriginalInitRD
initrd=/boot/initrd.original.gz
read-only


If you've got the suspend part working, it should come back up after you powered the machine up.

To be on the save side, I've added an new boot option in LILO with your backed up initrd.gz, that way you can allways start your system in the original way, if it doesn't want to start the other way.

Add the above code into your lilo.conf and run lilo.
If you reboot and press [SHIFT] on LILO you get an bootmenu, and you are able to choose LinuxOriginalInitRD, which will boot with the original initrd.gz

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject: talking a lot?
PostPosted: Fri Feb 03, 2006 5:25 am 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
Ep Woody wrote:
Darn, am I talking alot...

Good on you! Thanks for all that - I will confirm whether it worked for me - very soon!
Did it speed up on/off times much at all?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 03, 2006 5:42 am 
Offline
Joined: Mon Jan 23, 2006 7:02 am
Posts: 24
Location: The Netherlands
It's down in a about 10 - 15 seconds, and back up in about 30 seconds.

The only thing I didn't get back up yet is GDM and my frontend...

_________________
KnoppMyth R5A30.1 upgraded to MythTV 0.19
P3-900 MHz
Asus CUV board (VIA Apollo 133A)
40 Gig HD
PVR-350
Optrex Display 160*128 T6963c

VMWare 4.5.1
KnoppMyth R5A30.2 upgraded to MythTV 0.19
IDE "virtual drive"


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 26, 2006 6:22 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
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
vi /etc/lilo.conf

Edit the append line and add

Quote:
resume2=swap:/dev/hda2

In the above example /dev/hda2 is location of swap, this may vary on your system.
Code:
lilo -v

If all is well, just reboot the system. After it comes up, you can run
Code:
hibernate
This has been tested with R5B7.


Top
 Profile  
 
 Post subject: A-wesome!
PostPosted: Sun Apr 09, 2006 3:04 pm 
Offline
Joined: Mon Jan 09, 2006 4:34 am
Posts: 11
Location: Auckland, New Zealand
This is BEWDYFUL! I'll give it a try and post my results here. Thanks Cecil ;-)))


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 09, 2006 3:07 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
You're welcome.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ] 
Go to page Previous  1, 2, 3, 4  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 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