View previous topic :: View next topic |
Author |
Message |
bdx n00b
Joined: 04 Jan 2006 Posts: 65
|
Posted: Thu Nov 27, 2014 2:10 am Post subject: I don not like full disks |
|
|
Ok, when I accidentally have a full disk and re-boot my gentoo system it appears to be un-bootable. I have mysql in the default runlevel and it can not start with a full disk. My next complaint is that X can not start with a full disk either, it fails with "Keyboard initialization failed", not the greatest error message. Can I have an init script that stops things early in the boot process that will tell me the disk is full ? |
|
Back to top |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Thu Nov 27, 2014 1:44 pm Post subject: |
|
|
I guess that you just need some space on /var and/or /var/log. It's good to have /var on a seperate filesystem. |
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Thu Nov 27, 2014 11:00 pm Post subject: |
|
|
Reserve some % for the root user.. |
|
Back to top |
|
|
bdx n00b
Joined: 04 Jan 2006 Posts: 65
|
Posted: Fri Nov 28, 2014 3:52 am Post subject: |
|
|
How do you do that ? |
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Fri Nov 28, 2014 8:17 am Post subject: |
|
|
bdx wrote: | How do you do that ? |
Code: | tune2fs -m 5 /dev/sda1 | will reserve 5% if you use ext2 file system... |
|
Back to top |
|
|
|