Jump to content

Welcome, Guest!

x80jdc

cronjob error

Recommended Posts

Hello all,

I am running rasperry pi as NAS, loving the little computer!!!

I attempted to edit the cronjob but getting error message... Can someone assist?


root@raspberrypi:~# crontab -e
crontab: installing new crontab
crontab: crontabs/tmp.KTh8Fx: No space left on device
crontab: edits left in /tmp/crontab.zzh6Yo/crontab
root@raspberrypi:~#



pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.6G 3.6G 0 100% /
/dev/root 3.6G 3.6G 0 100% /
devtmpfs 211M 0 211M 0% /dev
tmpfs 44M 368K 44M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 88M 0 88M 0% /run/shm
/dev/mmcblk0p1 56M 19M 38M 34% /boot
/dev/sda1 917G 165G 706G 19% /media/master_nas
/dev/sdb1 917G 165G 706G 19% /media/backup_nas
tmpfs 88M 0 88M 0% /tmp

Share this post


Link to post
Share on other sites

Issue seems to be with 'rootfs' & '/dev/root'.. Both are at 100% usage, if someone can suggest how to handle this. Will any changes affect setup of the NAS?

Share this post


Link to post
Share on other sites

Have you expanded the root partition to fill the card? You can do this with the raspi-config command:

sudo raspi-config

Select the first option and exit from raspi-config.  

Share this post


Link to post
Share on other sites

On first setup I did expand the partition. There is a 4GB card with raspian installed.

 

Pi is used purely as NAS device. Have made multiple cronjob changes in the past, each time creating a new file but now unable to save any further edits.

 

Is there a way to view/clear the files?.. Ideally do not want to affect the setup in place.

Share this post


Link to post
Share on other sites

It sounds like you need to free up some space on the SD card.  Are there any files that you could delete from your home directory? 

 

Uninstalling Wolfram will free up a lot of space:

sudo apt-get purge wolfram-engine 

Also, try unmounting the two drives, and check that  /media/master_nas and /media/backup_nas are empty.  I've seen situations where I thought a drive was mounted, so I copied a bunch of files to the mount directory, and accidentally filled the root partition.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer

×