-1

I am working on a scientific project for which I build inexpensive radio receiver based on Raspberry Pi 2. Sorry, I am new with Raspbian and ask stupid questions. For example, for the radio receiver I need to install special software (so-called SensoreGnome developer kit from here https://sensorgnome.org/Raspberry_Pi_2_%2f%2f_Zero_Port_-_Work_In_Progress)

It is an image file which I downloaded on microSD working in my Pi. Now I have to mount this image in Raspbian and 'rebuild some programs from source' whatever it means (I believe it means compile program using source files.

  1. How can I mount image file in Raspbian?

  2. How can I 'rebuild programs from source'?

Thanks

0

So I think this is a bit tricky, but just to be clear, it sounds like you already have a working Raspberry Pi and an image of Raspbian on an SD card. You have an image of some software that you want Raspbian to utilize and mount as a readable drive.

Looking at the site that you sent, there is a readme text file that you probably should also use and leverage for this. It doesn't mention anything about needing to download some separate software and installing it that way. SO the image you have I think is the standard Raspbian Jessie image with some references to this project, possibly a slightly custom distro for your purposes.

http://public.sensorgnome.org/RaspberryPi2_Sensorgnome_Images/readme.txt

If you have that same file that is mentioned at the top as an image, I would go ahead and put that on a SD Card as you would with the Raspbian distro per the instructions on the RapsberryPi.org website. Then this SD card will replace the current one you probably have.

You may have some other software or other configurations on the original SD card or only have 1 SD card, so it might be wise to try to back up that data, and then possibly overwrite that SD card with the new image and follow the instructions in the ReadMe file / link above.

However, if you still have an image file that you need mounted and need to read from to install some software on it, I think the following steps might help. The first thing is you need to run fdisk to find some general info of the image.

fdisk -l /path/to/image

Then you need to run the mount command based on the size of that image

mount -o loop,offset=65536 NewStuff.img /mnt/tmp

This should give you a mounted image of what you are looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.