FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-07-2010, 06:54 AM
Julien Valroff
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

Package: initramfs-tools
Version: 0.93.4
Severity: normal

Hi,

If I do not specify my resume partition in the kernel command line, my computer doesn't resume from hibernation, but starts fresh instead.

This wasn't the case until recently.

I have found a similar issue in Ubuntu, which has a patch attached and which is now tagged as fixed. Please see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/499940 for all the details.

I haven't tried adapting the patch to the currernt Debian package as it doesn't apply cleanly and I fear I make some errors and break my complete boot process.
I would be glad testing anyway if needed.

Cheers,
Julien


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.33-2-amd64 root=/dev/mapper/gaia-root ro quiet video=i915:modeset=1

-- /proc/filesystems
ext3
ext2
fuseblk
ext4
reiserfs
xfs
jfs
msdos
vfat
ntfs
minix
hfs
hfsplus
qnx4
ufs
btrfs

-- lsmod
Module Size Used by
btrfs 376896 0
zlib_deflate 17746 1 btrfs
crc32c 2560 1
libcrc32c 1106 1 btrfs
ufs 58477 0
qnx4 6722 0
hfsplus 65606 0
hfs 37759 0
minix 21277 0
ntfs 163868 0
vfat 7900 0
msdos 6202 0
fat 40118 2 vfat,msdos
jfs 140819 0
xfs 753853 0
exportfs 3202 1 xfs
reiserfs 196965 0
ext4 278926 0
jbd2 63225 1 ext4
cryptd 5504 0
aes_x86_64 7340 2
aes_generic 25714 1 aes_x86_64
ppdev 5565 0
lp 8201 0
parport 27314 2 ppdev,lp
sco 7257 2
bridge 39813 0
stp 1440 1 bridge
bnep 9722 2
rfcomm 29762 0
l2cap 25274 4 bnep,rfcomm
crc16 1319 2 ext4,l2cap
bluetooth 42103 6 sco,bnep,rfcomm,l2cap
acpi_cpufreq 5787 0
cpufreq_conservative 7910 0
cpufreq_powersave 902 0
cpufreq_stats 2659 0
cpufreq_userspace 2024 0
uinput 6687 1
fuse 50478 1
ext2 53966 1
ecryptfs 80321 0
acerhdf 6083 0
loop 11902 0
snd_hda_codec_intelhdmi 14085 1
snd_hda_codec_realtek 243343 1
snd_hda_intel 20179 2
uvcvideo 52292 0
snd_hda_codec 57782 3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_ hda_intel
snd_hwdep 5428 1 snd_hda_codec
videodev 31744 1 uvcvideo
snd_pcm_oss 32790 0
snd_mixer_oss 12654 1 snd_pcm_oss
snd_pcm 61254 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi 4432 0
snd_rawmidi 15810 1 snd_seq_midi
snd_seq_midi_event 4628 1 snd_seq_midi
v4l1_compat 11442 2 uvcvideo,videodev
snd_seq 43279 2 snd_seq_midi,snd_seq_midi_event
arc4 1274 2
v4l2_compat_ioctl32 9160 1 videodev
ecb 1841 2
snd_timer 15749 2 snd_pcm,snd_seq
snd_seq_device 4493 3 snd_seq_midi,snd_rawmidi,snd_seq
joydev 8546 0
iwlagn 79776 0
snd 47090 16 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_ hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_ mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,sn d_seq_device
iwlcore 81927 1 iwlagn
mac80211 140504 2 iwlagn,iwlcore
cfg80211 105832 3 iwlagn,iwlcore,mac80211
soundcore 4822 1 snd
snd_page_alloc 6313 2 snd_hda_intel,snd_pcm
rfkill 13164 4 bluetooth,cfg80211
i2c_i801 7814 0
atl1c 26334 0
psmouse 45587 0
serio_raw 3960 0
tpm_tis 7336 0
tpm 9933 1 tpm_tis
evdev 7384 25
pcspkr 1699 0
ac 2192 0
tpm_bios 4521 1 tpm
battery 4998 0
processor 29489 3 acpi_cpufreq
wmi 5461 0
ext3 107181 1
jbd 37789 1 ext3
mbcache 5050 3 ext4,ext2,ext3
dm_mod 55446 6
sd_mod 30459 3
crc_t10dif 1276 1 sd_mod
uhci_hcd 18585 0
ahci 32182 2
libata 133993 1 ahci
ehci_hcd 31298 0
scsi_mod 123365 2 sd_mod,libata
usbcore 126389 4 uvcvideo,uhci_hcd,ehci_hcd
nls_base 6377 7 hfsplus,hfs,ntfs,vfat,fat,jfs,usbcore
thermal 11889 0
fan 3266 0
i915 249816 2
drm_kms_helper 20097 1 i915
drm 143558 3 i915,drm_kms_helper
i2c_algo_bit 4225 1 i915
button 4634 1 i915
i2c_core 15385 6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo _bit
video 18001 1 i915
thermal_sys 11990 5 acerhdf,processor,thermal,fan,video
output 1692 1 video
intel_agp 25641 1

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii cpio 2.10-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.12~pre1-1 tools for managing Linux kernel mo
ii udev 151-2 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100307075416.8622.45870.reportbug@gaia.kirya.net ">http://lists.debian.org/20100307075416.8622.45870.reportbug@gaia.kirya.net
 
Old 03-07-2010, 02:14 PM
maximilian attems
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

On Sun, 07 Mar 2010, Julien Valroff wrote:

> Package: initramfs-tools
> Version: 0.93.4
> Severity: normal
>
> Hi,
>
> If I do not specify my resume partition in the kernel command line, my computer doesn't resume from hibernation, but starts fresh instead.
>
> This wasn't the case until recently.
>
> I have found a similar issue in Ubuntu, which has a patch attached and which is now tagged as fixed. Please see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/499940 for all the details.
>
> I haven't tried adapting the patch to the currernt Debian package as it doesn't apply cleanly and I fear I make some errors and break my complete boot process.
> I would be glad testing anyway if needed.
>
> Cheers,
> Julien

please post the content of those 2 files on relevant box:
/etc/initramfs-tools/conf.d/resume

/etc/fstab



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100307151427.GB8156@stro.at">http://lists.debian.org/20100307151427.GB8156@stro.at
 
Old 03-07-2010, 02:17 PM
Julien Valroff
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

Le dimanche 07 mars 2010 à 16:14 +0100, maximilian attems a écrit :
> On Sun, 07 Mar 2010, Julien Valroff wrote:
>
> > Package: initramfs-tools
> > Version: 0.93.4
> > Severity: normal
> >
> > Hi,
> >
> > If I do not specify my resume partition in the kernel command line, my computer doesn't resume from hibernation, but starts fresh instead.
> >
> > This wasn't the case until recently.
> >
> > I have found a similar issue in Ubuntu, which has a patch attached and which is now tagged as fixed. Please see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/499940 for all the details.
> >
> > I haven't tried adapting the patch to the currernt Debian package as it doesn't apply cleanly and I fear I make some errors and break my complete boot process.
> > I would be glad testing anyway if needed.
> >
> > Cheers,
> > Julien
>
> please post the content of those 2 files on relevant box:
> /etc/initramfs-tools/conf.d/resume

RESUME=UUID=aa748dde-93f1-4e7f-887a-71fa58db6140


> /etc/fstab

proc /proc proc defaults 0 0
/dev/mapper/gaia-root / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=08ff5fb8-82dd-4968-a05f-b7cd323e052f /boot ext2 defaults 0 2
/dev/mapper/gaia-swap_1 none swap sw 0 0


$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 7 mars 08:24 08ff5fb8-82dd-4968-a05f-b7cd323e052f -> ../../sda1
lrwxrwxrwx 1 root root 24 7 mars 08:24 aa748dde-93f1-4e7f-887a-71fa58db6140 -> ../../mapper/gaia-swap_1
lrwxrwxrwx 1 root root 22 7 mars 08:24 e91cb78c-f290-4059-8d5c-8183e2adc177 -> ../../mapper/gaia-root

It is worth noting this box was installed on Sunday last week (from the
testing daily CD image and immedately upgraded to sid after the base
installation)

Cheers,
Julien




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1267975075.14675.2.camel@gaia.kirya.net">http://lists.debian.org/1267975075.14675.2.camel@gaia.kirya.net
 
Old 03-07-2010, 02:32 PM
maximilian attems
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

On Sun, Mar 07, 2010 at 04:17:55PM +0100, Julien Valroff wrote:
> Le dimanche 07 mars 2010 à 16:14 +0100, maximilian attems a écrit :
> > On Sun, 07 Mar 2010, Julien Valroff wrote:
> >
> > > Package: initramfs-tools
> > > Version: 0.93.4
> > > Severity: normal
> > >
> > > Hi,
> > >
> > > If I do not specify my resume partition in the kernel command line, my computer doesn't resume from hibernation, but starts fresh instead.
> > >
> > > This wasn't the case until recently.
> > >
> > > I have found a similar issue in Ubuntu, which has a patch attached and which is now tagged as fixed. Please see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/499940 for all the details.
> > >
> > > I haven't tried adapting the patch to the currernt Debian package as it doesn't apply cleanly and I fear I make some errors and break my complete boot process.
> > > I would be glad testing anyway if needed.
> > >
> > > Cheers,
> > > Julien
> >
> > please post the content of those 2 files on relevant box:
> > /etc/initramfs-tools/conf.d/resume
>
> RESUME=UUID=aa748dde-93f1-4e7f-887a-71fa58db6140
>
>
> > /etc/fstab
>
> proc /proc proc defaults 0 0
> /dev/mapper/gaia-root / ext3 errors=remount-ro 0 1
> # /boot was on /dev/sda1 during installation
> UUID=08ff5fb8-82dd-4968-a05f-b7cd323e052f /boot ext2 defaults 0 2
> /dev/mapper/gaia-swap_1 none swap sw 0 0
>
>
> $ ls -l /dev/disk/by-uuid/
> total 0
> lrwxrwxrwx 1 root root 10 7 mars 08:24 08ff5fb8-82dd-4968-a05f-b7cd323e052f -> ../../sda1
> lrwxrwxrwx 1 root root 24 7 mars 08:24 aa748dde-93f1-4e7f-887a-71fa58db6140 -> ../../mapper/gaia-swap_1
> lrwxrwxrwx 1 root root 22 7 mars 08:24 e91cb78c-f290-4059-8d5c-8183e2adc177 -> ../../mapper/gaia-root
>
> It is worth noting this box was installed on Sunday last week (from the
> testing daily CD image and immedately upgraded to sid after the base
> installation)

oh i can see the bug the conversion to UUID happens to late,
so lvm wouldn't activate your UUID swap.

will fix later today and ask you to test latest git, thanks.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100307153249.GH7231@baikonur.stro.at">http://lists.debian.org/20100307153249.GH7231@baikonur.stro.at
 
Old 03-08-2010, 02:46 AM
maximilian attems
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

On Sun, 07 Mar 2010, Julien Valroff wrote:

> > /etc/initramfs-tools/conf.d/resume
>
> RESUME=UUID=aa748dde-93f1-4e7f-887a-71fa58db6140
>
>
> > /etc/fstab
>
> proc /proc proc defaults 0 0
> /dev/mapper/gaia-root / ext3 errors=remount-ro 0 1
> # /boot was on /dev/sda1 during installation
> UUID=08ff5fb8-82dd-4968-a05f-b7cd323e052f /boot ext2 defaults 0 2
> /dev/mapper/gaia-swap_1 none swap sw 0 0

hmm no the bug is actually the other way round,
why is there an UUID in /etc/initramfs-tools/conf.d/resume

can you please post:
cat /proc/swaps




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100308034605.GA5678@stro.at">http://lists.debian.org/20100308034605.GA5678@stro.at
 
Old 03-08-2010, 04:26 AM
Julien Valroff
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

hi,

Le lundi 08 mars 2010 à 04:46 +0100, maximilian attems a écrit :
> On Sun, 07 Mar 2010, Julien Valroff wrote:
>
> > > /etc/initramfs-tools/conf.d/resume
> >
> > RESUME=UUID=aa748dde-93f1-4e7f-887a-71fa58db6140
> >
> >
> > > /etc/fstab
> >
> > proc /proc proc defaults 0 0
> > /dev/mapper/gaia-root / ext3 errors=remount-ro 0 1
> > # /boot was on /dev/sda1 during installation
> > UUID=08ff5fb8-82dd-4968-a05f-b7cd323e052f /boot ext2 defaults 0 2
> > /dev/mapper/gaia-swap_1 none swap sw 0 0
>
> hmm no the bug is actually the other way round,
> why is there an UUID in /etc/initramfs-tools/conf.d/resume
>
> can you please post:
> cat /proc/swaps

Filename Type Size Used Priority
/dev/mapper/gaia-swap_1 partition 9928696 0 -1


Cheers,
Julien




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1268026010.2496.0.camel@gaia.kirya.net">http://lists.debian.org/1268026010.2496.0.camel@gaia.kirya.net
 
Old 03-08-2010, 10:01 AM
Frédéric Boiteux
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

Hello,

Is the 572858*bug a duplicate of mine, 568877*? I got same problem
resuming from hibernation with the swap (and so hibernation image) in a
LVM2 partition.

The given patch on my bug report isn't very useful, only a
workaround, waiting for a more experienced dev looking at there ;-)


Fred.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100308120142.5075add4@prem6s">http://lists.debian.org/20100308120142.5075add4@prem6s
 
Old 03-08-2010, 10:55 AM
Julien Valroff
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

Hi,

On Mon, 8 Mar 2010 12:01:42 +0100, Frédéric Boiteux
<fboiteux@calistel.com>
wrote:
> Hello,
>
> Is the 572858*bug a duplicate of mine, 568877*? I got same problem
> resuming from hibernation with the swap (and so hibernation image) in a
> LVM2 partition.

I think you are right, both bugs seem to describe the same issue.
I let Maximilian check this and reassign #572858 to lvm2 and mark it as a
duplicate just in case our guess is wrong.

Cheers,
Julien



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: cea8869a3acc603e86293f55b602c231@kirya.net">http://lists.debian.org/cea8869a3acc603e86293f55b602c231@kirya.net
 
Old 03-08-2010, 10:59 AM
Aioanei Rares
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

On 03/08/2010 01:55 PM, Julien Valroff wrote:

Hi,

On Mon, 8 Mar 2010 12:01:42 +0100, Frédéric Boiteux
<fboiteux@calistel.com>
wrote:


Hello,

Is the 572858 bug a duplicate of mine, 568877 ? I got same problem
resuming from hibernation with the swap (and so hibernation image) in a
LVM2 partition.


I think you are right, both bugs seem to describe the same issue.
I let Maximilian check this and reassign #572858 to lvm2 and mark it as a
duplicate just in case our guess is wrong.

Cheers,
Julien





I have the same issues on a testing/unstable system and I do not use LVM.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4B94E699.4080007@gmail.com">http://lists.debian.org/4B94E699.4080007@gmail.com
 
Old 03-08-2010, 11:45 AM
maximilian attems
 
Default Bug#572858: initramfs-tools: Doesn't resume from hibernation, restarts fresh

reassign 572858 base-installer
retitle 572858 use lvm name and not UUID for lvm resume partition
severity important
stop

On Mon, Mar 08, 2010 at 06:26:50AM +0100, Julien Valroff wrote:
> hi,
>
> > why is there an UUID in /etc/initramfs-tools/conf.d/resume
> >
> > can you please post:
> > cat /proc/swaps
>
> Filename Type Size Used Priority
> /dev/mapper/gaia-swap_1 partition 9928696 0 -1

thought so, thanks for the post.

so it seems that the bug is in d-i base-installer to add an UUID in
/etc/initramfs-tools/conf.d/resume although the device is lvm
and thus unique anyway.

for your box do as root
echo "resume=/dev/mapper/gaia-swap_1" > /etc/initramfs-tools/conf.d/resume

and regenerate initramfs with
update-initramfs -u



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100308124529.GL7231@baikonur.stro.at">http://lists.debian.org/20100308124529.GL7231@baikonur.stro.at
 

Thread Tools




All times are GMT. The time now is 01:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org