Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 54

Thread: Hibernate/Suspend Not working

  1. #31
    Join Date
    Dec 2007
    Location
    Michigan
    Beans
    75
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by Windows Nerd View Post
    Oh...my thats a stupid mistake of me. Thanks

    From Cat /ect/fstab:

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'vol_id --uuid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # / was on /dev/sda3 during installation
    UUID=c3c892fa-37f2-4dc0-8d7b-8d7e8a7258f8 /               ext4    relatime,errors=remount-ro 0       1
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    Looks the same as if I looked at it with a graphical editor, or ran

    gksudo gedit /etc/fstab

    Scott

    I am signing off to go to bed now. If anyone can find a solution (I am fine with terminal/command line) for me and post it while I am a snoozin', much wukk be appreciated
    Yeah it looks like your swap partition is not being mounted at boot...

    Run the following to see if your swap partition exists (post output if you want/need help locating it):
    Code:
    sudo fdisk -l
    Take note of the path, mine is /dev/sda6.

    If your swap partition is listed in the output, you can find it's UUID by doing the following:
    Code:
    blkid
    (post the output for that too if you want)

    If you can find the UUID of your swap, you can add it to fstab:
    Code:
    gksudo gedit /etc/fstab
    (but you knew that part)

    add the following line(s):
    Code:
    # /dev/sda6
    UUID={$yourSwapUUID} none            swap    sw              0       0
    be sure to insert your swaps UUID above in place of {$yourSwapUUID} (I know, that is obvious right?!)

    ***Edit***
    Also, I forgot to mention to use the following command to turn the swap on, and then reboot:
    Code:
    swapon -a
    ***/Edit***

    If that doesn't work, read the following for more help: https://help.ubuntu.com/community/SwapFaq
    Last edited by AlexsAntidote; August 19th, 2009 at 06:05 AM. Reason: Fixed a broken code tag by the "blkid" command, added the swapon -a command I forgot (thanks jrox717 for the reminder on that

  2. #32
    Join Date
    Apr 2009
    Location
    Middletown, CT
    Beans
    97
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Hibernate/Suspend Not working

    look at the man page for swapon.

    you can find the UUID for the swap partition by
    Code:
     ls -l /dev/disk/by-uuid
    then add it to your fstab file (I'll leave it to you to figure that out) and then
    Code:
     swapon -a
    Last edited by jrox717; August 19th, 2009 at 05:57 AM.

  3. #33
    Join Date
    Dec 2007
    Location
    Michigan
    Beans
    75
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by jrox717 View Post
    look at the man page for swapon.

    you can find the UUID for the swap partition by
    Code:
     ls -l /dev/disk/by-uuid
    then add it to your fstab file (I'll leave it to you to figure that out) and then
    Code:
     swapon -a
    Thanks jrox717, I forgot to add the swapon command... also, ls -l /dev/disk/by-uuid is good, but I think blkid is a little easier to read. But it's nice to see we're on the same page.

  4. #34
    Join Date
    Apr 2009
    Location
    Middletown, CT
    Beans
    97
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Hibernate/Suspend Not working

    Wow, sorry AlexsAntidote, I must have totally missed your post!

  5. #35
    Join Date
    Dec 2007
    Location
    Michigan
    Beans
    75
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by jrox717 View Post
    Wow, sorry AlexsAntidote, I must have totally missed your post!
    Hey no worries, I'm glad you posted, I forgot to mention the swapon command and you reminded me. So it's all good.

    Take care!

  6. #36
    Join Date
    Aug 2009
    Location
    /MilkyWay/Earth/Canada
    Beans
    306
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by AlexsAntidote View Post
    Yeah it looks like your swap partition is not being mounted at boot...

    Run the following to see if your swap partition exists (post output if you want/need help locating it):
    Code:
    sudo fdisk -l
    Take note of the path, mine is /dev/sda6.

    If your swap partition is listed in the output, you can find it's UUID by doing the following:
    Code:
    blkid
    (post the output for that too if you want)

    If you can find the UUID of your swap, you can add it to fstab:
    Code:
    gksudo gedit /etc/fstab
    (but you knew that part)

    add the following line(s):
    Code:
    # /dev/sda6
    UUID={$yourSwapUUID} none            swap    sw              0       0
    be sure to insert your swaps UUID above in place of {$yourSwapUUID} (I know, that is obvious right?!)

    ***Edit***
    Also, I forgot to mention to use the following command to turn the swap on, and then reboot:
    Code:
    swapon -a
    ***/Edit***

    If that doesn't work, read the following for more help: https://help.ubuntu.com/community/SwapFaq
    Thanks. I'll do this when I get home. I have about 2 hours from the time I get home and when I go to bed. Sports camp leaves me exausted, and I am there for almost 10 hours a day, for the past 2 and a half weeks.

    Scott

  7. #37
    Join Date
    Aug 2009
    Location
    /MilkyWay/Earth/Canada
    Beans
    306
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Hibernate/Suspend Not working

    Okay, so here is what happened:
    Code:
    scott@scott-laptop:~$ sudo fdisk -l
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x63cfb345
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1271    10209276    7  HPFS/NTFS
    /dev/sda2   *        1272       13583    98896140    7  HPFS/NTFS
    /dev/sda3           13584       18940    43030102+  83  Linux
    /dev/sda4           18941       19457     4152802+  82  Linux swap / Solaris
    scott@scott-laptop:~$ blkid
    /dev/loop0: TYPE="squashfs" 
    /dev/sda1: UUID="86126BF0126BE421" LABEL="Recovery" TYPE="ntfs" 
    /dev/sda2: UUID="F0C2BA2BC2B9F5C6" TYPE="ntfs" 
    /dev/sda3: UUID="c3c892fa-37f2-4dc0-8d7b-8d7e8a7258f8" TYPE="ext4" 
    scott@scott-laptop:~$ ls -l /dev/disk/by-uuid
    total 0
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 86126BF0126BE421 -> ../../sda1
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 c3c892fa-37f2-4dc0-8d7b-8d7e8a7258f8 -> ../../sda3
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 cac4572e-80fa-48ae-91bf-86a16d310507 -> ../../sda4
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 F0C2BA2BC2B9F5C6 -> ../../sda2
    scott@scott-laptop:~$
    blkid could not see my Swap partition (/dev/sda4), though ls -l /dev/disk/by-uuid could, though the information it told me looks like it was encrypted or something...

    Any ideas for finding out the UUID of my swap partition from what you see above, or any other way, so I can add it to my /ect/fstab file?

    Scott
    Last edited by Windows Nerd; August 20th, 2009 at 03:23 AM.

  8. #38
    Join Date
    Aug 2009
    Location
    /MilkyWay/Earth/Canada
    Beans
    306
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Hibernate/Suspend Not working

    In other news...I also cannot get any video when I watch youtube videos (I have not tried to view any videos on other sites yet). I think this has something to do with flash or whatnot, though I can hear the audio perfectly fine.

    Scott

    PS: I found a great quote and have added it to my signature. See below
    "I use a Unix based OS, therefore I get laid about as often as I reboot."

  9. #39
    Join Date
    Dec 2007
    Location
    Michigan
    Beans
    75
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by Windows Nerd View Post
    Okay, so here is what happened:
    Code:
    scott@scott-laptop:~$ sudo fdisk -l
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x63cfb345
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1271    10209276    7  HPFS/NTFS
    /dev/sda2   *        1272       13583    98896140    7  HPFS/NTFS
    /dev/sda3           13584       18940    43030102+  83  Linux
    /dev/sda4           18941       19457     4152802+  82  Linux swap / Solaris
    scott@scott-laptop:~$ blkid
    /dev/loop0: TYPE="squashfs" 
    /dev/sda1: UUID="86126BF0126BE421" LABEL="Recovery" TYPE="ntfs" 
    /dev/sda2: UUID="F0C2BA2BC2B9F5C6" TYPE="ntfs" 
    /dev/sda3: UUID="c3c892fa-37f2-4dc0-8d7b-8d7e8a7258f8" TYPE="ext4" 
    scott@scott-laptop:~$ ls -l /dev/disk/by-uuid
    total 0
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 86126BF0126BE421 -> ../../sda1
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 c3c892fa-37f2-4dc0-8d7b-8d7e8a7258f8 -> ../../sda3
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 cac4572e-80fa-48ae-91bf-86a16d310507 -> ../../sda4
    lrwxrwxrwx 1 root root 10 2009-08-19 11:56 F0C2BA2BC2B9F5C6 -> ../../sda2
    scott@scott-laptop:~$
    blkid could not see my Swap partition (/dev/sda4), though ls -l /dev/disk/by-uuid could, though the information it told me looks like it was encrypted or something...

    Any ideas for finding out the UUID of my swap partition from what you see above, or any other way, so I can add it to my /ect/fstab file?

    Scott
    Hey Scott,

    Yeah that's really strange... It's interesting that blkid could not detect the UUID for the swap...

    It looks like your swap's UUID is:

    You can try adding it to your /etc/fstab (gksudo gedit /etc/fstab), here is the line you want to add:

    Code:
    # Swap Partition /dev/sda4
    UUID=cac4572e-80fa-48ae-91bf-86a16d310507 none            swap    sw              0       0
    save, exit, then run

    Code:
    swapon -a
    You may also want to restart your computer.

  10. #40
    Join Date
    Dec 2007
    Location
    Michigan
    Beans
    75
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Hibernate/Suspend Not working

    Quote Originally Posted by Windows Nerd View Post
    In other news...I also cannot get any video when I watch youtube videos (I have not tried to view any videos on other sites yet). I think this has something to do with flash or whatnot, though I can hear the audio perfectly fine.

    Scott

    PS: I found a great quote and have added it to my signature. See below
    Hm... My dad had a similar problem when he first installed Ubuntu... I helped him fix it over the phone while I was distracted with about 5 other things so I'm a little fuzzy on how exactly it went... I think it went something like this:

    close your browser and open your terminal.
    purge your flashplayer and plugin:
    Code:
    sudo apt-get purge flashplugin-nonfree mplayer mozilla-mplayer
    reinstall your flashplayer and plugin
    Code:
    sudo apt-get install flashplugin-nonfree mplayer mozilla-mplayer
    Also, if you don't already have it, install the codecs, medibuntu, and ubuntu-restricted-extras
    Code:
    sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/medibuntu.list
    
    sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
    
    sudo apt-get install non-free-codecs ubuntu-restricted-extras
    Let me know if that fixes it or not.

    p.s. nice quote.
    Last edited by AlexsAntidote; August 20th, 2009 at 08:44 AM. Reason: added a p.s.

Page 4 of 6 FirstFirst ... 23456 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •