Dell + Ubuntu + Hibernate

Posted on by Nick. Posted in ubuntu.

My Dell Inspiron 6400 running Ubuntu used to fail to resume from Hibernation

I say “used to” because thanks to some googling and some fiddling now I am finally able to resume my session after hibernating. Here is the whole story: I installed Ubuntu 7.04 Feisty Fawn and I made pretty much everything work:

  • s-video out
  • wireless
  • widescreen display
  • beryl
  • bluetooth
  • webcam

but after a while I decided to change my partitions. So I removed a former FAT32 partition and moved my SWAP around a little and then created a new ext3 partition to replace the FAT32 one. I included the new partition in the /etc/fstab and everything seemed to be fine. Until I realised that Hibernate stopped working. I would be able to Hibernate but on resume I would get a new log in screen instead of the lock screen password prompt.

I thought it was because I installed 915resolution, then I thought it was because I was running beryl or compwiz. Eventually I realized all my problems came from the fact that my swap partition was no longer available. Running

$ sudo free | grep Swap would return something like Swap: 2096472 0 2096472 which was a clear sign that my swap partition was not OK. Also

$ sudo swapon -a would return swapon: cannot stat /dev/disk/by-uuid/<SomeUUID>: No such file or directory

This was actually good for me because I knew right then what I needed to do: confirm that the UUID in the /etc/fstab did not match the one in the /etc/initramfs-tools/conf.d/resume
BINGO! They were different.

So here comes the solution:
1. find the swap partition
$ sudo fdisk -l | grep swap
/dev/sda5 1919 2049 1052226 82 Linux swap / Solaris

2. get sda5′s UUID
$ sudo vol_id /dev/sda5

ID_FS_USAGE=other
ID_FS_TYPE=swap
ID_FS_VERSION=2
ID_FS_UUID=09149dfb-7a3d-4276-a944-418a75d9490c
ID_FS_LABEL=
ID_FS_LABEL_SAFE=

3. update the /etc/fstab to use the 09149dfb-7a3d-4276-a944-418a75d9490c value instead of the one that was there for the swap partition
$ sudo gedit /etc/fstab

4. update the /etc/initramfs-tools/conf.d/resume and replace the existing uuid with the same value as above
$ sudo gedit /etc/fstab

5. update the initial ramdisk with the new uuid. If you want more info on initrd check out http://en.wikipedia.org/wiki/Initrd
$ sudo update-initramfs -u

6. Reboot (although probably it probably wasn’t necessary)

Now HIBERNATE works!

I hope this helps, if not feel free to post questions.

Cheers…

Get a Trackback link

Post a comment

1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74|75|76|77|78|79|80|81|82|83|84|85|86|87|88|89|90|91|92|93|94|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|110|111|112|113|114|115|116|117|118|119|120|121|122|123|124|125|126|127|128|129|130|131|132|133|134|135|136|137|138|139|140|141|142|143|144|145|146|147|148|149|150|151|152|153|154|155|156|157|158|159|160|161|162|163|164|165|166|167|168|169|170|171|172|173|174|175|176|177|178|179|180|181|182|183|184|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200|201|202|203|204|205|206|207|208|209|210|211|212|213| purchase liponexol clavamox no prescription order cytotec medication purchase cheap ventolin purchase norvasc meds without prescription take amitriptyline without prescription no prescription erythromycin buy nolvadex medication revatio uk where to buy buy generic trental xenical prescription discountsAccutane Online Doxycycline online Buy Cheap Lexapro Online No Prescription Prednisone Online Buy Accutane No Prescription