Page 1 of 1
Install on a SD card bigger than 4GB
Posted: Mon Aug 26, 2013 2:27 pm
by 36260
Hello,
I'm currently operating Meteohub on a NSLU h/w. I have installed the Meteohub to a new ebox 3300 on a 4GB SD card. License has not been transfered yet. I'm considering to upgrade the SD to 16GB.
Q1: is it supported?
Q2: if yes, is there a kind of clone mechanism like on the NSLU, or should I need to reinstall the software all over (and then transfert data + settings)?
Thank you
Nicolas
Re: Install on a SD card bigger than 4GB
Posted: Sun Nov 24, 2013 12:30 pm
by stefferber
I run meteohub on a dream plug and did something similar. I bought a 16GB SD card. I used the unix tool "dd" to make a perfect image. Then copied the image on the new card. After this I increased the size of the partitions: about 5 GB for the root file system "/" and 10 GB for the data file system "/data". If you want to do the same I can post some details.
But make sure your hardware supports the new SD card before!
Re: Install on a SD card bigger than 4GB
Posted: Sun Nov 24, 2013 5:53 pm
by 36260
This is very kind of you to answer that post. Yes I'd love to have the details.
Re: Install on a SD card bigger than 4GB
Posted: Sun Nov 24, 2013 9:52 pm
by stefferber
Ok. You need either a
- Linux Computer
- Unix shell on your Windows Computer (like cygwin)
- Mac with a Unix Terminal
Be very carefull with the name of the SD cards below. If you use the wrong /dev/<name> you might delete your hard drive forever!
You open the Unix/Linux terminal window and type
then you put the SD card into the computer and type
you should see difference in the listings. And that is the name of your sd card (there are other methods to find the device name on each operating systems). So assume your card has the name "/dev/sdc" then you do
Code: Select all
su dd if=/dev/sdc of=./dd-img-meteohub-4GB bs=1m
you probably have to enter the root / admin password to do that. This will take some while - you can drink a coffee… Then you check if the file is big enough (4 GByte)
Then you remove the SD card and put the new one in. You again check for the name of the new card. Let's assume that it is "/dev/sdb"
Code: Select all
su dd if=./dd-img-meteohub-4GB of=/dev/sdb bs=1m
Will take a while again… And then you have the perfect copy of the SD card. Next step is to make the partitions bigger. I used "gparted" for that. It is open source
http://gparted.org.
As I installed some additional software in the root file system I increased the part ion "sdb2" to 4 GB and the "sdb4" to 10 GB. If you just want to add more space to store more data I would recommend only to increase "sdb4" which is the "/data" partition to the maximum possible size.
This will take about 1h of your time...
Re: Install on a SD card bigger than 4GB
Posted: Mon Nov 25, 2013 9:59 am
by 36260
This is really very kind of you. Thank you very much. I'll keep you posted.