LinHES Forums
http://forum.linhes.org/

warning:root partition 90% full
http://forum.linhes.org/viewtopic.php?f=21&t=23668
Page 1 of 2

Author:  drjenk [ Mon Dec 31, 2012 5:42 pm ]
Post subject:  warning:root partition 90% full

Hi,
I just did a fresh install of this distro a couple days ago, I went with the default partition options. I believe I recall 3gb for root partition. I just noticed during video playback a warning flash on the screen that the root partition is 90% full. I haven't downloaded any themes yet, haven't done much really except for fuss with a sound issue for a while, and schedule some recordings (football games etc.). Is there anything that might take up more space over time, perhaps logs, that I need to disable or manually purge now and then? Or should I perhaps re-install with a larger root partition, say 5-10gb?

Thanks
David J.

Author:  cesman [ Mon Dec 31, 2012 6:44 pm ]
Post subject:  Re: warning:root partition 90% full

By default, we use a 5 gig /. Over time, /home/mythtv will start to consume more space. You can more /home/mythtv to /myth and symlink it. jams has made accommodations for this in R8 with a new filesystem layout.

Author:  drjenk [ Mon Dec 31, 2012 9:36 pm ]
Post subject:  Re: warning:root partition 90% full

Hi,
I went ahead and did this, stopped the backend first. I did a mv /home/mythtv/* /myth. Managed to create the symlink by doing:

ln -s /myth /home/mythtv

got a "myth" link under /home/mythtv that pointed to -> /myth. So I moved /home/mythtv to /home/mythtv.bak, and renamed the "myth" symlink to mythtv in /home, so that I have:

lrwxrwxrwx 1 root root 5 Dec 31 18:41 mythtv -> /myth

Does that look right?
Restarted the backend/fronted, I apparently missed some files in the move because my theme, and some settings were back to default, and I actually can't change the theme. Are there some permissions I need to change as well? Thanks.

Author:  graysky [ Tue Jan 01, 2013 5:02 am ]
Post subject:  Re: warning:root partition 90% full

You probably want to isolate the home dir on the /myth partition rather than dumping to the top level as I believe you did... in other words:

Code:
# mv /home/mythtv /myth/mythtv-homedir
# ln -s /myth/mythtv-homedir /home/mythtv


I'm guessing that you left behind all your .files and .dirs in the original /home/mythtv since you moved it via the command you posted and not the one I did :)

We might be putting the cart before the horse... before you move the homedir, you should verify where exactly the bloat is occurring; it could be /var/log for example.
1) Restore the original /home/mythtv by manually moving the files back to /home/mythtv from /myth
2) Post the output of: sudo du -hd 1 /

Author:  drjenk [ Tue Jan 01, 2013 8:43 pm ]
Post subject:  Re: warning:root partition 90% full

Ya that is what I did :(. I'm not sure what content belongs under /myth originally, other than the "tv" directory, to know what to move back. I can guess at most of it though. The ls output is:

Code:
drwxrwxrwx 24 mythtv mythtv  4096 Jan  1 09:04 .
drwxr-xr-x 24 root   root    4096 Dec 29 04:49 ..
-rw-r--r--  1 mythtv mythtv 31957 Jan  1 09:04 appletrailer.xml
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 archive
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 backup
-rw-------  1 mythtv mythtv    72 Dec 29 08:59 .bash_history
-rwxr-xr-x  1 mythtv mythtv    16 Dec 25  2010 .bash_profile
-rwxr-xr-x  1 mythtv mythtv    48 Dec 25  2010 .bashrc
drwxr-xr-x  2 mythtv mythtv    27 Dec 31 18:42 .config
drwxr-xr-x  2 mythtv mythtv   153 Dec 31 22:02 .fluxbox
drwxrwxrwx  3 mythtv mythtv    37 Dec 31 20:09 gallery
drwxrwxrwx  9 mythtv mythtv   105 Dec 22  2011 games
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 image_cache
drwxr-xr-x  2 mythtv http      54 Dec 29 04:50 ipodfeed
lrwxrwxrwx  1 mythtv mythtv    16 Dec 29 04:52 .keylaunchrc -> /etc/keylaunchrc
lrwxrwxrwx  1 mythtv mythtv    11 Dec 29 04:49 .lircrc -> /etc/lircrc
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 motion
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 music
drwxr-xr-x  2 mythtv mythtv     6 Aug  9 00:42 mythexport
drwxr-xr-x 12 mythtv mythtv  4096 Jan  1 08:30 .mythtv
drwx------  3 mythtv mythtv    20 Dec 31 13:00 .nv
drwxrwxrwx  4 mythtv mythtv    48 Dec 22  2011 phone
drwxrwxrwx  2 mythtv mythtv    88 Jan  1 18:30 pretty
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 stream
drwxrwxrwx  3 mythtv mythtv  4096 Dec 31 12:32 system_backups
drwxr-xr-x  3 mythtv mythtv    33 Dec 29 04:52 .tilda
drwxrwxrwx  2 mythtv mythtv    19 Dec 22  2011 tmp
drwxrwxrwx  2 mythtv mythtv    83 Jan  1 00:58 tv
drwxrwxrwx  4 mythtv mythtv    47 Dec 22  2011 video
drwxrwxrwx  7 mythtv mythtv    81 Dec 22  2011 video_stuff
-rw-------  1 mythtv mythtv   108 Dec 29 05:00 .Xauthority
-rw-r--r--  1 mythtv mythtv    17 Dec 29 05:14 .Xdefaults
-rwxr-xr-x  1 mythtv mythtv   271 Dec 25  2010 .xinitrc
-rw-r--r--  1 root   root    7510 Dec 31 12:55 .xscreensaver
-rwxr-xr-x  1 mythtv mythtv   100 Dec 25  2010 .xsession


Of course all of the hidden directories I imagine are home directory specific. Is "tv" the only directory or file that belongs under /myth? Thanks

Author:  graysky [ Tue Jan 01, 2013 8:52 pm ]
Post subject:  Re: warning:root partition 90% full

No, there is more that belongs under /myth
I haven't run LH in a while but from memory, gallery, games, image_cache, ipodfeed, motion, music, phone, pretty, video, mythexport, streams

You didn't post the output of the du command to diagnose your thread title's problem...

Author:  drjenk [ Tue Jan 01, 2013 10:02 pm ]
Post subject:  Re: warning:root partition 90% full

Here is that output:

Code:
722G    /mnt
3.3M    /tmp
107G    /data
192K    /run
1.7G    /usr
4.0K    /service
119M    /lib
0       /sys
6.1G    /myth
8.7M    /etc
4.2M    /bin
188M    /home
188M    /var
0       /dev
16K     /lost+found
12K     /media
560K    /opt
5.8M    /root
23M     /boot
du: cannot access `/proc/1803/task/1803/fd/4': No such file or directory
du: cannot access `/proc/1803/task/1803/fdinfo/4': No such file or directory
du: cannot access `/proc/1803/fd/4': No such file or directory
du: cannot access `/proc/1803/fdinfo/4': No such file or directory
0       /proc
16K     /srv
16M     /sbin
836G    /

Author:  graysky [ Tue Jan 01, 2013 10:09 pm ]
Post subject:  Re: warning:root partition 90% full

Guess I don't see why your / partition is 90 % full.... if you moved your /home/mythtv back to it then you're total root usage shouldn't be near 90 % of 5 G.

Ballparking it, you have 2,260 MB of 5,000 MB used:
drjenk wrote:
Code:
3.3M    /tmp
192K    /run
1.7G    /usr
4.0K    /service
119M    /lib
8.7M    /etc
4.2M    /bin
188M    /home
188M    /var
12K     /media
560K    /opt
5.8M    /root
23M     /boot
16K     /srv
16M     /sbin

Author:  drjenk [ Tue Jan 01, 2013 11:24 pm ]
Post subject:  Re: warning:root partition 90% full

Yes I did move mythtv back to /home prior to running the du command. I'm still getting the message, just saw 94%. Perhaps I will try symlink again, correctly this time, to see if that helps.

Author:  marc.aronson [ Wed Jan 02, 2013 12:19 am ]
Post subject:  Re: warning:root partition 90% full

Code:
107G    /data


107G for data is very large. My /data is 443M.

Here is the output from doing "cd /myth; ls" on my LINHES 7.2 machine in case that helps:
Code:
archive  games        miro        pretty     stream          video_stuff
backup   image_cache  motion      -------    system_backups
-------  ipodfeed     music       -------    tmp
------   ----------   mythexport  ----       tv
gallery  -------      phone       ---------  video


The dashes ("----") are directory names I've wiped out because they are directories I created and are not a part of the standard LINHES install...

Author:  mythedoff [ Wed Jan 02, 2013 1:46 pm ]
Post subject:  Re: warning:root partition 90% full

I was seeing the message on my new frontend only install and have not had the problem since I:

Code:
sudo pacman -Sc


The arch wiki suggests this can cause problems and suggests adding to /etc/pacman.conf
Code:
CleanMethod = KeepInstalled


https://wiki.archlinux.org/index.php/Pacman_Tips

In my pacman.conf CleanMethod = KeepInstalled is commented out.
Others here can probably advice on the risk of doing this especially on a backend install.

Author:  graysky [ Wed Jan 02, 2013 2:27 pm ]
Post subject:  Re: warning:root partition 90% full

Yes, /var/cache/pacman/pkg can fillup over time and purging it should be fine as you posted. Bleachbit is another method to keep unneeded files away. Dunno if it's in the LH repos or not.

Author:  brfransen [ Wed Jan 02, 2013 3:00 pm ]
Post subject:  Re: warning:root partition 90% full

cacheclean runs on the weekly cron job (/etc/cron.weekly/cacheclean.cron) and is set to keep the 3 newest packages in the cache.

Author:  drjenk [ Thu Jan 03, 2013 12:30 am ]
Post subject:  Re: warning:root partition 90% full

Thanks all for the info. I did do the symlink of /home/mythtv to /myth/mythtv-homedir but perhaps I didn't need to with this latest info (?). I did to the pacman -Sc command, my /data directory went down to 65G. But that is not in the root / partition, correct? Anyway I have not notice this message again but I haven't watched much this evening.

Author:  marc.aronson [ Thu Jan 03, 2013 12:43 am ]
Post subject:  Re: warning:root partition 90% full

drjenk wrote:
my /data directory went down to 65G. But that is not in the root / partition, correct? Anyway I have not notice this message again but I haven't watched much this evening.


On my LINHES 7.2 system, "/data" is on the root partition. Perhaps you are on a new version that things have changed. I am still surprised that you have 65GB in that directory...

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/