LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   improper shutdown eating up space (https://www.linuxquestions.org/questions/linux-networking-3/improper-shutdown-eating-up-space-440829/)

wincrk 05-02-2006 05:02 AM

improper shutdown eating up space
 
hi,

i've got samba server with 530GB hard disk. it acts as file server for both mac and windows. it does not have monitor or keyboard. after office hour, the electricity will be cut-off for the whole floor. several days ago, the way to shutdown this linux is by pressing the power button untill it goes off.

after three days, i've found that there some space lost without realising what i used it for? i shut it down and plugin a monitor. at booting process i found that the machine display improper shutdown and cleaning the hard disk space, could this be the reason? how do i regain the lost spcae?

satinet 05-02-2006 05:21 AM

1st off all. why not just ssh to the box to administer it remotely.

secondly, if you know the power is going off, would it not be better to set the machine to power down via a cron job.

you probably just need to run "fsck" on your filesystem....

wincrk 05-02-2006 11:06 PM

i am ssh to the box and administer it remotely. there is 2 problem for this, one: some superuser command does not work in ssh, second: i'm not always in office.

i could make it shutdown on specific time, but the design unit might used the server after office hour, and even during weekend.

i'll try to run fsck on my system today, thanks for the reply. anyway, if i were to do daiily shutdown via cron job, how do i accomplish it?

satinet 05-03-2006 03:32 AM

just add shutdown -h now at an appropriate time in root's cron.

you probably want to invest in a UPS if this is the case.........


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