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
 
LinkBack Search this Thread
Old 03-29-2012, 02:27 AM   #1
nitin89
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
Post root partition is full. what to do??


hii all..
i am using fedora 16 on VMware with the hdd size of about 22 GB.

i was compiling kernel and the an error occurred that says no space left on device.

the output of 'df' command :

Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 10079084 10077460 0 100% /
devtmpfs 771972 0 771972 0% /dev
tmpfs 780604 224 780380 1% /dev/shm
tmpfs 780604 42064 738540 6% /run
/dev/sda3 10079084 10077460 0 100% /
tmpfs 780604 42064 738540 6% /run
tmpfs 780604 0 780604 0% /sys/fs/cgroup
tmpfs 780604 0 780604 0% /media
/dev/sda8 2015824 35768 1877656 2% /opt
/dev/sda4 2519792 69440 2322352 3% /usr/local
/dev/sda7 2015824 331460 1581964 18% /home
/dev/sda9 1082456 100912 926556 10% /tmp
/dev/sda5 2519792 737556 1654236 31% /var
/dev/sda2 247919 31901 203218 14% /boot


output of "parted /dev/sda print" command :

Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 23.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB bios_grub
2 3146kB 265MB 262MB ext4 ext4 boot
3 265MB 10.8GB 10.5GB ext4
4 10.8GB 13.4GB 2621MB ext4
5 13.4GB 16.0GB 2621MB ext4
6 16.0GB 18.3GB 2307MB linux-swap(v1)
7 18.3GB 20.4GB 2097MB ext4
8 20.4GB 22.5GB 2097MB ext4
9 22.5GB 23.6GB 1126MB ext4

plz help.
 
Old 03-29-2012, 02:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
what are we supposed to say?? delete some stuff you don't need...

if you don't know where the space is, you can run somethign like "du -hx --max-depth=1 /" to see the size of each directory on the / partition, if one looks abnormal, change "/" to that directory and repeat, and you'll quickly track down anything offensively large.
 
1 members found this post helpful.
Old 03-29-2012, 03:46 AM   #3
nitin89
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for reply...

Quote:
Originally Posted by acid_kewpie View Post
if you don't know where the space is, you can run somethign like "du -hx --max-depth=1 /" to see the size of each directory on the / partition, if one looks abnormal, change "/" to that directory and repeat, and you'll quickly track down anything offensively large.
this command give :
0 /dev
16K /lost+found
4.0K /opt
4.0K /home
4.0K /srv
917M /root
4.0K /tmp
28M /etc
11M /bin
2.0K /boot
0 /sys
8.0K /mnt
0 /run
20M /sbin
153M /lib
0 /media
8.3G /usr
4.0K /var
0 /proc
9.4G /

it tells that "/" occupies 9.4 GB.
what does that mean?? and where are the files located.??
 
Old 03-29-2012, 03:50 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
that's the total of the others. 8.4gb in /usr. have you been building lots of stuff from source and not cleaning it up properly? 900mb in /root is generally too much for a well managed system I think, what are you storing there?
 
Old 03-29-2012, 05:27 AM   #5
nitin89
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Actually i am new to linux.

I am doing driver development so somebody told me some packages to install during fedora installation in software development section.
after finishing installation the next thing that i did was compiling kernel.

I think the packages that i installed are very heavy.
so should i reinstall fedora or there is any other way??
 
Old 03-29-2012, 06:00 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,412

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Quote:
so should i reinstall fedora or there is any other way??
First you just checkout the packages which you don't need and remove those packages, then again check the disk usage. Again go through your /usr and / partition and check the unnecessary files. Then think over reinstalling the OS if it need to be.
 
Old 03-29-2012, 07:08 AM   #7
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 209

Rep: Reputation: 65
Quote:
Originally Posted by nitin89 View Post
Code:
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda3       10079084 10077460         0 100% /
/dev/sda8        2015824    35768   1877656   2% /opt
/dev/sda4        2519792    69440   2322352   3% /usr/local
/dev/sda7        2015824   331460   1581964  18% /home
/dev/sda9        1082456   100912    926556  10% /tmp
/dev/sda5        2519792   737556   1654236  31% /var
/dev/sda2         247919    31901    203218  14% /boot
You've got 9 gig or so of free space that you've locked away for other uses, 2.5G you've reserved for /usr/local but you're using 0.07G and so on.

I suspect you're also doing your development under /usr/src/linux, I do mine in ~/src/linux, make deb-pkg and dpkg -i the result, everything works. Fedora uses rpm, it looks like you'd want to do make binrpm-pkg and install that however fedora likes, anybody who actually knows fedora wants to chime in with details please do.

So assuming I'm right about /usr/src, I'd recommend back up everything, boot up a gparted CD and use it to shrink /opt and /usr/local and /var and eliminate the /tmp partition, put maybe 4G of the 5.5G that freed up into /home and the rest into / (gparted is very easy, it'll move your partitions around for you), edit /etc/fstab to put /tmp on a tmpfs, e.g.
Code:
tmpfs /tmp tmpfs nodev,nosuid,size=20%,mode=1777 0 0
then reboot into your newly-capacious system, move /usr/src/linux to ~/src/linux and be on your merry way. For bonus points you could just fold everything but /home into the root partition, with only 22G to seek across and a single-user system like yours there's basically no benefit to divvying it up like that.

(edit: or you could leave the source tree where it is and put the free space wherever it's needed)

Last edited by jthill; 03-29-2012 at 07:10 AM. Reason: mention the leave--it-in-/usr option I stupidly ignored
 
1 members found this post helpful.
Old 03-30-2012, 05:03 AM   #8
nitin89
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for the help...

Actually i have to add some more storage in VMware. Yes i have been building a lot of stuff in kernel.
its solved now.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] my root partition becomes full matters Slackware 2 10-15-2011 05:23 AM
root partition full redhawk1973 Ubuntu 8 03-10-2009 10:07 AM
root partition full laan97ac Mandriva 6 07-23-2007 01:09 PM
Root partition full juleslinux Red Hat 4 01-12-2006 10:00 AM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 01:19 PM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration