Re: [PLUG] Examples of customized grub2 configuration files?

2017-04-09 Thread Keith Lofstrom
On Mon, Apr 3, 2017, Keith Lofstrom  wrote:
> I'm looking for examples (with explanatory comments) of
> customized configuration files to use in the /etc/grub.d
> directory, somewhere out there on the intertubes.

Tom H on the Scientific Linux mailing list offered a
helpful response.  I wrote up what I did here:

http://wiki.keithl.com/grub2single

Keith

-- 
Keith Lofstrom  kei...@keithl.com
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Chuck Hast
Tomás
Sorry I should have got  back on and told you I found it, but the charge
rate
is only 1.5 amp, the other unit is 2.0 amp. The RPi doing the WeeWx stuff
pulls data every 60 seconds, writes to the DB and then sends it out to WU,
CWOP and Findu.com. When it does that it pulls a wee bit more current
that usual. So I am going to give the other unit a try as I have the PSU for
it. I will also power the Acurite console off of it.  If this works I have
a whole
boat load of places I am going to do that trick. Indeed if we do not move
out
of this place, I am going to put an RPi up on the  ridge above the house
with
a AT LTE modem on it, AT has an offer of 250GB/mo @ $60/mo or 500
GB/mo @ $100/mo. They just came out with the offer last month, it is
directed
at some states back east, but people are calling and getting the offering
every-
where they have put in LTE. At this time I have 50GB @ $110/mo with Hughes
net, and they suck royally. So I can put an RPi up on the ridge and run
about
500ft of fibre down to the house let the RPi handle the cell modem and get
rid of Hughesnet. Whattavampire they are. That one I will power with the
"kludge" as it will be a much better option there. May even try some solar
to see how much the batteries will keep up that way. Use an RPi to monitor
that too.

If I get the job I am angling for I will not need to worry about it, but I
can
always find something for an RPi to do.

On Sun, Apr 9, 2017 at 8:21 PM, Tom  wrote:

> Follow the second link, scroll down to product description about half
> way through the page, and check the Duo-Charge Section:
>  Product description
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  Offer Type:19200mAH
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> TeckNet PowerTitan T2 19200mAH External
> Battery:
> Save time when charging!
>
> .
> .
> .
> Duo-Charge:
> The Duo-Charge function enables charging of the PowerTitan while it
> recharges a connected device such as an iPhone or iPad.
>  ...
> Besides the battery capacity, there does not seem to be functional
> difference between the chargers. Either of them should keep mostly idle
> RPi running for at close to a day. I have 6500mAh USB charger running
> RPi + PWM hat + WiFi dongle + a few sensors on a robot cart for about 8
> -9-hours straight. The Pi lasts much longer than the other battery pack
> feeding the motors.
> I should have mentioned it in my original post, I thought that it is
> obvious:
> If your RPi consumes close to or more than the charging current max 2A
> (depending on your actual power supply) - about 10% to power the
> charger = ~1800mA --> your battery pack will not recharge after the
> outage. In such case you would have to come up with different UPS
> solution.
> Best luck, Tomas
> On Sun, 2017-04-09 at 19:23 -0700, Chuck Hast wrote:
> > Tomas,
> > The second selection looks more like what I am looking for but the
> > first one
> > will certainly work. But I do not see mention of pass through
> > charging or
> > charge while charging.
> >
> > Went ahead and bought the first selection.
> >
> > On Sun, Apr 9, 2017 at 6:46 AM, Nat Taylor  wrote:
> >
> > > I use something like that second battery to power my pi, it's just
> > > a cell
> > > phone charger, I'm not sure what running it while plugged in does
> > > to it's
> > > life.   One could put it on a timer so the power cuts, it drains
> > > the
> > > battery for a while, then charges back up if that was advantageous
> > > for
> > > battery life...
> > >
> > > On Sun, Apr 9, 2017 at 2:39 AM Tom 
> > > wrote:
> > >
> > > > There are probably other USB power banks which can be charged and
> > > > discharged together. Here are two examples:
> > > > https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen
> > > > /dp/B0
> > > > 0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_
> > > > r=0JMM
> > > > HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHX
> > > > MXK7RY
> > > > WY9K361K
> > > >  > > Output-PowerZen/dp/B00FAU7ZB2/ref=pd_cp_107_1?_encoding=
> > > UTF8_rd_i=B00FAU7ZB2_rd_r=0JMMHXMXK7RYWY9K361K_rd_
> > > w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RYWY9K361K>
> > > > https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-Externa
> > > > l-Tech
> > > > nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8
> > > > =1
> > > > 491729627=1-1
> > > >  > > Portable-External-Technology/dp/B01B534D4Y/ref=sr_1_1?s=
> > > wireless=5713662011=UTF8=1491729627=1-1>
> > > > Based on recommendation from this guy:
> > > > http://raspi-ups.appspot.com/en/index.jsp He used older model
> > > > which is
> > > > no longer available.
> > > > I wonder how smart is the circuit in avoiding the
> > > > charge/discharge
> > > > battery cycles when the power is on - 

Re: [PLUG] monitor drops to lower resolution after OS upgrade

2017-04-09 Thread Tom
Hi Randall,
I am glad that you got your graphix card working.
Would you be able to share what you had to do for the old HD 5450 to
get it working?
I have unused laptop which I would like to donate to a friend and I
believe that it has the same graphics card HD 5430/5450/5470. I will be
reinstalling it to 42.2 this or next week before handing it over, and
your experience could save me time researching the same issue.
Thank you, Tomas
On Sat, 2017-04-08 at 18:01 -0700, logical american wrote:
> On 4/8/2017 12:53 AM, Tom wrote:
> > I am able to set the resolution to max and lower values my monitor
> > supports in 42.2 KDE: Configure Desktop -->  Display and Monitor
> > What is you graphic card/CPU? I had no issues with Intel internal
> > graphics forever.
> > If it is not graphic card related, then your problem may be - the
> > monitor is not auto detected properly hence you cannot use its full
> > native resolution.
> > What does xrandr say your max resolution is?
> > Did you try different cable for the monitor?
> > Using dual monitors can also cause these problems from time to time
> > -
> > If I remember correctly - when my monitor setup fails (undock
> > before
> > full shutdown, or try to dock powered laptop, etc.), I boot to text
> > mode or as different user and remove this directory:
> > ~/.local/share/kscreen (or was it whole .kde4 dir???) then login
> > again.
> > I learned to avoid causing myself trouble, so it is hard to
> > remember
> > now.
> > There used to be (not anymore) wonderful tool called SaX for
> > resolving
> > these issues - I believe that it was modifying /etc/X11/xorg.conf
> > These days everything is autodetected, but you could play with
> >   /etc/X11/xorg.conf.d/50-monitor.conf
> > See Monitor section of: man xorg.conf
> > Check this article for guidance: 
> > https://en.opensuse.org/SDB:Configurin
> > g_graphics_cards_and_monitor_settings
> > As about obtaining correct resolution, hsync, vsync and refresh
> > rates
> > for your screen - this maybe tricky - you might have to try to
> > temporarily boot Knoppix or old 13.2 from USB stick and see what
> > they
> > were using.
> > Our old Visio TV is causing these kind of (and worse) problems - it
> > is
> > pretending to be HD, but the panel is some weird non standard,
> > lower,
> > definitely not HD resolution. So, I get to have similar type of
> > "fun"
> > from time to time - at least I can resolve it with enough
> > determination
> > in Linux. There is no chance to get proper image of that beast in
> > Windows, not that I care (TM).
> > Good luck, Tomas
> > On Fri, 2017-04-07 at 22:25 -0700, logical american wrote:
> Tom:
> 
> Here's the true story.
> 
> 1. System has the ATI Radeon HD 5450 graphics card, supported by the 
> flglrx kernel module in openSuse 13.2
> 2. Leap 42.2 does NOT support the video module.
> 3. After upgrading system, system failed to autoload the correct
> radeon 
> kernel module.
> 4. I had to change a couple of boot up files in the /etc/init.d and 
> /etc/sysconfig areas to autoload the module on boot up.
> 
> Things are okay now, back to native 1920x1080i resolution.
> 
> Randall
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Tom
Follow the second link, scroll down to product description about half
way through the page, and check the Duo-Charge Section:
 Product description

 








  












  

   

  

  



 Offer Type:19200mAH

  
  


  

  




 
   
 

 
  
 
   

 




TeckNet PowerTitan T2 19200mAH External Battery:
Save time when charging! 

.
.
.
Duo-Charge:
The Duo-Charge function enables charging of the PowerTitan while it
recharges a connected device such as an iPhone or iPad.
 ...
Besides the battery capacity, there does not seem to be functional
difference between the chargers. Either of them should keep mostly idle
RPi running for at close to a day. I have 6500mAh USB charger running
RPi + PWM hat + WiFi dongle + a few sensors on a robot cart for about 8
-9-hours straight. The Pi lasts much longer than the other battery pack
feeding the motors.
I should have mentioned it in my original post, I thought that it is
obvious:
If your RPi consumes close to or more than the charging current max 2A
(depending on your actual power supply) - about 10% to power the
charger = ~1800mA --> your battery pack will not recharge after the
outage. In such case you would have to come up with different UPS
solution.
Best luck, Tomas
On Sun, 2017-04-09 at 19:23 -0700, Chuck Hast wrote:
> Tomas,
> The second selection looks more like what I am looking for but the
> first one
> will certainly work. But I do not see mention of pass through
> charging or
> charge while charging.
> 
> Went ahead and bought the first selection.
> 
> On Sun, Apr 9, 2017 at 6:46 AM, Nat Taylor  wrote:
> 
> > I use something like that second battery to power my pi, it's just
> > a cell
> > phone charger, I'm not sure what running it while plugged in does
> > to it's
> > life.   One could put it on a timer so the power cuts, it drains
> > the
> > battery for a while, then charges back up if that was advantageous
> > for
> > battery life...
> > 
> > On Sun, Apr 9, 2017 at 2:39 AM Tom 
> > wrote:
> > 
> > > There are probably other USB power banks which can be charged and
> > > discharged together. Here are two examples:
> > > https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen
> > > /dp/B0
> > > 0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_
> > > r=0JMM
> > > HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHX
> > > MXK7RY
> > > WY9K361K
> > >  > Output-PowerZen/dp/B00FAU7ZB2/ref=pd_cp_107_1?_encoding=
> > UTF8_rd_i=B00FAU7ZB2_rd_r=0JMMHXMXK7RYWY9K361K_rd_
> > w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RYWY9K361K>
> > > https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-Externa
> > > l-Tech
> > > nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8
> > > =1
> > > 491729627=1-1
> > >  > Portable-External-Technology/dp/B01B534D4Y/ref=sr_1_1?s=
> > wireless=5713662011=UTF8=1491729627=1-1>
> > > Based on recommendation from this guy:
> > > http://raspi-ups.appspot.com/en/index.jsp He used older model
> > > which is
> > > no longer available.
> > > I wonder how smart is the circuit in avoiding the
> > > charge/discharge
> > > battery cycles when the power is on - it relates to the battery
> > > life.
> > > Tomas
> > > On Sat, 2017-04-08 at 18:57 -0700, Chuck Hast wrote:
> > > > On Sat, Apr 8, 2017 at 3:42 PM, Tom <
> > > > tomas.kuchta.li...@gmail.com>
> > > > wrote:
> > > > 
> > > > > dd nor rsync alone will not be able to do full backup of
> > > > > running
> > > > > computer (RPi).
> > > > > 
> > > > 
> > > > That was what I figured, just wanted to make sure.
> > > > 
> > > > 
> > > > > The best course of action is to separate the OS from your
> > > > > data -
> > > > > whatever your RPi is normally writing - then backup each
> > > > > separately.
> > > > >   * When you separate the data, you could even store it off
> > > > > the RPi
> > > > > avoiding need for local data backups on RPi altogether.
> > > > > 
> > > > 
> > > > The drive has two partitions on it /boot and /.  /boot is a
> > > > vfat, the
> > > > rest
> > > > of
> > > > it is ext4. I supposed that I could stop the service (weather
> > > > data
> > > > capture)
> > > > back up the files that are critical to the weather
> > > > station.After the
> > > > back up
> > > > is done start the service again. Maybe store them on a jump
> > > > drive and
> > > > after the station service is back up and running ship 

Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Chuck Hast
Nat,
I have a kludge system that i am going to use until the passthrough charger/
battery arrives. It is ugly and being a kludge it is just a gell cell and a
power
supply, the battery is floating on the PSU. On power loss it picks up the
load
on the USB ports.

On Sun, Apr 9, 2017 at 7:23 PM, Chuck Hast  wrote:

> Tomas,
> The second selection looks more like what I am looking for but the first
> one
> will certainly work. But I do not see mention of pass through charging or
> charge while charging.
>
> Went ahead and bought the first selection.
>
> On Sun, Apr 9, 2017 at 6:46 AM, Nat Taylor  wrote:
>
>> I use something like that second battery to power my pi, it's just a cell
>> phone charger, I'm not sure what running it while plugged in does to it's
>> life.   One could put it on a timer so the power cuts, it drains the
>> battery for a while, then charges back up if that was advantageous for
>> battery life...
>>
>> On Sun, Apr 9, 2017 at 2:39 AM Tom  wrote:
>>
>> > There are probably other USB power banks which can be charged and
>> > discharged together. Here are two examples:
>> > https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen/dp/B0
>> > 0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_r=0JMM
>> > HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RY
>> > WY9K361K
>> > > PowerZen/dp/B00FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_
>> i=B00FAU7ZB2_rd_r=0JMMHXMXK7RYWY9K361K_rd_w=
>> 712hM_rd_wg=6mOCV=1=0JMMHXMXK7RYWY9K361K>
>> > https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-External-Tech
>> > nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8=1
>> > 491729627=1-1
>> > > External-Technology/dp/B01B534D4Y/ref=sr_1_1?s=wirele
>> ss=5713662011=UTF8=1491729627=1-1>
>> > Based on recommendation from this guy:
>> > http://raspi-ups.appspot.com/en/index.jsp He used older model which is
>> > no longer available.
>> > I wonder how smart is the circuit in avoiding the charge/discharge
>> > battery cycles when the power is on - it relates to the battery life.
>> > Tomas
>> > On Sat, 2017-04-08 at 18:57 -0700, Chuck Hast wrote:
>> > > On Sat, Apr 8, 2017 at 3:42 PM, Tom 
>> > > wrote:
>> > >
>> > > > dd nor rsync alone will not be able to do full backup of running
>> > > > computer (RPi).
>> > > >
>> > >
>> > > That was what I figured, just wanted to make sure.
>> > >
>> > >
>> > > > The best course of action is to separate the OS from your data -
>> > > > whatever your RPi is normally writing - then backup each
>> > > > separately.
>> > > >   * When you separate the data, you could even store it off the RPi
>> > > > avoiding need for local data backups on RPi altogether.
>> > > >
>> > >
>> > > The drive has two partitions on it /boot and /.  /boot is a vfat, the
>> > > rest
>> > > of
>> > > it is ext4. I supposed that I could stop the service (weather data
>> > > capture)
>> > > back up the files that are critical to the weather station.After the
>> > > back up
>> > > is done start the service again. Maybe store them on a jump drive and
>> > > after the station service is back up and running ship them off to the
>> > > location
>> > > I will keep the back ups in. I figure that I could do the back up in
>> > > the wee
>> > > hours of the morning.
>> > >
>> > >
>> > > >   * If you want to keep the data on RPi, you could back it up by
>> > > > rsync
>> > > > to separate media (USB) or a network storage
>> > > >   * You cannot back up the OS while you are using it - that is why
>> > > > this
>> > > > is normally done on a separate computer. It is easier and faster
>> > > > than
>> > > > booting your RPi from USB or network and then doing the backup.
>> > > >   * Perhaps the OS does not need to be backed up often or not at
>> > > > all as
>> > > > you could simply create separate OS image, even on another SD card
>> > > > attached to your Pi.
>> > > >
>> > >
>> > > All I really need for recovery is the WeeWx db file, WeeWx config
>> > > file,
>> > > skins
>> > > file and the nginx configuration. I could actually keep a separate
>> > > image and
>> > > just insert the latest files and quickly swap out the bad SD card.
>> > > That
>> > > should
>> > > take care of it.
>> > >
>> > > I should be able to automate the OS configuration, so that I just run
>> > > a
>> > > script
>> > > it looks for the SD card, installs the OS makes sure that the
>> > > parameters
>> > > that
>> > > I set manually on installation are set correctly, probably can
>> > > automate the
>> > > whole process.
>> > >
>> > >   * Your backup target/media could be another SD card connected to
>> > > RPi
>> > > > in a SD card reader, that way you could just swap the cards 
>> > > > Thinking outside of a box - perhaps you need little UPS for your Pi
>> > > > to
>> > > > avoid regular data 

Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Chuck Hast
Tomas,
The second selection looks more like what I am looking for but the first one
will certainly work. But I do not see mention of pass through charging or
charge while charging.

Went ahead and bought the first selection.

On Sun, Apr 9, 2017 at 6:46 AM, Nat Taylor  wrote:

> I use something like that second battery to power my pi, it's just a cell
> phone charger, I'm not sure what running it while plugged in does to it's
> life.   One could put it on a timer so the power cuts, it drains the
> battery for a while, then charges back up if that was advantageous for
> battery life...
>
> On Sun, Apr 9, 2017 at 2:39 AM Tom  wrote:
>
> > There are probably other USB power banks which can be charged and
> > discharged together. Here are two examples:
> > https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen/dp/B0
> > 0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_r=0JMM
> > HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RY
> > WY9K361K
> >  Output-PowerZen/dp/B00FAU7ZB2/ref=pd_cp_107_1?_encoding=
> UTF8_rd_i=B00FAU7ZB2_rd_r=0JMMHXMXK7RYWY9K361K_rd_
> w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RYWY9K361K>
> > https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-External-Tech
> > nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8=1
> > 491729627=1-1
> >  Portable-External-Technology/dp/B01B534D4Y/ref=sr_1_1?s=
> wireless=5713662011=UTF8=1491729627=1-1>
> > Based on recommendation from this guy:
> > http://raspi-ups.appspot.com/en/index.jsp He used older model which is
> > no longer available.
> > I wonder how smart is the circuit in avoiding the charge/discharge
> > battery cycles when the power is on - it relates to the battery life.
> > Tomas
> > On Sat, 2017-04-08 at 18:57 -0700, Chuck Hast wrote:
> > > On Sat, Apr 8, 2017 at 3:42 PM, Tom 
> > > wrote:
> > >
> > > > dd nor rsync alone will not be able to do full backup of running
> > > > computer (RPi).
> > > >
> > >
> > > That was what I figured, just wanted to make sure.
> > >
> > >
> > > > The best course of action is to separate the OS from your data -
> > > > whatever your RPi is normally writing - then backup each
> > > > separately.
> > > >   * When you separate the data, you could even store it off the RPi
> > > > avoiding need for local data backups on RPi altogether.
> > > >
> > >
> > > The drive has two partitions on it /boot and /.  /boot is a vfat, the
> > > rest
> > > of
> > > it is ext4. I supposed that I could stop the service (weather data
> > > capture)
> > > back up the files that are critical to the weather station.After the
> > > back up
> > > is done start the service again. Maybe store them on a jump drive and
> > > after the station service is back up and running ship them off to the
> > > location
> > > I will keep the back ups in. I figure that I could do the back up in
> > > the wee
> > > hours of the morning.
> > >
> > >
> > > >   * If you want to keep the data on RPi, you could back it up by
> > > > rsync
> > > > to separate media (USB) or a network storage
> > > >   * You cannot back up the OS while you are using it - that is why
> > > > this
> > > > is normally done on a separate computer. It is easier and faster
> > > > than
> > > > booting your RPi from USB or network and then doing the backup.
> > > >   * Perhaps the OS does not need to be backed up often or not at
> > > > all as
> > > > you could simply create separate OS image, even on another SD card
> > > > attached to your Pi.
> > > >
> > >
> > > All I really need for recovery is the WeeWx db file, WeeWx config
> > > file,
> > > skins
> > > file and the nginx configuration. I could actually keep a separate
> > > image and
> > > just insert the latest files and quickly swap out the bad SD card.
> > > That
> > > should
> > > take care of it.
> > >
> > > I should be able to automate the OS configuration, so that I just run
> > > a
> > > script
> > > it looks for the SD card, installs the OS makes sure that the
> > > parameters
> > > that
> > > I set manually on installation are set correctly, probably can
> > > automate the
> > > whole process.
> > >
> > >   * Your backup target/media could be another SD card connected to
> > > RPi
> > > > in a SD card reader, that way you could just swap the cards 
> > > > Thinking outside of a box - perhaps you need little UPS for your Pi
> > > > to
> > > > avoid regular data corruption altogether. There are some USB
> > > > charging
> > > > batteries which can be charged and used both at the same time (most
> > > > can
> > > > be either charged or used, not both).  Modest battery could keep
> > > > your
> > > > Pi running for hours.
> > > >
> > >
> > > I have been looking for a battery pack that will allow me to let it
> > > float
> > > on the
> > > powersupply until power goes away, then it takes over. So far all of
> 

Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Nat Taylor
I use something like that second battery to power my pi, it's just a cell
phone charger, I'm not sure what running it while plugged in does to it's
life.   One could put it on a timer so the power cuts, it drains the
battery for a while, then charges back up if that was advantageous for
battery life...

On Sun, Apr 9, 2017 at 2:39 AM Tom  wrote:

> There are probably other USB power banks which can be charged and
> discharged together. Here are two examples:
> https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen/dp/B0
> 0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_r=0JMM
> HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RY
> WY9K361K
> 
> https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-External-Tech
> nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8=1
> 491729627=1-1
> 
> Based on recommendation from this guy:
> http://raspi-ups.appspot.com/en/index.jsp He used older model which is
> no longer available.
> I wonder how smart is the circuit in avoiding the charge/discharge
> battery cycles when the power is on - it relates to the battery life.
> Tomas
> On Sat, 2017-04-08 at 18:57 -0700, Chuck Hast wrote:
> > On Sat, Apr 8, 2017 at 3:42 PM, Tom 
> > wrote:
> >
> > > dd nor rsync alone will not be able to do full backup of running
> > > computer (RPi).
> > >
> >
> > That was what I figured, just wanted to make sure.
> >
> >
> > > The best course of action is to separate the OS from your data -
> > > whatever your RPi is normally writing - then backup each
> > > separately.
> > >   * When you separate the data, you could even store it off the RPi
> > > avoiding need for local data backups on RPi altogether.
> > >
> >
> > The drive has two partitions on it /boot and /.  /boot is a vfat, the
> > rest
> > of
> > it is ext4. I supposed that I could stop the service (weather data
> > capture)
> > back up the files that are critical to the weather station.After the
> > back up
> > is done start the service again. Maybe store them on a jump drive and
> > after the station service is back up and running ship them off to the
> > location
> > I will keep the back ups in. I figure that I could do the back up in
> > the wee
> > hours of the morning.
> >
> >
> > >   * If you want to keep the data on RPi, you could back it up by
> > > rsync
> > > to separate media (USB) or a network storage
> > >   * You cannot back up the OS while you are using it - that is why
> > > this
> > > is normally done on a separate computer. It is easier and faster
> > > than
> > > booting your RPi from USB or network and then doing the backup.
> > >   * Perhaps the OS does not need to be backed up often or not at
> > > all as
> > > you could simply create separate OS image, even on another SD card
> > > attached to your Pi.
> > >
> >
> > All I really need for recovery is the WeeWx db file, WeeWx config
> > file,
> > skins
> > file and the nginx configuration. I could actually keep a separate
> > image and
> > just insert the latest files and quickly swap out the bad SD card.
> > That
> > should
> > take care of it.
> >
> > I should be able to automate the OS configuration, so that I just run
> > a
> > script
> > it looks for the SD card, installs the OS makes sure that the
> > parameters
> > that
> > I set manually on installation are set correctly, probably can
> > automate the
> > whole process.
> >
> >   * Your backup target/media could be another SD card connected to
> > RPi
> > > in a SD card reader, that way you could just swap the cards 
> > > Thinking outside of a box - perhaps you need little UPS for your Pi
> > > to
> > > avoid regular data corruption altogether. There are some USB
> > > charging
> > > batteries which can be charged and used both at the same time (most
> > > can
> > > be either charged or used, not both).  Modest battery could keep
> > > your
> > > Pi running for hours.
> > >
> >
> > I have been looking for a battery pack that will allow me to let it
> > float
> > on the
> > powersupply until power goes away, then it takes over. So far all of
> > them
> > that
> > I have looked at will not switch between charge/float/discharge. I
> > have seen
> > a couple that plug into the pin field on the RPi, but I am trying to
> > keep
> > the
> > case clean. I have built up a power supply with a battery on it, and
> > a heavy
> > duty USB dual port power cartridge that supplies the power I need for
> > the
> > RPi and the WX station console. It is kind of big, I am certainly
> > looking
> > for
> > one of the power pack batteries that does not care if it is being
> > charged 

Re: [PLUG] Backup RPi SD card

2017-04-09 Thread Tom
There are probably other USB power banks which can be charged and
discharged together. Here are two examples:
https://www.amazon.com/TeckNet-Universal-16750mAh-Output-PowerZen/dp/B0
0FAU7ZB2/ref=pd_cp_107_1?_encoding=UTF8_rd_i=B00FAU7ZB2_rd_r=0JMM
HXMXK7RYWY9K361K_rd_w=712hM_rd_wg=6mOCV=1=0JMMHXMXK7RY
WY9K361K
https://www.amazon.com/PowerTitan-19200mAh3-Port-Portable-External-Tech
nology/dp/B01B534D4Y/ref=sr_1_1?s=wireless=5713662011=UTF8=1
491729627=1-1
Based on recommendation from this guy: 
http://raspi-ups.appspot.com/en/index.jsp He used older model which is
no longer available.
I wonder how smart is the circuit in avoiding the charge/discharge
battery cycles when the power is on - it relates to the battery life.
Tomas
On Sat, 2017-04-08 at 18:57 -0700, Chuck Hast wrote:
> On Sat, Apr 8, 2017 at 3:42 PM, Tom 
> wrote:
> 
> > dd nor rsync alone will not be able to do full backup of running
> > computer (RPi).
> > 
> 
> That was what I figured, just wanted to make sure.
> 
> 
> > The best course of action is to separate the OS from your data -
> > whatever your RPi is normally writing - then backup each
> > separately.
> >   * When you separate the data, you could even store it off the RPi
> > avoiding need for local data backups on RPi altogether.
> > 
> 
> The drive has two partitions on it /boot and /.  /boot is a vfat, the
> rest
> of
> it is ext4. I supposed that I could stop the service (weather data
> capture)
> back up the files that are critical to the weather station.After the
> back up
> is done start the service again. Maybe store them on a jump drive and
> after the station service is back up and running ship them off to the
> location
> I will keep the back ups in. I figure that I could do the back up in
> the wee
> hours of the morning.
> 
> 
> >   * If you want to keep the data on RPi, you could back it up by
> > rsync
> > to separate media (USB) or a network storage
> >   * You cannot back up the OS while you are using it - that is why
> > this
> > is normally done on a separate computer. It is easier and faster
> > than
> > booting your RPi from USB or network and then doing the backup.
> >   * Perhaps the OS does not need to be backed up often or not at
> > all as
> > you could simply create separate OS image, even on another SD card
> > attached to your Pi.
> > 
> 
> All I really need for recovery is the WeeWx db file, WeeWx config
> file,
> skins
> file and the nginx configuration. I could actually keep a separate
> image and
> just insert the latest files and quickly swap out the bad SD card.
> That
> should
> take care of it.
> 
> I should be able to automate the OS configuration, so that I just run
> a
> script
> it looks for the SD card, installs the OS makes sure that the
> parameters
> that
> I set manually on installation are set correctly, probably can
> automate the
> whole process.
> 
>   * Your backup target/media could be another SD card connected to
> RPi
> > in a SD card reader, that way you could just swap the cards 
> > Thinking outside of a box - perhaps you need little UPS for your Pi
> > to
> > avoid regular data corruption altogether. There are some USB
> > charging
> > batteries which can be charged and used both at the same time (most
> > can
> > be either charged or used, not both).  Modest battery could keep
> > your
> > Pi running for hours.
> > 
> 
> I have been looking for a battery pack that will allow me to let it
> float
> on the
> powersupply until power goes away, then it takes over. So far all of
> them
> that
> I have looked at will not switch between charge/float/discharge. I
> have seen
> a couple that plug into the pin field on the RPi, but I am trying to
> keep
> the
> case clean. I have built up a power supply with a battery on it, and
> a heavy
> duty USB dual port power cartridge that supplies the power I need for
> the
> RPi and the WX station console. It is kind of big, I am certainly
> looking
> for
> one of the power pack batteries that does not care if it is being
> charged or
> not.
> 
> 
> > I hope that this is pointing you in the right direction to your
> > particular circumstances.
> 
> 
> Yes it confirmed most of what I was already suspecting. Now if I can
> just
> find a nice clean battery pack that meets the above requirement.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug