Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
Originally Posted by devils casper Execute this Code: free -m Post output here. twinkle@Linux:~$ free -m total used free shared buffers cached Mem: 500 493 6 0 1 90 -/+ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Newbie
    Join Date
    Mar 2008
    Location
    England, Manchester.
    Posts
    114

    Quote Originally Posted by devils casper View Post
    Execute this
    Code:
    free -m
    Post output here.
    twinkle@Linux:~$ free -m
    total used free shared buffers cached
    Mem: 500 493 6 0 1 90
    -/+ buffers/cache: 402 97
    Swap: 0 0 0


    wow... i suppose that could be the problem?
    i dont know how to add a swap partition to it already installed...

  2. #12
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Its really easy to create new SWAP partition through GParted Partition Manager. Its available in Ubuntu CD. You have to boot up from Ubuntu CD and look for it in Administration Menu.

    Lets check partition structure of your Harddisk. Execute this
    Code:
    sudo fdisk -l
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #13
    Linux Newbie
    Join Date
    Mar 2008
    Location
    England, Manchester.
    Posts
    114
    Quote Originally Posted by devils casper View Post
    Its really easy to create new SWAP partition through GParted Partition Manager. Its available in Ubuntu CD. You have to boot up from Ubuntu CD and look for it in Administration Menu.

    Lets check partition structure of your Harddisk. Execute this
    Code:
    sudo fdisk -l
    Post output here.

    * Its small L in fdisk -l.
    twinkle@Linux:~$ sudo fdisk -l

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0d3d0d3c

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 784 6297448+ 7 HPFS/NTFS
    /dev/sda2 785 9729 71850712+ 5 Extended
    /dev/sda5 785 1201 3349521 7 HPFS/NTFS
    /dev/sda6 1202 9250 64653561 7 HPFS/NTFS
    /dev/sda7 9251 9729 3847536 83 Linux

  4. #14
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    It looks like you have assigned around 4GB+ space to Ubuntu. ( You can check partition size through df -h command. ) You should have create at least 6GB partition for / and 512MB for SWAP.

    Boot up from Ubuntu CD, open GParted Partition Manager. Shrink /dev/sda6 partition and merge free space in /dev/sda7. Shrink /dev/sda7 and create new 512MB parition. It will be /dev/sda8. Format /dev/sda6 in SWAP filesystem.
    You have to edit /etc/fstab file after create SWAP file.

    Create new SWAP Partition and post the output of fdisk -l command after that again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #15
    Linux Newbie
    Join Date
    Mar 2008
    Location
    England, Manchester.
    Posts
    114
    Quote Originally Posted by devils casper View Post
    It looks like you have assigned around 4GB+ space to Ubuntu. ( You can check partition size through df -h command. ) You should have create at least 6GB partition for / and 512MB for SWAP.

    Boot up from Ubuntu CD, open GParted Partition Manager. Shrink /dev/sda6 partition and merge free space in /dev/sda7. Shrink /dev/sda7 and create new 512MB parition. It will be /dev/sda8. Format /dev/sda6 in SWAP filesystem.
    You have to edit /etc/fstab file after create SWAP file.

    Create new SWAP Partition and post the output of fdisk -l command after that again.
    twinkle@Linux:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda7 3.7G 3.1G 400M 89% /
    varrun 251M 100K 250M 1% /var/run
    varlock 251M 0 251M 0% /var/lock
    udev 251M 68K 250M 1% /dev
    devshm 251M 24K 250M 1% /dev/shm
    lrm 251M 44M 207M 18% /lib/modules/2.6.24-19-generic/volatile
    gvfs-fuse-daemon 3.7G 3.1G 400M 89% /home/twinkle/.gvfs
    /dev/sda5 3.2G 3.2G 32M 100% /media/Documents


    When i expand my linux partition will it still boot? what do i do with fstab?

  6. #16
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Nothing will go wrong with Linux partition unless you format it.
    There is not much free space available in Ubuntu's partition.

    I have to check exact device name assigned to SWAP partition. Post output of fdisk -l command after creating SWAP partition.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #17
    Linux Newbie
    Join Date
    Mar 2008
    Location
    England, Manchester.
    Posts
    114
    Quote Originally Posted by devils casper View Post
    Nothing will go wrong with Linux partition unless you format it.
    There is not much free space available in Ubuntu's partition.

    I have to check exact device name assigned to SWAP partition. Post output of fdisk -l command after creating SWAP partition.
    Thankyou so much for your help i seem to have somehow created it :P

    twinkle@Linux:~$ free -m
    total used free shared buffers cached
    Mem: 500 493 6 0 4 196
    -/+ buffers/cache: 292 207
    Swap: 511 0 511


    Thankyou again for solving my problems, i was amazed at how much you knew

  8. #18
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Glad to help you and Well Done !
    Have you edited /etc/fstab file? It looks like everything working fine right now.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #19
    Linux Newbie
    Join Date
    Mar 2008
    Location
    England, Manchester.
    Posts
    114
    No, I didn't edit this file... should that be done?

  10. #20
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    /etc/fstab file must have entry for SWAP partition.
    Execute this
    Code:
    free
    sudo fdisk -l
    cat /etc/fstab
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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