Page 1 of 1
Restore USB Thumb Drive
Posted: Sun May 16, 2010 1:21 am
by elav
Hello! I'm setting up MeteoHub on a NSLU2 to try it out with my weatherstation. I initially put the disk image on a 32 Gb USB Thumb Drive but realized that this is a waste of a huge thumb drive so I went out and bought a 4 Gb USB Thumb Drive. I would like to reformat my 32 Gb Thumb Drive so I can use it with my PC again but XP only recognizes 415 Mb of the 32 Gb. Can someone tell me how I can restore this? Thanks in advance!
Re:Restore USB Thumb Drive
Posted: Sun May 16, 2010 9:16 am
by admin
Meteohub image is a raw disk image that also comes with a partition table. Windows PCs just see first partition which is about 500 MB.
You need to do a repartitioning of the SD card. You can force Windows to do that by doing a low level write of zeros to the first sectors of the raw SD card. This will destroy the partition table and Windows will build a new one when doing format on this.
To do low-level write you can use "dd" with taking /dev/zero as input device or "diskimage" in physical disk mode and applying a file with a few MB of zeros in it. Please watch out that you don't do that with your PC's disk as target drive!
Re:Restore USB Thumb Drive
Posted: Tue May 18, 2010 6:37 am
by elav
Thanks for the information! For those that are on XP and don't want to get too deep in this, there is a program called LLFsetup.2.36.1181.exe that provides a nice GUI and will do a low level format too.