Linux Swap partition Corrupt after installing Ubuntu 11.04.

Bug #818648 reported by Gregory Lew
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hello,
         Whenever I try to Hibernate my machine it does appear to do so, but then after I turn it back on it just goes like if it were booting up. Next thing I know I'm at the login screen of Ubuntu 11.04 (not lock screen), thus resulting in loss of precious data. This "hibernation" would work like the one on Windows right? (start>shut down computer>> Hibernate, then it saves data to disk and shuts down. When turned back on you get to the lock screen and your data is intact.) Would there be any workarounds to disable hibernation or any fixes that would make hibernation work?

I did a fresh install of Ubuntu 11.04 Natty,. Now I clicked on the Power button and chose Hibernate and it does shut down the PC but does not save the state of it like I left it. I took a look in Gparted and it showed a 3 gigabyte partition but it is corrupt.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: gregorylew 1628 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfcff4000 irq 16'
   Mixer name : 'VIA VT1708S'
   Components : 'HDA:11060397,1043836c,00100000'
   Controls : 35
   Simple ctrls : 20
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xfea7c000 irq 19'
   Mixer name : 'Nvidia GPU 0d HDMI/DP'
   Components : 'HDA:10de000d,10de0101,00100100'
   Controls : 16
   Simple ctrls : 4
DistroRelease: Ubuntu 11.04
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=5b1751ec-6372-4133-a0db-12423356aa6d
InstallationMedia: Aries-Extreme Restore - Release amd64
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=d7bd7702-efc6-4ae0-a5e6-3d2a4e987d30 ro resume=UUID=4946f5c3-dbff-4e9e-ace8-75a29db2eabc quiet splash nomodeset video=uvesafb:mode_option=1600x900-24,mtrr=3,scroll=ywrap
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-10-generic N/A
 linux-backports-modules-2.6.38-10-generic N/A
 linux-firmware 1.52
RfKill:

Tags: natty running-unity
Uname: Linux 2.6.38-10-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 08/18/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1006
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: M4A785-M
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1006:bd08/18/2010:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM4A785-M:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: gregory 1555 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xf2300000 irq 16'
   Mixer name : 'IDT 92HD81B1C5'
   Components : 'HDA:111d76d5,103c3656,00100402'
   Controls : 14
   Simple ctrls : 9
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xf2210000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 11.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MachineType: Hewlett-Packard HP Pavilion dm3 Notebook PC
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-10-generic root=UUID=9410ff9e-6f3a-4dc0-8c8e-2b71208bd692 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-10-generic N/A
 linux-backports-modules-2.6.38-10-generic N/A
 linux-firmware 1.52
Tags: natty running-unity
Uname: Linux 2.6.38-10-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 05/17/2010
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: F.28
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 3656
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 44.1E
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnInsydeCorp.:bvrF.28:bd05/17/2010:svnHewlett-Packard:pnHPPaviliondm3NotebookPC:pvr0486110000241F00110320000:rvnHewlett-Packard:rn3656:rvr44.1E:cvnHewlett-Packard:ct10:cvrN/A:
dmi.product.name: HP Pavilion dm3 Notebook PC
dmi.product.version: 0486110000241F00110320000
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Please fix this!!! This is very important!! Thank you!

my system: hp dm3-1130us
                     4 gb DDR2 RAM
                     ATI Radeon HD 3200
                     AMD Athlon Neo Dual Core.

Revision history for this message
Joe Burgess (joemburgess) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 818648
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Sorry it's taking so long, I have posted the bug from a different machine. It was because I put Ubuntu on my laptop and my desktop as well but the problem was resolved. However When Installing Ubuntu 11.04 or 11.10 this issue exists where the swap partition is corrupted and the computers cannot hibernate properly.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

You do have my hardware in your database right?

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

It says the package is not installed. I do see the Hibernate Option on my power menu.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :
Revision history for this message
Joe Burgess (joemburgess) wrote :

Gregory,

Sorry for that, I didn't notice the package this was filed under. It was filed under an incorrect package and therefore apport-collect wasn't sure what to do. Please run apport-collect 818648 again.

Also if you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

affects: hibernate (Ubuntu) → linux (Ubuntu)
tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → Opinion
status: Opinion → Incomplete
Revision history for this message
Gregory Lew (gregorylew-h) wrote : AcpiTables.txt

apport information

tags: added: apport-collected natty running-unity
description: updated
Revision history for this message
Gregory Lew (gregorylew-h) wrote : AlsaDevices.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : AplayDevices.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : BootDmesg.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Codecs.codec.3.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Lspci.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Lsusb.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : PciMultimedia.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcModules.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : UdevDb.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : UdevLog.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : WifiSyslog.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Hello?? Did you get the report? It did send it, But I'm still kind of lost about the upstream kernel. Sorry, It;s my first time as I have transitioned from Windows.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

I have recreated the swap partition. However When Doing a default installation of Ubuntu 11.04 the swap partition seems to be corrupt. Would it be corrupt or does Ubuntu Installation do this that it encrypts the swap partition?

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

I can Confirm This on My Dm3 Laptop also. I'll send you the bug report from it too.

Revision history for this message
Gregory Lew (gregorylew-h) wrote : AcpiTables.txt

apport information

description: updated
Revision history for this message
Gregory Lew (gregorylew-h) wrote : AlsaDevices.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : AplayDevices.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : BootDmesg.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : IwConfig.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Lspci.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : Lsusb.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : PciMultimedia.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : ProcModules.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : RfKill.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : UdevDb.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : UdevLog.txt

apport information

Revision history for this message
Gregory Lew (gregorylew-h) wrote : WifiSyslog.txt

apport information

Revision history for this message
Joe Burgess (joemburgess) wrote :

how are you seeing that the swap partition is corrupt, are you getting an error that says that? The swap partition is not really user readable, so it might look corrupt.

Revision history for this message
Joe Burgess (joemburgess) wrote :

Also have you tried suspend?

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Yes, Suspend Works like a charm. It's Hibernation that we are dealing with. Gparted tells me it might be corrupt since It doesn't know what filesystem it is. It says it is unknown. Also When I boot Ubuntu the first time it says it can't mount "/dev/mapper/cryptswap1" Press S to skip or Press M to Recover.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Is this something new with Ubuntu where it encrypts the swap partition? In 10.04 the Swap partition is recognized by Gparted and Hibernation works with no problem in 10.04.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

By the way I am sorry if I haven't provided enough info, I am kind of new here.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Hello? is anyone there?

Revision history for this message
Jarno Suni (jarnos) wrote :

I installed Natty, too, but Xubuntu. I chose encrypted home folder, in installation. I think installation meant to encrypt swap, too since there is line "/dev/mapper/cryptswap1 none swap sw 0 0" in /etc/fstab file. Command "free" shows there is no swap available, even if I made about 2GB swap partition in manual partitioning during (alternate) installation. The partition is "unknown" to GParted now, but "sudo fdisk -l" shows it is "Linux swap / Solaris" system. My system does not boot when I choose Hibernate, but it complains there is not enough swap to do it and locks screen. I did not notice any message complaining it can't mount "/dev/mapper/cryptswap1" Press S to skip or Press M to Recover, when I booted Ubuntu the first time. I wonder if this is the same bug.

Gregory, does "free" command in terminal show you have some swap?

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Sorry about the delay I caused. I noticed my karma went down a bit.

Yes, it does show some swap space. Here is the output:

gregorylew@Aries-ExtremePC:~$ free
             total used free shared buffers cached
Mem: 3090212 886312 2203900 0 45924 299524
-/+ buffers/cache: 540864 2549348
Swap: 3143676 0 3143676
gregorylew@Aries-ExtremePC:~$

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Using "sudo fdisk-l" this is what I get:

gregorylew@Aries-ExtremePC:~$ sudo fdisk -l
[sudo] password for gregorylew:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d2904

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 60410 485239808 83 Linux
/dev/sda2 60410 60802 3143681 5 Extended
/dev/sda5 60410 60802 3143680 82 Linux swap / Solaris

Disk /dev/dm-0: 3219 MB, 3219128320 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc6294b3b

Disk /dev/dm-0 doesn't contain a valid partition table
gregorylew@Aries-ExtremePC:~$

Maybe the partition table has to do with this? I'm not sure. I am new to Ubuntu so sorry if that was not enough info.

Revision history for this message
Jarno Suni (jarnos) wrote :

I guess hibernate does not work with encrypted swap, and encrypted swap partition is something unknown to gparted, but I can't see why it needs to be a special partition different from normal swap partition.

As a workaround you could use a regular unencrypted swap partition: Disable swap by swapoff, edit /etc/fstab to mount regular swap partition instead of encrypted, and re-partition the swap partition by gparted. And then reboot.

Revision history for this message
Gregory Lew (gregorylew-h) wrote :

Yes, I have done that. However, I am saying when you do the fresh installation, the swap partition is encrypted. Gparted tells me It does not know the file system the swap partition is using. When I fixed it and used the unencrypted swap partition it works like it should. I'm saying please fix this issue before releasing Ubuntu 11.10. Some users will get frustrated about this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.