Page 1 of 1
Optional ability to log weather data to separate USB stick
Posted: Thu Mar 15, 2012 3:50 pm
by astrodanco
Please add the feature to optionally log the weather data to a separate USB stick from the boot stick.
Thus sparing the boot drive from an early death.
Re: Optional ability to log weather data to separate USB sti
Posted: Mon Mar 26, 2012 10:53 pm
by shinebar
Very interesting idea. I think that this won't be a big problem, because you can automount the usb-stick to /data. I just ordered a
XPorter XT and give this a try with my Alix3d3. When everything works well, I'll post my results here.
best
Danny
Re: Optional ability to log weather data to separate USB sti
Posted: Sun Apr 01, 2012 7:27 pm
by shinebar
Easy going:
1) Insert USB - Stick
2) check the disk-name (
tail -f /var/log/messages), in most cases it will be /dev/sda
3) remove the FAT32 Partition (fdisk /dev/sda (
in case the stick is sda, otherwise you have to change the parameter, or data will be lost! -> delete partition (d), create partition (n)
4) format USB-Stick:
mkfs.ext3 /dev/sda1 (in case the stick is sda)
5) create (temporary) mount point:
mkdir /mnt/sda1
6) mount usb-stick:
mount /dev/sda1 /mnt/sda1
7) stop meteohub via the webinterface

copy all files from /data to the stick:
cp -a /data/* /mnt/sda1
9) edit /etc/fstab
(Attention: be careful, in case of mistakes the system won't boot anymore)):
copy the line which mounts /data (/dev/hda3 /data ext3 noatime 0 2) into a new line.
In the new line change /dev/hda3 to /dev/sda1
Escape the original line with a # - so fstab has to look like this
Code: Select all
#/dev/hda3 /data ext3 noatime 0 2
/dev/sda1 /data ext3 noatime 0 2
Reboot and your'e done. 5 Minutes in total, works fine
