LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-09-2014, 01:08 PM   #1
Mathlover
LQ Newbie
 
Registered: May 2014
Posts: 11

Rep: Reputation: Disabled
How to get more space on hard disk for fedora?


Hi,
I installed fedora 4 days ago. It needed 10.96 gb memory on hard disk but i used 12 gb. Today when i tried to save a c program i got a warning that no memory is left on the disk to save the program and i haven't saved anything after installing it. I used

]$ free
total used free shared buffers cached
Mem: 8088352 1573816 6514536 156136 30316 531256
-/+ buffers/cache: 1012244 7076108
Swap: 8142844 0 8142844

But as i am new i couldn't understand why i am getting such a warning. Can anybody tell me?

Last edited by Mathlover; 05-09-2014 at 01:19 PM.
 
Old 05-09-2014, 01:16 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Hi and welcome to LQ.

Can you provide the output of the following command?

Code:
df -h
 
2 members found this post helpful.
Old 05-09-2014, 01:16 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
reinstall and use a bigger partition

i would use
1 gig for /boot
15 gig for /
15 to 25 gig for /home
and 2 gig for SWAP
 
Old 05-09-2014, 01:21 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Mathlover View Post
Hi,
I installed fedora 4 days ago. It needed 10.96 gb memory on hard disk but i used 12 gb. Today when i tried to save a c program i got a warning that no memory is left on the disk to save the program and i haven't saved anything after installing it. I used

]$ free
total used free shared buffers cached
Mem: 8088352 1573816 6514536 156136 30316 531256
-/+ buffers/cache: 1012244 7076108
Swap: 8142844 0 8142844

But as i am new i couldn't understand why i am getting such a warning. Can anybody tell me?
The output of 'free' shows the usage of memory (RAM), not disk space.
 
Old 05-09-2014, 01:26 PM   #5
Mathlover
LQ Newbie
 
Registered: May 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
@sycamorex

the output of df -h is
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 3.6G 3.4G 0 100% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 148K 3.9G 1% /dev/shm
tmpfs 3.9G 992K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 16K 3.9G 1% /tmp
/dev/sda9 477M 74M 374M 17% /boot
/dev/sda2 256M 37M 220M 15% /boot/efi

How can i increse the size of the partition?

Last edited by Mathlover; 05-09-2014 at 01:37 PM.
 
Old 05-09-2014, 01:27 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
The free command you used is related to RAM

As already mentioned, df -h


But, I would add -T

Code:
df -h -T
That will also display the filesystem types
If desperate, and ext3 or ext4 there is a tune2fs command to release some space..

However, that is more useful with large partitions
 
Old 05-09-2014, 01:28 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
your fedora partition is wicked small. i would boot a live usb (like gparted-live) and use gparted to increase the size of the partition.
 
Old 05-09-2014, 01:31 PM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Mathlover View Post
@sycamorex

the output of df -h is
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 3.6G 3.4G 0 100% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 148K 3.9G 1% /dev/shm
tmpfs 3.9G 992K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 16K 3.9G 1% /tmp
/dev/sda9 477M 74M 374M 17% /boot
/dev/sda2 256M 37M 220M 15% /boot/efi
I assume you let the partitioner do the split. I don't think it's the most optimal use of your relatively limited space. In the future, I'd split it manually (see John's example above. As it is now (looking at your output), you've got no more free space in your home directory which is under / (/home/user).
 
Old 05-09-2014, 01:42 PM   #9
Mathlover
LQ Newbie
 
Registered: May 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
@sycamorex

What should i do further, i don't know how to reinstall or increase the disk memory?
 
Old 05-09-2014, 01:45 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Mathlover View Post
@sycamorex

What should i do further, i don't know how to reinstall or increase the disk memory?
To be honest with you, the best and actually the easiest way would be to reinstall the system. Installing Fedora (or most other Linux distros) is not that difficult anymore. There are hundreds of tutorials out there (websites, youtube videos, etc.)

Did someone else previously install it for you?
 
1 members found this post helpful.
Old 05-09-2014, 01:47 PM   #11
Mathlover
LQ Newbie
 
Registered: May 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sycamorex View Post
To be honest with you, the best and actually the easiest way would be to reinstall the system. Installing Fedora (or most other Linux distros) is not that difficult anymore. There are hundreds of tutorials out there (websites, youtube videos, etc.)

Did someone else previously install it for you?
no, i installed it myself. But how much memory should i allocate for fedora partition ideally? I have no use of it except c programming.

Last edited by Mathlover; 05-09-2014 at 01:51 PM.
 
Old 05-09-2014, 01:47 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this is a dual boot wiht what windows 7 ?

use the win7 built in tools to resize the partition

defrag the windows partition
re defrag and remove unneeded files
-- basic windows built in tools and normal everyday "spring cleaning "

use the built in win7 tools to shrink the windows drive to makre room for at least 30 gig fore fedora 20 ( 50 to 100 gig would be better)

then reinstall fedora to the larger partition
 
Old 05-09-2014, 01:49 PM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Yeah, root us full, only 3.6G to start with

I'm guessing your 12G got swallowed by swap

See
Code:
cat /proc/swaps
Probably about 8gig, to 'match' the ram

Since 4days old, start over...
Look at manually configuring partitions and reduce the size of swap

the reason swap is so large will likely be to support hibination ,, do you need that?

2gb swap should do, but I have no idea what this box is for
 
Old 05-09-2014, 01:51 PM   #14
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Mathlover View Post
no, i installed it myself.
Great. So you can do it again

See what John wrote above. To elaborate on that, see this article
https://help.ubuntu.com/community/Ho...dowsPartitions

It is about Ubuntu but most of the stuff about making space for linux is relevant to any linux distro.

Last edited by sycamorex; 05-09-2014 at 01:58 PM.
 
Old 05-09-2014, 01:54 PM   #15
Mathlover
LQ Newbie
 
Registered: May 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
this is a dual boot wiht what windows 7 ?

use the win7 built in tools to resize the partition

defrag the windows partition
re defrag and remove unneeded files
-- basic windows built in tools and normal everyday "spring cleaning "

use the built in win7 tools to shrink the windows drive to makre room for at least 30 gig fore fedora 20 ( 50 to 100 gig would be better)

then reinstall fedora to the larger partition
It is a dual boot with windows 8.1
 
  


Reply



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
Where has my hard disk space gone deathalele Linux - Hardware 1 03-09-2009 12:55 PM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 12:33 PM
Problem with freeing disk space on a two hard disk Fedora Core 4 box favadalikhan Linux - Server 1 04-29-2008 09:04 PM
Hard disk space shaahul Linux - Newbie 1 08-25-2003 10:48 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 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
Open Source Consulting | Domain Registration