Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Moving Away from Wubi

  1. #11
    Join Date
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Moving Away from Wubi

    Quote Originally Posted by bcbc View Post
    The live CD will find and use any existing swap partition... I don't think a normal install will do the same thing.

    Also, it won't be set up for hibernation - you'll have to do that manually which is a (little bit of a) pain.

    What was the error?

    Anyway - with that much RAM you won't notice it at first. Once you've got everything working fine I can assist with your setup of the swap if you need help. Kind of curious though why it didn't work though!
    Well, I'm out of the live CD now, so I can't post the error message.
    I don't plan to do hibernation-I've heard it can be really unreliable. I'm currently using the tutorial on the SwapFaq page.
    Edit: I found out how to utilize the swap space.
    I was in GParted, right clicked on my swap space, and selected "Swapon."
    I then went to terminal and typed in:
    Code:
    free -m
    And, I got this:
    Code:
                        total       used       free     shared    buffers     cached
    Mem:                7979       7261        717          0         35       1911
    -/+ buffers/cache:  5314       2665
    Swap:              16378          0      16378
    So, my swap isn't being used at the moment, but it's nice to know it's there when I need it.
    Last edited by Ubun2to; June 28th, 2012 at 03:55 AM.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  2. #12
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Moving Away from Wubi

    You should add it to /etc/fstab so it's mounted automatically:

    Code:
    sudo cp /etc/fstab /etc/fstab-backup
    echo "UUID=$(sudo blkid -o value -s UUID /dev/sda3)    none    swap    sw    0    0" | sudo tee --append /etc/fstab
    Or you can manually edit it yourself. The above commands
    1. backup the /etc/fstab file in case you make a mistake, and
    2. append a line that adds your swap.
    It will end up looking like this in /etc/fstab:
    UUID=xxxx-xxxx-xxxx-xxxx none swap sw 0 0
    (where xxx-xxx is the UUID of /dev/sda3)

    Breakdown of the command:
    "echo" outputs a "" string to standard output (screen)
    Inside that string "sudo blkid" extracts the UUID of your swap partition
    "|" pipes the output to tee
    "tee --append" will append the output to the end of the /etc/fstab file

    The blkid command and the tee command require root privileges (hence the use of sudo)

  3. #13
    Join Date
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Moving Away from Wubi

    Quote Originally Posted by bcbc View Post
    You should add it to /etc/fstab so it's mounted automatically:

    Code:
    sudo cp /etc/fstab /etc/fstab-backup
    echo "UUID=$(sudo blkid -o value -s UUID /dev/sda3)    none    swap    sw    0    0" | sudo tee --append /etc/fstab
    Or you can manually edit it yourself. The above commands
    1. backup the /etc/fstab file in case you make a mistake, and
    2. append a line that adds your swap.
    It will end up looking like this in /etc/fstab:
    UUID=xxxx-xxxx-xxxx-xxxx none swap sw 0 0
    (where xxx-xxx is the UUID of /dev/sda3)

    Breakdown of the command:
    "echo" outputs a "" string to standard output (screen)
    Inside that string "sudo blkid" extracts the UUID of your swap partition
    "|" pipes the output to tee
    "tee --append" will append the output to the end of the /etc/fstab file

    The blkid command and the tee command require root privileges (hence the use of sudo)
    Code:
    UUID=b3c81570-72f2-4425-9331-6309672e95b7    none    swap    sw    0    0
    Code:
    root@ubuntu:/home/administrator# free -m
                                               total       used       free     shared    buffers     cached
    Mem:                                 7979       7752        226          0        253       1528
    -/+ buffers/cache:        5970       2008
    Swap:                                         0          0          0
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

  4. #14
    Join Date
    Nov 2009
    Location
    North Vancouver
    Beans
    Hidden!
    Distro
    Edubuntu 14.04 Trusty Tahr

    Re: Moving Away from Wubi

    To activate:
    Code:
    sudo swapon -a
    Or when you reboot it gets pulled automatically from the /etc/fstab...

  5. #15
    Join Date
    Mar 2012
    Location
    /home/ubun2to
    Beans
    356
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Moving Away from Wubi

    Quote Originally Posted by bcbc View Post
    To activate:
    Code:
    sudo swapon -a
    Or when you reboot it gets pulled automatically from the /etc/fstab...
    Thanks. The command worked.
    Backups are amazing. 99% of data loss can be prevented by spending less than $100 on an external drive.
    If you have seen an error, there is a good chance someone else has, too. Google is your friend.

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •