Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Trying to writing .img file to a Compact Flash
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="gunnerjoe" data-source="post: 104038" data-attributes="member: 8084"><p>Hi All,</p><p></p><p>Ok, figured this out. Since so many have viewed this, I'll post the solution.</p><p></p><p>If you go to /dev directory and do a 'ls' you will see a list of all your devices. The devices I was interested in are the 'raw' devices. While no extra devices are plugged in to my laptop, the only raw devices I see are the ones associated with my hard drive, which is mounted under /dev/disk0s5. RAW disk listed below: </p><p>rdisk0 </p><p>rdisk0s1</p><p>rdisk0s2 </p><p>rdisk0s3 </p><p>rdisk0s4 </p><p>rdisk0s5</p><p></p><p>Now if I plug in some other external drive, such as a Compact Flash card and after the drive mounts under /dev/disk2s1 , re-run that 'ls' command I should see some new "raw" devices. </p><p></p><p>rdisk2</p><p>rdisk2s1</p><p></p><p>Then while drive is mounted I'll write the image to raw disk, rdisk2s1, (not the mounted disk /dev/disk2s1) as in the example below. Some Unix versions require the drive to be unmounted, but not here.</p><p></p><p>gzcat net48xx-1.11.img |dd of=/dev/rdisk2s1 bs=16k</p><p></p><p>Output looks like:</p><p>gzcat: net48xx-1.11.img: decompression OK, trailing garbage ignored</p><p>0+768 records in</p><p>0+768 records out</p><p>6291456 bytes transferred in 12.971943 secs (485005 bytes/sec)</p><p></p><p>I'm surprised one of you Darwin guru's couldn't help with that, I had to ask a Sun Microsystems guru for help; THE SHAME, THE SHAME <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>Later All,</p><p></p><p>Joe</p></blockquote><p></p>
[QUOTE="gunnerjoe, post: 104038, member: 8084"] Hi All, Ok, figured this out. Since so many have viewed this, I'll post the solution. If you go to /dev directory and do a 'ls' you will see a list of all your devices. The devices I was interested in are the 'raw' devices. While no extra devices are plugged in to my laptop, the only raw devices I see are the ones associated with my hard drive, which is mounted under /dev/disk0s5. RAW disk listed below: rdisk0 rdisk0s1 rdisk0s2 rdisk0s3 rdisk0s4 rdisk0s5 Now if I plug in some other external drive, such as a Compact Flash card and after the drive mounts under /dev/disk2s1 , re-run that 'ls' command I should see some new "raw" devices. rdisk2 rdisk2s1 Then while drive is mounted I'll write the image to raw disk, rdisk2s1, (not the mounted disk /dev/disk2s1) as in the example below. Some Unix versions require the drive to be unmounted, but not here. gzcat net48xx-1.11.img |dd of=/dev/rdisk2s1 bs=16k Output looks like: gzcat: net48xx-1.11.img: decompression OK, trailing garbage ignored 0+768 records in 0+768 records out 6291456 bytes transferred in 12.971943 secs (485005 bytes/sec) I'm surprised one of you Darwin guru's couldn't help with that, I had to ask a Sun Microsystems guru for help; THE SHAME, THE SHAME :( Later All, Joe [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Trying to writing .img file to a Compact Flash
Top