Alright then, I want to hibernate, so I need swap. Is anacron running cron jobs the system needs or is it only for user specific made cronjobs? I won't mount /var/spool/, cause that's not necessary for a laptop. Thanks fatmac
Take a look for yourself,
Edit: Re phrased what I previously wrote.
Edit2: Must be the heat, had to do 2 edits!
With anacron these scheduled jobs will run when the computer re connects, so you don't need to worry about them.
Last edited by fatmac (2013-09-05 17:28:00)
0anacron, run before any other script. Also, anacron is useful for a system not running 24/7 if I understood Wikipedia correctly. It sounds useful imho.
My SSD arrived and here is my first issue: I can't see the drive when I boot the live USB and start gparted..
Edit: Fixed, after I fiddled with it, it's showing up in the BIOS
Question: I want to hibernate, so I need swap. Should I make a partition for this? It will get a lot of writes..
Last edited by ahumba (2013-09-06 16:28:02)
So was that 2 partitions, / & /home; &/or with a swap file under /home (?).
(I'm not keen on having any swap on an SSD, I'd rather wait for it to boot than use hibernate.)
Last edited by ahumba (2013-09-10 09:13:05)
Yes, I just read that somewhere as well the other day, so you should be good to go.
Edit: It was on the Debian wiki for SSD.
Last edited by fatmac (2013-09-10 17:03:34)
The only thing now is that I have this daily cronjob and it hasn't run yet. Or it has run, but the logging is flawed. Can someone check this out:
#! /bin/sh LOG = /var/log/batched_discard.log echo "*** $(date -R) ***" >> $LOG fstrim -v / >> $LOG fstrim -v /home >> $LOG
I also noticed that durin the install there is a 1MB of free space before my root partition. I assume that this is the alignment Wheezy takes care of?
Try running it manually; it's just possible that it needs root permission for a log file.
(Have a look at/in man crontab)
Agree, 1mb is probably for alignment, I sometimes have a MB or two 'unused' on my disks.
When I run it as user and root I get the following:
/etc/cron.daily/batched_discard: 2: /etc/cron.daily/batched_discard: LOG: not found /etc/cron.daily/batched_discard: 3: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent /etc/cron.daily/batched_discard: 4: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent /etc/cron.daily/batched_discard: 5: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent
Edit: /var/spool is on tmpfs, this might cause a hickup, I will investigate..
Last edited by ahumba (2013-09-11 09:41:20)
sudo chmod +x /etc/cron.daily/trim