Hi all, I am trying to get the image on to my SD card. I am following the guide at https://github.com/emoncms/emoncms/blob/bufferedwrite/docs/setup.md
I don't understand
"Locate the directory of your downloaded emoncms image in terminal and write it to an SD card using linux tool dd:"
so I did
brandon@brandon-Aspire-E1-571 ~ $ $ sudo dd bs=4M if=emonSD-13-08-14.img of=/dev/mmcblk0p1 $: command not found
I am aware that I could easily screw things up fundamentally....
any help much appreciated, i am very new to this but wanting to learn. I am happy enough putting physical things together, but i feel wholly out of my depth with this.
Thanks
Thendon.
Re: struggling with image on SD
OK... i found the extra $
but now i have
I guess this is due to my lack of understanding regarding the
"Locate the directory of your downloaded emoncms image in terminal and write it to an SD card using linux tool dd:"
TIA
Thendon
Re: struggling with image on SD
Hi Thendon,
when specifying the input file (if=) unless the file is in the same directory that you are running the command from, you will need to specify it's path eg /folder/folder/emonSD-13-08-14.img.
Also I notice you have specified the output file (of=) as/dev/mmcblk0p1 you should change that to be just /dev/mmcblk0 without the partition ref (p1) as the image is the full SD card including partitions p1,p2 and p3.
so something like
should work for you
Paul
Re: struggling with image on SD
Thanks fo that Paul.
so, the .img is in the Downloads, which is in the Home, so... I tried
Is there a prior directory in which it is stored? and if so is there an easy way to discover this?
right clicking on the zip .img file allows me to open it in terminal.... does that help?
again, all help very gratefully received.
Thanks
Thendon
Re: struggling with image on SD
OK...
So i got there in the end.
The read only foxed me of a bit. switch on the SD card adaptor set to lock! doh!
then i entered
But now the terminal seems to be hung,
normally I would expect to get the
back, but nothing. Do I need to wait? or start over with unmounting the card?
TIA
Thendon
Re: struggling with image on SD
Patience!
It can take a long time to copy, but eventually the prompt will return, and indicate whether the process was successful or not.
Not sure if it makes much difference, but I always put the block size after the if/of commands. ie
Paul
Re: struggling with image on SD
Thanks Paul,
I tried closing the terminal and it let me know that it was still busy thinking...
I am too excited and wanting to get on with the next bit...
Thendon.
Re: struggling with image on SD
So,
I got this
Good or no good?
Re: struggling with image on SD
definitely "no good" I'm afraid !
It's only copied 20MB the downloaded image is 975MB.
Is the /dev/mmcblk0 correct? That is the correct path for the SD card when in the Pi but as you are using another machine so I can't be sure.
I would also use the command as Paul suggests, but I don't think that's the issue, especially as that is how it is in the guide your following.
How big is the SD card? is it formatted? do you know if it is ok (not faulty)?
Paul
Re: struggling with image on SD
definitely "no good" I'm afraid !
darn!
It's only copied 20MB the downloaded image is 975MB.
Is the /dev/mmcblk0 correct? That is the correct path for the SD card when in the Pi but as you are using another machine so I can't be sure.
I found that by:
I would also use the command as Paul suggests, but I don't think that's the issue, especially as that is how it is in the guide your following.
I will try that.
How big is the SD card? is it formatted? do you know if it is ok (not faulty)?
16GB not sure how to check formatting, I used it to transfer something to check prior to unmounting it
Paul
Thanks
Thendon.
Re: struggling with image on SD
second attempt gives
so i guess i need to format the card.... I have tried searching here but don't appear to be able to find any advise, the process is usually alluded to as though it is common knowledge, alas for me that is not the case.
All help welcome
Thendon
Re: struggling with image on SD
Thendon, can you give some more details about how you are trying to write this image file.
Are you using a laptop/desktop with internal/external card reader/writer to host the source file and SD Card?
What operating system are you using?
What is the format of the SD card prior to issuing the command, ie the preferred format is FAT32?
Paul
Re: struggling with image on SD
Thendon, can you give some more details about how you are trying to write this image file.
Are you using a laptop/desktop with internal/external card reader/writer to host the source file and SD Card?
Laptop, running linux mint internal card reader
What operating system are you using?
What is the format of the SD card prior to issuing the command, ie the preferred format is FAT32?
i don't know, that is the hurdle that I am up against, i don't know how to find out or how to alter it.
Thanks
Thendon
Paul
Re: struggling with image on SD
I had the problem of not enough space on the SD card, in my case a 4 GB one - it was something (I don't think I bothered to find out exactly what) that the manufacturer had put on it. GPartEd dealt with it. My notes say:
__________
(GParted reports 8192 sectors (4.0 MiB) unallocated, starting at block 0)
What I did:
Formatted the card to FAT32 with GParted
Wrote "wheezian" with dd "sudo dd bs=4M if=/home/r/Downloads/2014-06-20-wheezy-raspbian.img of=/dev/mmcblk0" NOTE "mmcblk0" NOT "mmcblk0p1"
FLUSHED THE BUFFERS with sudo sync
__________
I was using the internal card slot in my Asus laptop.
Re: struggling with image on SD
Formatted the card to FAT32 with GParted
How do I go about this?
Re: struggling with image on SD
Thendon,
Get GPartEd partition editor from your Linux repository, if you don't have it already. When you run it, BE VERY CAREFUL and make sure you switch to looking at the SD card, not your machine. It's possible to destroy your Linux with it if you're not sure where you are and what you're looking at. (Hint, start it with the card out, see what devices it can see (top right corner), then insert the card - GParted -> Refresh Devices - the card is the new one!)
GPartEd allows you to format the card (or any connected drive), set and resize partitions etc. It also shows the file system on formatted partitions, which is what Paul wants.
Re: struggling with image on SD
What do you have on the SD card, according to GPartEd?
I can't remember now exactly what I did - I think I unmounted then deleted everything I could, then created one big partition using all the available space.
Re: struggling with image on SD
Hi all,
I tried to install gparted, but it would not, so in terminal I typed
I then tried to run it,and I got:
What gives? is there another way in which I can format it?
TIA
Thendon
Re: struggling with image on SD
Thendon, what version of Ubuntu are you using? is it an old unsupported version?
I believe anything prior to v12.04 has had it's repositories moved to archive.
Paul
Re: struggling with image on SD
Oops - I wrote this and posted without checking what you'd written in the meantime. I'm on Ubuntu 14.04 LTS, so GPartEd is available to me in the Software Centre. If that doesn't work, this looks promising: http://linuxg.net/how-to-install-gparted-0-16-2-on-ubuntu-13-04-12-10-12... for you if you have an older version - but I can't vouch for it.
I've wiped my 4 GB SD card using GPartEd. You unmount (if they are mounted - they probably will be) all the partitions and delete them. Note GPartEd doesn't actually do anything until you tell it to. Then make a single partition as large as possible as FAT32. With that done, the dd command takes about 10 mins to complete and shows this:
sudo dd bs=4M if=/home/r/Downloads/emonSD-13-08-14.img of=/dev/mmcblk0
945+1 records in
945+1 records out
3965190144 bytes (4.0 GB) copied, 736.131 s, 5.4 MB/s
"/home/r/Downloads/emonSD-13-08-14.img" is the image file that I downloaded; "/dev/mmcblk0" is the formatted SD card.
Re: struggling with image on SD
hi thanks for all yourr eplies.
I am running mint 15, not that happy with it to be honest, but i couldn't make Ubuntu boot to this machine.
It always tells me when I ask it to update that it can not download all the necessary files, and although I can find GparteD in the software center it will not download, nor rwill anything else!
the worst part however is that the keyboard stops working on a sparodic basis, sometimes only a minute in, and sometimes it will be fine for days... frustrating to say the least.
At present I am going to buy a couple of formatted and loaded cards from Oem, it saves me the hassle, gets me up and running, and helps support the project -win, win.
I will however persevere as this is a learning process that I have wanted to get to grips with for some time, and I am learning, albeit slowly......
I run a mall Biomass heating company, and I would really like to be able to leave a logging device on each job for the first couple of months so that we can monitor them, it then allows us to see anything that might be perplexing or aggravating a client, and diagnose if it is a plant room issue or client issue.... not only that but potential clients really like to see the one that one of my clients put in place.
I will press on, but until wednesday I am at the coast with family and no internet.
Cheers
Thendon.