Hedley
Posts: 2
Joined: Sat Jan 13, 2018 4:23 pm

Help: Installing an image on to my SD card

Sat Jan 13, 2018 4:30 pm

Hi,

I had a working copy of Raspbian but need to try another version with a weather station program installed and working as my attempt wasn't getting very far and was reading 0 values for several of my sensors. I know the sensors are working as I get correct values when I use Windows.

I downloaded an image file as a .gz (rpi_consolewd.gz) file, extracted the 1.img file (there was also a 0.fat file there as well) and then used Etcher to Flash the formatted SD card (I use SD Card Formatter for this).

During this process it gave me a warning: "It looks like this is not a bootable image. The image does not appear to contain a partition table, and might not be recognized or bootable by your device."

Not knowing any better, I decided to carry on and pressed Flash and waited for it to write it to my card.

This gave me an SD card that said it needed formatting and was undreadable. Tried it in the Pi anyway and nothing. Wouldn't boot. Wasn't surprised.

In windows, If I right click on the 1.img file and select Mount. Windows errors with: "The disc image file is corrupted."

But, going back to 7-Zip, if I open the 1.img file I get a list of dirs.

Image

My next step was to format the card again. Extract the contents of 1.img into a dir on my desktop then copy this across to the card giving me:

Directory of F:\ (F:\ being my SD Card)

05/07/2017 11:44 <DIR> lost+found
05/07/2017 10:30 <DIR> media
05/07/2017 10:30 <DIR> mnt
13/01/2018 12:39 <DIR> opt
07/01/2015 02:09 <DIR> proc
13/01/2018 12:41 <DIR> root
13/01/2018 12:39 <DIR> run
05/07/2017 10:55 <DIR> sbin
05/07/2017 10:30 <DIR> srv
12/04/2015 10:20 <DIR> sys
16/07/2017 21:05 <DIR> tmp
13/01/2018 12:39 <DIR> usr
13/01/2018 12:39 <DIR> var
13/01/2018 12:39 <DIR> bin
05/07/2017 11:44 <DIR> boot
13/01/2018 12:39 <DIR> dev
13/01/2018 12:40 <DIR> etc
13/01/2018 12:39 <DIR> home
13/01/2018 12:40 <DIR> lib
13/01/2018 14:27 33 dir.txt
1 File(s) 33 bytes
19 Dir(s) 14,189,658,112 bytes free

Popped this into my Pi and again. Nothing. It wouldn't boot.

Not sure how to proceed from here. Any pointers would be appreciated.

And... As you can tell I'm new to this so please be gentle.

many thanks.

Hedley

fruitoftheloom
Posts: 16735
Joined: Tue Mar 25, 2014 12:40 pm

Re: Help: Installing an image on to my SD card

Sat Jan 13, 2018 8:45 pm

Hedley wrote:
Sat Jan 13, 2018 4:30 pm
Hi,

I had a working copy of Raspbian but need to try another version with a weather station program installed and working as my attempt wasn't getting very far and was reading 0 values for several of my sensors. I know the sensors are working as I get correct values when I use Windows.

I downloaded an image file as a .gz (rpi_consolewd.gz) file, extracted the 1.img file (there was also a 0.fat file there as well) and then used Etcher to Flash the formatted SD card (I use SD Card Formatter for this).

During this process it gave me a warning: "It looks like this is not a bootable image. The image does not appear to contain a partition table, and might not be recognized or bootable by your device."

Not knowing any better, I decided to carry on and pressed Flash and waited for it to write it to my card.

This gave me an SD card that said it needed formatting and was undreadable. Tried it in the Pi anyway and nothing. Wouldn't boot. Wasn't surprised.

In windows, If I right click on the 1.img file and select Mount. Windows errors with: "The disc image file is corrupted."

But, going back to 7-Zip, if I open the 1.img file I get a list of dirs.

Image

My next step was to format the card again. Extract the contents of 1.img into a dir on my desktop then copy this across to the card giving me:

Directory of F:\ (F:\ being my SD Card)

05/07/2017 11:44 <DIR> lost+found
05/07/2017 10:30 <DIR> media
05/07/2017 10:30 <DIR> mnt
13/01/2018 12:39 <DIR> opt
07/01/2015 02:09 <DIR> proc
13/01/2018 12:41 <DIR> root
13/01/2018 12:39 <DIR> run
05/07/2017 10:55 <DIR> sbin
05/07/2017 10:30 <DIR> srv
12/04/2015 10:20 <DIR> sys
16/07/2017 21:05 <DIR> tmp
13/01/2018 12:39 <DIR> usr
13/01/2018 12:39 <DIR> var
13/01/2018 12:39 <DIR> bin
05/07/2017 11:44 <DIR> boot
13/01/2018 12:39 <DIR> dev
13/01/2018 12:40 <DIR> etc
13/01/2018 12:39 <DIR> home
13/01/2018 12:40 <DIR> lib
13/01/2018 14:27 33 dir.txt
1 File(s) 33 bytes
19 Dir(s) 14,189,658,112 bytes free

Popped this into my Pi and again. Nothing. It wouldn't boot.

Not sure how to proceed from here. Any pointers would be appreciated.

And... As you can tell I'm new to this so please be gentle.

many thanks.

Hedley


Using Etcher there is no requirement to either format the SD Card or even unzip the file. Etcher is an all in one solution:

https://etcher.io/
Adieu

W. H. Heydt
Posts: 8516
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Help: Installing an image on to my SD card

Sat Jan 13, 2018 8:55 pm

Some general observations...

A properly configured SD card to boot a Pi has at least 2 partitions. Most (other than NOOBS) have exactly 2. The first partition is a FAT partion that is later mounted as /boot and is usually rather small, on the order of 60MB. Normally the rest of the card is an EXT4 partition that contains the root Linux filesystem. The VC4 starts the bootstrap process by reading the FAT partition (it doesn't know anything about EXT4). Once the Linux kernel--which is a file in the boot partition--is loaded and running control is handed off the the ARM CPU core(s), the ETX4 root partition is used.

Windows cannot read an EXT4 partition. It doesn't have a "driver" to do so, unless you've added third party software to the Windows system. Therefore, it will throw all manner of errors if it even sees that. Usually on Pi-ready SD card, Windows will just show you the--small--boot partition. (This is why we get questions about "want happened to all the space on my SD card?" )

Notice that your weather station image contains *two* image files. The 0.fat image is almost certainly the boot partition and the 1.img will be the root partition. How you get Etcher to create and load both images to a card...I don't know.

B.Goode
Posts: 6015
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Help: Installing an image on to my SD card

Sat Jan 13, 2018 8:57 pm

What image did you download, and from where?

The official release from the Raspberry Pi Foundation is linked from near the end of the Raspberry Pi Foundation download page: https://www.raspberrypi.org/downloads/

That seems to lead to http://downloads.raspberrypi.org/weathe ... tation.zip

Edit: if this relates to an official Raspberry Pi Foundation Weather Station there is full and clear installation documentation here - https://www.raspberrypi.org/learning/we ... oftware.md
Last edited by B.Goode on Sat Jan 13, 2018 9:41 pm, edited 1 time in total.

klricks
Posts: 5590
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Help: Installing an image on to my SD card

Sat Jan 13, 2018 9:07 pm

Looks like you downloaded the wrong file? rpi_consolewd.gz is not on their download site: http://www.weather-display.com/fileslinux.php
There are different version depending on which RPi model you have.

You should read the install documentation and/or ask questions on the WD site / forums. In general only the official Raspbian OS is supported here.
Note ignore any messages from Windows about formatting etc. Windows does not understand Linux files or filesystems.
If you are supposed to use Etcher or similar then formatting the card is not needed.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

Hedley
Posts: 2
Joined: Sat Jan 13, 2018 4:23 pm

Re: Help: Installing an image on to my SD card

Sat Jan 13, 2018 9:39 pm

Hi,

thanks for your replies. Your help is really appreciated.

I would have replied earlier but I was waiting for my post to be moderated.

The file is a home brew image that includes the Weather Display software pre-installed and isn't an official distro.

Since posting this I have resolved the issue.

I unpacked the image provided whereas I should just have written it to the card which I have done and it has booted.

Interestingly. Etcher didn't recognise the image so I used Win32DiskImager instead which, once I changed the image type to *.* found it and wrote it to the card.

So, I extracted too much and should have just used the original file rpi_consolewd in rpi_consolewd.gz but I went one and then two steps further in unzipping/extracting.

Return to “Beginners”

Who is online

Users browsing this forum: DougieLawson and 53 guests