Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Root Filesystem Suddenly Full
New Posts  All Forums:Forum Nav:

Root Filesystem Suddenly Full

post #1 of 9
Thread Starter 
Hi everyone, I'm suddenly having a problem with my Ubuntu machine. I have a 32GB SSD that is solely for my Ubuntu OS and my XBMC media center application. All of a sudden I am getting an error message that this root filesystem is full. Now before when checking on the capacity of the drive it was always around about 30% full. If anyone could help me determine what suddenly took up a bunch of space I would really appreciate it. Sorry if this is a little obscure, I'm somewhat new to Linux.
Main Rig
(18 items)
 
HTPC
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600k ASUS Maximus IV Extreme EVGA GeForce GTX 560 Ti 448 Classified G.SKILL Sniper (2 x 4GB) DDR3 1600 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64GB Samsung Spinpoint F3 ASUS Black Blu-Ray Combo Drive Corsair Hydro H100 
CoolingOSMonitorKeyboard
Scythe Gentle Typhoon AP-15 (x6) Windows 7 Ultimate 64-bit ASUS VS Series VS247H-P Black 23.6" LED Das Keyboard Model S Silent 
PowerCaseMouseMouse Pad
Corsair HX850W  Corsair Obsidian 650D Razer DeathAdder Razer Goliathus Control Edition 
AudioOther
SteelSeries Siberia v2 - White Corsair Link 
CPUMotherboardGraphicsRAM
AMD Athlon II X2 245 Regor Asus M4N68T-M AM3 EVGA GeForce GT 240 512MB Kingston 2x 1GB DDR3 -1333 
Hard DriveOptical DriveCoolingOS
Samsung Spinpoint F3 2TB + OCZ Onyx 32GB SSD - OS ASUS Black Blu-Ray Combo Drive Scythe Big Shruiken Linux Ubuntu w/ XBMC 
MonitorPowerCaseMouse
32" 720p Toshiba Corsair TX650W Fractal Design R3 - Black Rii Mini 
  hide details  
Reply
Main Rig
(18 items)
 
HTPC
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600k ASUS Maximus IV Extreme EVGA GeForce GTX 560 Ti 448 Classified G.SKILL Sniper (2 x 4GB) DDR3 1600 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64GB Samsung Spinpoint F3 ASUS Black Blu-Ray Combo Drive Corsair Hydro H100 
CoolingOSMonitorKeyboard
Scythe Gentle Typhoon AP-15 (x6) Windows 7 Ultimate 64-bit ASUS VS Series VS247H-P Black 23.6" LED Das Keyboard Model S Silent 
PowerCaseMouseMouse Pad
Corsair HX850W  Corsair Obsidian 650D Razer DeathAdder Razer Goliathus Control Edition 
AudioOther
SteelSeries Siberia v2 - White Corsair Link 
CPUMotherboardGraphicsRAM
AMD Athlon II X2 245 Regor Asus M4N68T-M AM3 EVGA GeForce GT 240 512MB Kingston 2x 1GB DDR3 -1333 
Hard DriveOptical DriveCoolingOS
Samsung Spinpoint F3 2TB + OCZ Onyx 32GB SSD - OS ASUS Black Blu-Ray Combo Drive Scythe Big Shruiken Linux Ubuntu w/ XBMC 
MonitorPowerCaseMouse
32" 720p Toshiba Corsair TX650W Fractal Design R3 - Black Rii Mini 
  hide details  
Reply
post #2 of 9
This has happened to me and it turned out something was screwy and one of my applications was logging everything. The logfiles filled my partition fast.

I used find to search for large files.
Code:
$ find / -size +10000k
That'll search for anything larger than 10,000kb aka ~10mb
post #3 of 9
Thread Starter 
Well something very strange just happened...I restarted twice and now im back down to only 25% disk usage on my OS drive. Thank You though for that command, always nice to gain more knowledge with unix commands. biggrin.gif
Main Rig
(18 items)
 
HTPC
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600k ASUS Maximus IV Extreme EVGA GeForce GTX 560 Ti 448 Classified G.SKILL Sniper (2 x 4GB) DDR3 1600 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64GB Samsung Spinpoint F3 ASUS Black Blu-Ray Combo Drive Corsair Hydro H100 
CoolingOSMonitorKeyboard
Scythe Gentle Typhoon AP-15 (x6) Windows 7 Ultimate 64-bit ASUS VS Series VS247H-P Black 23.6" LED Das Keyboard Model S Silent 
PowerCaseMouseMouse Pad
Corsair HX850W  Corsair Obsidian 650D Razer DeathAdder Razer Goliathus Control Edition 
AudioOther
SteelSeries Siberia v2 - White Corsair Link 
CPUMotherboardGraphicsRAM
AMD Athlon II X2 245 Regor Asus M4N68T-M AM3 EVGA GeForce GT 240 512MB Kingston 2x 1GB DDR3 -1333 
Hard DriveOptical DriveCoolingOS
Samsung Spinpoint F3 2TB + OCZ Onyx 32GB SSD - OS ASUS Black Blu-Ray Combo Drive Scythe Big Shruiken Linux Ubuntu w/ XBMC 
MonitorPowerCaseMouse
32" 720p Toshiba Corsair TX650W Fractal Design R3 - Black Rii Mini 
  hide details  
Reply
Main Rig
(18 items)
 
HTPC
(14 items)
 
 
CPUMotherboardGraphicsRAM
i7-2600k ASUS Maximus IV Extreme EVGA GeForce GTX 560 Ti 448 Classified G.SKILL Sniper (2 x 4GB) DDR3 1600 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 64GB Samsung Spinpoint F3 ASUS Black Blu-Ray Combo Drive Corsair Hydro H100 
CoolingOSMonitorKeyboard
Scythe Gentle Typhoon AP-15 (x6) Windows 7 Ultimate 64-bit ASUS VS Series VS247H-P Black 23.6" LED Das Keyboard Model S Silent 
PowerCaseMouseMouse Pad
Corsair HX850W  Corsair Obsidian 650D Razer DeathAdder Razer Goliathus Control Edition 
AudioOther
SteelSeries Siberia v2 - White Corsair Link 
CPUMotherboardGraphicsRAM
AMD Athlon II X2 245 Regor Asus M4N68T-M AM3 EVGA GeForce GT 240 512MB Kingston 2x 1GB DDR3 -1333 
Hard DriveOptical DriveCoolingOS
Samsung Spinpoint F3 2TB + OCZ Onyx 32GB SSD - OS ASUS Black Blu-Ray Combo Drive Scythe Big Shruiken Linux Ubuntu w/ XBMC 
MonitorPowerCaseMouse
32" 720p Toshiba Corsair TX650W Fractal Design R3 - Black Rii Mini 
  hide details  
Reply
post #4 of 9
temp files, what on earth were you storing in temp files
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #5 of 9
next time you get full, instead of the 'find' command, i usually do:

# du -sh *

at the / "root" ... figure out which directory or file is taking up all the space. if directory, cd into that directory and repeat the above command. just keep drilling down until you find the culprit.

but yeah, it does sound like a temp file. if you have enough RAM, I would mount some memory as tmpfs over /tmp so that temp files don't affect root and also avoid wear on your SSD.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
post #6 of 9
Quote:
Originally Posted by BLinux;13301265 
but yeah, it does sound like a temp file. if you have enough RAM, I would mount some memory as tmpfs over /tmp so that temp files don't affect root and also avoid wear on your SSD.

How do?
AMD :D
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1055T Asus M4A89TD PRO/USB3 XFX 6950 Flashed 6970 BIOS Patriot Extreme Performance Sector 5 G Series 8GB 
Hard DriveCoolingOSMonitor
Patriot Pyro 60gb, OCZ Agility 3, 2x 7200.11 50... CoolerMaster Hyper 212 Windows 7 Ultimate 64bit Acer 230HL 
KeyboardPowerCaseMouse
Razer BlackWidow Delta 750w Antec 600 v2 Logitech G400 
Mouse Pad
SteelSeries 4HD 
  hide details  
Reply
AMD :D
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1055T Asus M4A89TD PRO/USB3 XFX 6950 Flashed 6970 BIOS Patriot Extreme Performance Sector 5 G Series 8GB 
Hard DriveCoolingOSMonitor
Patriot Pyro 60gb, OCZ Agility 3, 2x 7200.11 50... CoolerMaster Hyper 212 Windows 7 Ultimate 64bit Acer 230HL 
KeyboardPowerCaseMouse
Razer BlackWidow Delta 750w Antec 600 v2 Logitech G400 
Mouse Pad
SteelSeries 4HD 
  hide details  
Reply
post #7 of 9
Quote:
Originally Posted by Xero.;13301534 
How do?

Let's say you want to allocate 1GB of RAM as tmpfs to /tmp, add this line to your /etc/fstab:
Code:
tmpfs         /tmp          tmpfs          size=1g          0 0

And then reboot. Although you may allocate 1g, memory is only used when you actually write to /tmp. Although tmpfs comes from virtual memory (meaning, it is RAM + swap), when you have spare memory, it makes working in /tmp very fast as it works mostly out of RAM. It's sometimes a technique used to speed up databases that might write to /tmp for certain types of queries.

Another place to use tmpfs could also be /var/run.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
post #8 of 9
Quote:
Originally Posted by BLinux;13302494 
Let's say you want to allocate 1GB of RAM as tmpfs to /tmp, add this line to your /etc/fstab:
Code:
tmpfs         /tmp          tmpfs          size=1g          0 0

And then reboot. Although you may allocate 1g, memory is only used when you actually write to /tmp. Although tmpfs comes from virtual memory (meaning, it is RAM + swap), when you have spare memory, it makes working in /tmp very fast as it works mostly out of RAM. It's sometimes a technique used to speed up databases that might write to /tmp for certain types of queries.

Another place to use tmpfs could also be /var/run.

The only problem I can see with that is a lockup, especially since he doesn't know exactly what is eating the temp space. If you start using a ramdisk for /tmp you need to make sure it doesn't max your ram ever... That can get really annoying quick.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #9 of 9
Quote:
Originally Posted by mushroomboy;13305884 
The only problem I can see with that is a lockup, especially since he doesn't know exactly what is eating the temp space. If you start using a ramdisk for /tmp you need to make sure it doesn't max your ram ever... That can get really annoying quick.

well, he's not really going to get a lockup or anything. Linux kernels these days will kill off processes when it runs out of virtual memory, for one, and no one in their right mind is going to allocate more memory than they have to tmpfs. regardless, like I said when I suggested this "if you have enough memory..." if he's got 4GB of RAM and he's using only about 512MB of it, then using 1GB for /tmp isn't going to be a problem... or he could allocate even less.... if he's got 1GB of RAM, then allocate 256MB to /tmp... the point is to separate /tmp (after the fact that he's already installed the OS and partitioned it the way he's partitioned it) from / and hopefully /var too... so that when /tmp fills up it doesn't cause problems with the rest of the system and any useful log entries can still get written.

I do agree, that it is a good idea to figure out the root cause in terms of what was consuming so much space. Moreover, I think OP should have separated /, /var, and /tmp into their own partitions at the very least. tmpfs is a quick and easy way to split out /tmp from where he's at now, provided there's some memory to spare. On SSD, I image it would also reduce the wear from /tmp.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Root Filesystem Suddenly Full