Using Meteohub with a 8GB SD card

Moderator: Mattk

Post Reply
Billy
Senior Boarder
Senior Boarder
Posts: 47
Joined: Sun Oct 11, 2009 1:00 pm

Using Meteohub with a 8GB SD card

Post by Billy »

In the manual "How-To Build a Meteoplug the easy way"
the recommended SDCard is a SanDisk Extreme III (30MB/s Edition) 4GB.
In addition it's mentioned that SD card must have a capacity of 4GB. If it is bigger, just 4GB are used. When it is smaller, Meteoplug will not work.
As I had only a SanDisk Extreme III (30MB/s Edition) 8GB available I used it.
After STEP 3: Setup SD Card, the overall used disk space was only 4GB as mentioned in the manual.
For using the whole capacity I used GNOME partition editor (GParted) to increase the Disk1 2,7GB Partition up to 6GB.
I put the SD Card into the plug and Meteohub was working!
System Information Storage shows
Swap: 0MB of 131MB used (0%)
System: 627MB of 838MB used (74%)
Data: 72MB of 6701MB used (1%)

The question is now whether there is anything wrong in my consideration or do I have to expect problems?

Billy
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re:Using Meteohub with a 8GB SD card

Post by admin »

The steps you described are ok. You can use more room for data partition if you like and your storage media provides this.

if you are fimilar with linux, you can also login on Meteohub via ssh, use fdisk "fdisk /dev/mmcblk0" and delete 3rd partition, create a new 3rd partition that start directly after 2nd and uses all space up to the end, write changes and leave fdisk. Next make use of "resize2fs /dev/mmcblk0p3" to expand the filesystem to the changed partition.
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re:Using Meteohub with a 8GB SD card

Post by wfpost »

I also have an 8GB CF-Card with my ebox4300 (500 MHz).

On a live system 2years running with data, would this procedure also work?

Or only on a new system with still no data recorded?

______
meteohub:~# sfdisk -l

Disk /dev/hdc: 15538 cylinders, 16 heads, 63 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 15538/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0+ 97 98- 787153+ 83 Linux
/dev/hdc2 98 122 25 200812+ 82 Linux swap / Solaris
/dev/hdc3 123 479 357 2867602+ 83 Linux
/dev/hdc4 0 - 0 0 0 Empty
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re:Using Meteohub with a 8GB SD card

Post by admin »

That is expected to work on a live system as well. Linux can make resizing of mounted ext3 file systems since kernel 2.6. However, fdisk and the resize are not free of risk. I highly recommend to make a backup first.
User avatar
Wessel
Senior Boarder
Senior Boarder
Posts: 61
Joined: Fri May 06, 2011 1:14 am

Re: Using Meteohub with a 8GB SD card

Post by Wessel »

Hi,

Then I can use a SD Card bigger then 4 GB, but must I increase the partition to the correct capacity? In this partition, are meteohub and data?
It would be possible plug an USB HUB and use a memory stick as datalogger instead of SD Card?

Thanks,

Wessel
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Using Meteohub with a 8GB SD card

Post by YJB »

Hi,

I don't think it's a good idea to use a memory stick, these are not really designed for intensive updates, but in theory it could be done. Better to use an 8Gb SD card.

Have a look at this post that describes in detail how to increase the /data size:

viewtopic.php?f=8&t=8172&p=8891&hilit=8gb#p8891

The post refers to a vmware image, but the Linux steps should be the same. Make a backup before starting the procedure (just in case you make a mistake).

This is the fs info on my system:

Code: Select all

meteohub:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             756M  515M  203M  72% /
/dev/hda3             6.1G  1.7G  4.2G  28% /data
Ysbrand
MeteoSheeva
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Mon Jan 17, 2011 4:55 pm
Location: Germany

Re: Using Meteohub with a 8GB SD card

Post by MeteoSheeva »

That sounds a bit too complicated to me.
I just installed meteohub on a 8 GB SD-Card. After the installation I used GParted (LiveCD) to resize the data partition:

Code: Select all

Swap 131 MB
System 852 MB
Data 6,5 GB
Works perfectly :)
"The thing about quotes on the internet is you can not confirm their validity"
                                                                                     - Abraham Lincoln
Post Reply