removing corrupt lost+found dir

2015-08-08 Thread K. Adam Wolfe
Hello all, I've recently upgraded from wheezy to jessie; worth saying but not sure it's related to my issue. I have a directory in lost+found that is giving me a headache. every night my file system goes read-only. I reboot, do an fsck and go through the same process of scanning and fixing

Re: Logging of commands in a bash script to a file

2014-04-22 Thread K. Adam Wolfe
Use redirects: $IP route add ${VPN_NET[$N]} dev ${VPN_IFACE[$N]} src ${VPN_IP[$N]} table $N >> /some/log/file $IP route add default via ${VPN_GW[$N]} table $N >> /some/log/file $IP route add ${VPN_NET[$N]} dev ${VPN_IFACE[$N]} src ${VPN_IP[$N]} >> /some/log/file $IP rule add from ${VPN_IP[$N

Re: Daemon program that runs scripts when a service become available.

2013-07-03 Thread Adam Wolfe
On 07/01/2013 08:19 AM, Karl E. Jorgensen wrote: On Mon, Jul 01, 2013 at 02:11:06PM +0100, Franco Martelli wrote: This is my network situation, recently I bought a 3G router providing internet connection to my network (an amd64 Desktop PC with Wheezy and a Linksys NSLU2 de-underclocked with arm

Re: Run script at boot time

2013-03-20 Thread Adam Wolfe
I'd go with /etc/rc.local That's what it is for. On 03/20/2013 10:23 AM, Tony van der Hoff wrote: Hi, Running Squeeze, I would like to run a script (ltsp-update-sshkeys) on each system boot. Where would I place a link to such a script; /etc/init.d hardly seems appropriate? I'm guessing it nee

Re: Raid 5

2013-03-06 Thread Adam Wolfe
On 03/06/2013 03:04 PM, Gary Dale wrote: On 06/03/13 02:37 PM, Adam Wolfe wrote: On 03/06/2013 02:34 PM, Gary Dale wrote: On 06/03/13 02:31 PM, Gary Dale wrote: On 06/03/13 02:26 PM, Adam Wolfe wrote: Ignore the advice from Adam Wolfe - it's nonsense. Use the Debian installer (adv

Re: Raid 5

2013-03-06 Thread Adam Wolfe
On 03/06/2013 02:34 PM, Gary Dale wrote: On 06/03/13 02:31 PM, Gary Dale wrote: On 06/03/13 02:26 PM, Adam Wolfe wrote: Ignore the advice from Adam Wolfe - it's nonsense. Use the Debian installer (advanced mode) to create the RAID 5 array on drives with just one partition (whole dis

Re: Raid 5

2013-03-06 Thread Adam Wolfe
Ignore the advice from Adam Wolfe - it's nonsense. Use the Debian installer (advanced mode) to create the RAID 5 array on drives with just one partition (whole disk) as /dev/md0. Then partition the RAID 5 array into / and /home. Install and reboot. If you are using Wheezy this will

Re: Raid 5

2013-03-06 Thread Adam Wolfe
I had one h**l of a time doing this over the weekend. What finally worked for me was creating LOGICAL partitions on each drive and setting them as used for RAID volume devices. This gave me /dev/sda5, /dev/sdb5 etc etc. When grub did it's install, it added all the /dev/sda1 etc partitions and

Re: killing a job

2013-02-01 Thread Adam Wolfe
"ps -ef | grep vlc" should show you the pids. I'd tried to 'kill' them first. If that doesn't work I usually go straight for a "kill -9". "killall vlc" might also work, but I'm not positive. On 02/01/2013 06:29 PM, Thierry Chatelet wrote: Hi, I have 3 instances of vlc that I can not stop. To