LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2015, 11:34 PM   #1
Yinka
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Rep: Reputation: Disabled
increasing my ubuntu space


Hi All,

As a newbie, I'm trying to increase my space in ubuntu 14.04 as I'm getting a low memory complaint. Should go ahead increasing or just reinstall with larger capacity?

Thanks so much!
 
Old 02-21-2015, 11:51 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Increase the space - you won't learn anything by re-installing.
 
Old 02-22-2015, 02:57 AM   #3
jross
Member
 
Registered: Apr 2014
Distribution: Xubuntu 14.04
Posts: 164

Rep: Reputation: Disabled
I'm confused. What does memory have to do with space?
 
Old 02-22-2015, 04:29 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,324

Rep: Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730
Quote:
Originally Posted by jross View Post
I'm confused. What does memory have to do with space?
This. But, if you really do mean disk space then it depends how your partitions are set up but in general it is probably easier to boot from a gparted live image and increase the size of the relevant partition there -- assuming, of course, that there is spare space to expand into or another partition you can decrease the size of.
http://gparted.org/livecd.php

Last edited by 273; 02-22-2015 at 02:13 PM. Reason: Typo'
 
Old 02-22-2015, 01:59 PM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
I assume that this isn't lack of RAM memory. Type into a command entry window
Code:
df -h
If it complains that this must be run as root, change the command to
Code:
sudo df -h
Post the output to the forum.

You should see something very vaguely like...
Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        20G  7.0G   12G  39% /
udev             10M     0   10M   0% /dev
tmpfs           791M  948K  790M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.4G  792K  2.4G   1% /run/shm
/dev/sda1      1022M  128K 1022M   1% /boot/efi
/dev/sda4       148G   14G  127G  10% /home
/dev/sda5       577G  267G  281G  49% /video
/dev/sdb2        88G   23G   62G  27% /backup
/dev/sdb3       296G   84G  197G  30% /filestore
none            4.0K     0  4.0K   0% /sys/fs/cgroup
 
Old 02-23-2015, 12:52 AM   #6
Yinka
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks all.

This the output (from typing df - h in the shell)
Click image for larger version

Name:	Screenshot from 2015-02-22 21:50:07.png
Views:	10
Size:	52.3 KB
ID:	17641

Filesystem Size Used Avail Use% Mounted on
/dev/sda7 19G 3.5G 14G 21% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 787M 1.3M 786M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 76K 3.9G 1% /run/shm
none 100M 40K 100M 1% /run/user
/dev/sda8 6.3G 6.0G 22M 100% /home
/dev/sda1 496M 29M 468M 6% /boot/efi
 
Old 02-23-2015, 01:26 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Run this from a terminal, and use [code] tags when posting output to maintain layout (click the "Go Advanced" button below, then the "#")
Code:
sudo parted /dev/sda "print free"
 
Old 02-23-2015, 01:47 AM   #8
Yinka
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
code

Many thanks SIG00. See below

Code:
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name Flags
17.4kB 1049kB 1031kB Free Space
1 1049kB 525MB 524MB fat32 EFI system partition boot
2 525MB 567MB 41.9MB fat32 Basic data partition hidden
3 567MB 701MB 134MB Microsoft reserved partition msftres
4 701MB 2849MB 2147MB ntfs Basic data partition hidden, diag
5 2849MB 960GB 957GB ntfs Basic data partition msftdata
7 960GB 980GB 20.0GB ext4
8 980GB 987GB 7000MB ext4
9 987GB 991GB 4457MB linux-swap(v1)
6 991GB 1000GB 8998MB ntfs Microsoft recovery partition hidden, diag
1000GB 1000GB 1032kB Free Space
 
Old 02-23-2015, 01:50 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Put [code] tags around the output, and I'll look at it.
 
Old 02-23-2015, 01:54 AM   #10
Yinka
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Oh, thanks. I'll try that again now...
Code:
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name Flags
17.4kB 1049kB 1031kB Free Space
1 1049kB 525MB 524MB fat32 EFI system partition boot
2 525MB 567MB 41.9MB fat32 Basic data partition hidden
3 567MB 701MB 134MB Microsoft reserved partition msftres
4 701MB 2849MB 2147MB ntfs Basic data partition hidden, diag
5 2849MB 960GB 957GB ntfs Basic data partition msftdata
7 960GB 980GB 20.0GB ext4
8 980GB 987GB 7000MB ext4
9 987GB 991GB 4457MB linux-swap(v1)
6 991GB 1000GB 8998MB ntfs Microsoft recovery partition hidden, diag
1000GB 1000GB 1032kB Free Space
 
Old 02-23-2015, 02:04 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,324

Rep: Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730
Well, your home partition is full. That doesn't usually stop you being able to upgrade but you might want to delete some data from it anyhow, just in case. 6GB looks fine for a home partition so I'm guessing you've put some files in there yourself.
 
Old 02-23-2015, 02:12 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Don't know how you did that ... Should look like this:
Code:
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system     Name                          Flags
        17.4kB  1049kB  1031kB  Free Space
 1      1049kB  525MB   524MB   fat32           EFI system partition          boot
 2      525MB   567MB   41.9MB  fat32           Basic data partition          hidden
 3      567MB   701MB   134MB                   Microsoft reserved partition  msftres
 4      701MB   2849MB  2147MB  ntfs            Basic data partition          hidden, diag
 5      2849MB  960GB   957GB   ntfs            Basic data partition          msftdata
 7      960GB   980GB   20.0GB  ext4
 8      980GB   987GB   7000MB  ext4
 9      987GB   991GB   4457MB  linux-swap(v1)
 6      991GB   1000GB  8998MB  ntfs            Microsoft recovery partition  hidden, diag
        1000GB  1000GB  1032kB  Free Space
As you can see there is no unallocated space (ignore the bit at the end of the disk), so reinstalling likely wouldn't have helped.
Best option might be to reduce the NTFS partition at /dev/sda5 - then you can move the Ubuntu root (/dev/sda7) and add the space to your /home (/dev/sda8).
Do it from the gparted liveCD as suggested - it's a GUI like Parition Magic; you can resize and "drag" partitions to get the free space where you need it (adjoining /dev/sda8). Good tool, good learning experience.
 
Old 02-23-2015, 02:13 AM   #13
Yinka
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks 273.

Can I increase my home partition space then - I have up to 1TB on my PC. I really need the home partition to be large as I need to work with heavy files and programs.

I just installed ubuntu and only downloaded a zip file for some remote sensing processing and was surprised Im out of space.

Thanks so much!
 
Old 02-23-2015, 02:23 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,324

Rep: Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730
Quote:
Originally Posted by Yinka View Post
Thanks 273.

Can I increase my home partition space then - I have up to 1TB on my PC. I really need the home partition to be large as I need to work with heavy files and programs.

I just installed ubuntu and only downloaded a zip file for some remote sensing processing and was surprised Im out of space.

Thanks so much!
You only seem to have 1GB free space so see the post from syg00 above yours for some ideas. I also see you allocated 19GB for the root partition which, while others may disagree, I think is probably a good plan in case you intend to install other desktop environments or use 32 bit programs.r
I think the following partition is the one to resize and I would do it from Windows since it's a Windows parition:
5 2849MB 960GB 957GB ntfs Basic data partition msftdata
 
Old 02-23-2015, 03:39 AM   #15
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 118

Rep: Reputation: Disabled
It is safer to backup your critical data on an external drive before you resize partitions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing space ubuntu 12.4 server glennbtn Linux - Server 2 11-20-2014 02:59 AM
increasing disk space stu_mueller Slackware 6 04-12-2008 02:45 AM
Increasing disk space Shankarrajus Fedora 1 04-22-2005 09:12 PM
Increasing swap space rupesh_pulikool Linux - Networking 1 09-12-2004 11:40 PM
Increasing my disk space ekoome Red Hat 6 09-22-2003 05:40 AM


All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration