pierro88
Posts: 2
Joined: Fri May 04, 2012 7:42 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 10:10 am

Hi!

As I'm an absolute absolute beginner, I have a couple problems/questions with the very first step to try my just received Raspberry Pi.

I followed the tutorial for Mac OSx (http://elinux.org/RPi_Easy_SD_Card_Setup) to the letter. However I get in trouble at the step 8

(Translate the device name of the partition into the raw device for the entire disk, by missing out the final "s1" and replacing "disk" with "risk")

When I type on the terminal  /dev/disk2s1 => /dev/rdisk2 I get -bash: /dev/disk2s1: No such file or directory.

and when I type just /dev/rdisk2 I get -bash: /dev/rdisk2: Permission denied

so if any of you had the same problem and maybe a solution let me know please.

Also what difference does it make to change the name?

Thank you guys

xtramural
Posts: 108
Joined: Thu Dec 29, 2011 11:16 pm
Location: Scotland

Re: set the SDcard on Mac OSx

Mon May 07, 2012 10:30 am

I thinks I see your problem. Don't type /dev/disk2s1 => /dev/rdisk2, just go straight to the following instruction in the set up - i.e.:

dd bs=1m if=~/Downloads/debian6-19-04-2012/debian6-19-04-2012.img of=/dev/rdisk2

IOW, the /dev/disk2s1 => /dev/rdisk2 is just the example translation you need to do to translate the device name into a 'raw' device.
HTH,

Duncan

tufty
Posts: 1454
Joined: Sun Sep 11, 2011 2:32 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 10:37 am

pierro88 said:


When I type on the terminal  /dev/disk2s1 => /dev/rdisk2 I get -bash: /dev/disk2s1: No such file or directory.

and when I type just /dev/rdisk2 I get -bash: /dev/rdisk2: Permission denied


That line doesn't mean that you should literally type

/dev/disk1s1 => /dev/rdisk1

It means that, if your sd card is recognised as /dev/diskNsX where N and X are numbers, the device you need to access in order to copy the image to the disk is /dev/rdiskN

As an aside, yes, accessing any of the /dev nodes directly may well cause an error, which is why the next line should probably be preceded by 'sudo'.  If you get access problems with the line (obviously, replacing the /dev/rdisk1 with whatever actual device node your card is recognised as)

dd bs=1m if=~/Downloads/debian6-19-04-2012/debian6-19-04-2012.img of=/dev/rdisk1

you might want to try

sudo dd bs=1m if=~/Downloads/debian6-19-04-2012/debian6-19-04-2012.img of=/dev/rdisk1 

mebrew
Posts: 12
Joined: Thu Jan 05, 2012 2:10 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 10:45 am

Hi

I am a Pi virgin also. On advice from greater minds the way I found easy for me was to download an app. called dd-gui.app from  http://www.gingerbeardman.com/dd-gui/

called : dd-gui-.zip

http://www.gingerbeardman.com/.....ui-021.zip.

Once installed and opened on the mac. Down load the Image file (Debian in my case).

Using dd-gui  in the source line enter  /Users/yourusername/Downloads/debian6-13-04-2012/debian6-13-04-2012.img.

In the destination line /dev/disk1 and hit start.

A terminal should open showing that it is creating a file of 195000000 bytes.

This worked for me.

User avatar
nick.mccloud
Posts: 804
Joined: Sat Feb 04, 2012 4:18 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 12:08 pm

On my Mac, the drives come up as /dev/diskX where X is a number when I use diskutil list, I don't sudo and I don't set the block size and it's all working fine.

Could someone tell me how to post code snippets like tufty did please? 

tufty
Posts: 1454
Joined: Sun Sep 11, 2011 2:32 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 12:37 pm

Let's assume I want this result:

foo
bar

I type what I want in the normal editor, then go to the html edit thingie.  I see this:


<p>foo</p>

<p>bar</p>


which I change to


foo<br />

bar


Note the changing of the intermediate close-p tags to break tags.  Once I've posted this, however, I can never edit it again, as the forum software is bloody awful, and breaks it more and more the more you try to fix it.

Simon

tufty
Posts: 1454
Joined: Sun Sep 11, 2011 2:32 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 12:38 pm

Oh, for the love of all that"s holy…

You wrap the text in code tags.  These look a bit like this, but with the square brackets turned into angle ones:

some code here
Okay, lt's try that again.

left-angle-bracket code right-angle-bracket *my text goes here* left-angle-bracket forward-slash code right-angle-bracket

Separate your lines of code with

left-angle-bracket br *space* forward-slash right-angle-bracket.

I am actually laughing now. when you want this forum software to do something, it won't.  When you want it to not do something, it does it.  phpbb can't come fast enough for me.

Simon

pierro88
Posts: 2
Joined: Fri May 04, 2012 7:42 pm

Re: set the SDcard on Mac OSx

Mon May 07, 2012 11:15 pm


Thank you! That makes a lot more sense now and it work!


Poofjunior
Posts: 35
Joined: Tue May 15, 2012 5:27 pm
Location: Claremont California

Re: set the SDcard on Mac OSx

Tue May 15, 2012 6:33 pm

Hello, everyone,

I am also having the same issue. I'm on step 9 in Copying the Image onto an SD Card for mac. When I type

Code: Select all

dd bs=1m if=/Users/EchoBase/Desktop/JPedia/RaspberryPi/Debian_Squeeze/debian6-19-04-2012/debian6-19-04-2012.img of=/dev/rdisk2 
and then retry the command again with "sudo !!" I still receive

Code: Select all

 
dd: /dev/rdisk2: Permission denied 
Right now I'm using a 4GB SD HC card. Have I missed any setup that I need to do on the SD card beforehand?

Any ideas? Many thanks in advance for the help!

jonv
Posts: 24
Joined: Wed Nov 09, 2011 9:02 pm

Re: set the SDcard on Mac OSx

Tue May 15, 2012 9:37 pm

Worth checking the write protect switch on the SD card is not on?

Poofjunior
Posts: 35
Joined: Tue May 15, 2012 5:27 pm
Location: Claremont California

Re: set the SDcard on Mac OSx

Tue May 15, 2012 10:29 pm

Aha! I may have discovered the problem!
It turns out that the Macbook built-in card reader I'm using doesn't play nicely with SDHC cards. I just borrowed a nearby card reader, and the uploading went smoothly!

jason.timothy.jones
Posts: 1
Joined: Fri May 25, 2012 1:33 pm

Re: set the SDcard on Mac OSx

Fri May 25, 2012 1:34 pm

Ive had the same probles as everyone else, it does come down to the SD slot on the newer Mac, get a card reader and it will work

dgallot
Posts: 1
Joined: Tue May 29, 2012 7:30 pm

Re: set the SDcard on Mac OSx

Tue May 29, 2012 7:34 pm

I managed to do it by first umounting the image

Code: Select all

>diskutil umount /dev/disk1s1
>sudo dd if=debian6-19-04-2012/debian6-19-04-2012.img of=/dev/rdisk1 bs=1m
A quick check to see if something has been written to the image
>more -f /dev/rdisk1
<FA><B8>^@^P<8E

Dogcow
Posts: 1
Joined: Fri Mar 09, 2012 9:42 pm

Re: set the SDcard on Mac OSx

Fri Jun 01, 2012 7:01 pm

Or.... If you are having issues typing in dd commands to terminal, just use the RaspiWrite script which simplifies and automates the whole process on a Mac. Simples.
http://exaviorn.com/raspiwrite/

finnaldo
Posts: 1
Joined: Wed Jun 13, 2012 10:16 pm

Re: set the SDcard on Mac OSx

Wed Jun 13, 2012 10:19 pm

Thanks, external card reader did the trick for my 2010 macbook pro 15"

arduinopi
Posts: 2
Joined: Sun Jun 17, 2012 3:03 pm

Re: set the SDcard on Mac OSx

Mon Jun 18, 2012 10:13 pm

Hi all, I have put together a rough guide and explanation of what the terminal commands mean, potential problems to watch out for an how to double check you don't over write the wrong disk.

Check it out over here.

http://arduinopi.co.uk/forum/viewtopic.php?f=3&t=15

Now off to play with fedora :)

adamspi
Posts: 1
Joined: Thu Aug 09, 2012 3:03 am

Re: set the SDcard on Mac OSx

Thu Aug 09, 2012 3:36 am

I had the Permission Denied problem, then I noticed that the sdcard was read only.

I checked the lock switch and it was in the correct position.

After a search I found that a common problem on MacBooks is the little spring that checked the lock position sticks. Just blow (or use canned air) into the sdcard slot to free up the spring.

My sdcard suddenly became writeable and the Permission Denied error disappeared.

machadolab
Posts: 1
Joined: Sat Aug 11, 2012 8:46 pm

Re: set the SDcard on Mac OSx

Sat Aug 11, 2012 8:48 pm

haha I thought for sure the "blow into the slot" thing wouldn't work, but it did! So perhaps the macbook pro SD slot does work after all, it just needs a little attention first.

+1 for figuring that out!!

Pre10der
Posts: 3
Joined: Fri Sep 21, 2012 10:31 am

Re: set the SDcard on Mac OSx

Fri Sep 21, 2012 10:33 am

Crickey, blowing in the slot worked for me also. It has a couple of times now.

Who would have thought?

:shock:

droythorne
Posts: 1
Joined: Fri Oct 19, 2012 1:30 pm

Re: set the SDcard on Mac OSx

Fri Oct 19, 2012 1:34 pm

The 'blowing in the hole trick' seemed to work for me too. I'm off to see if it's still the late 70s and kicking my TV still makes it work too.

tufty
Posts: 1454
Joined: Sun Sep 11, 2011 2:32 pm

Re: set the SDcard on Mac OSx

Fri Oct 19, 2012 4:34 pm

droythorne wrote:I'm off to see if it's still the late 70s and kicking my TV still makes it work too.
Let me know if it makes anything on it worth watching.

phucte
Posts: 1
Joined: Wed Dec 12, 2012 6:36 pm

Re: set the SDcard on Mac OSx

Wed Dec 12, 2012 6:38 pm

After a search I found that a common problem on MacBooks is the little spring that checked the lock position sticks. Just blow (or use canned air) into the sdcard slot to free up the spring.
Yes, this trick worked for me too , amazing! :D

Sarvi
Posts: 1
Joined: Tue Dec 18, 2012 4:43 pm

Re: set the SDcard on Mac OSx

Tue Dec 18, 2012 4:47 pm

This tip worked for me too - never would have figured that out by myself so thanks guys! :shock:

chabbani
Posts: 1
Joined: Sun Jan 27, 2013 12:28 pm

Re: set the SDcard on Mac OSx

Sun Jan 27, 2013 12:36 pm

I tried to burn an SD on Mac OS Mountain Lion it simply does not work. Sorry guys.

I found the reason for this painful experience. The operating system is 64 Bit and Mac OS
in Mountain Lion does not anymore support booting to 32 bit kernel.

I advise you to save time and burn the SD Card on an old crappy PC running any flavour of Linux, it will work
for you from the first time!

Good Luck...

toejam
Posts: 1
Joined: Sun Jan 27, 2013 1:55 pm

Re: set the SDcard on Mac OSx

Sun Jan 27, 2013 1:59 pm

Regular Lion worked fine with dd and built in MacBook Air card reader.

Unmount it first and make sure you're targeting the right location, mine was disk3. Check under About this Mac / More Info / System Report / Card Reader to find the SD location.

Return to “Beginners”

Who is online

Users browsing this forum: bhl88, studio72 and 71 guests