[ previous ] [ next ] [ threads ]
 
 From:  "Bryan Brayton" <bryan at sonicburst dot net>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall] dd incantation for OX X
 Date:  Tue, 28 Sep 2004 14:08:24 -0400
>>I did attempt to search the list archives for this.  My apologies if I 
>>overlooked this. 

>No worries about missing it; the archive search leaves a bit to be desired, 
>I have had problems finding threads I *know* are there. 

 

A bit off topic, but I learned very quickly the best way to search the m0n0 archives was through
google.  Just specify site:m0n0.ch in the search dialog.  Much more productive searching.

 

-Bryan


________________________________

From: Michael A. Alderete [mailto:lists dash 2003 at alderete dot com]
Sent: Tue 9/28/2004 1:28 PM
To: Jeffrey Goldberg; m0n0wall at lists dot m0n0 dot ch
Subject: Re: [m0n0wall] dd incantation for OX X



>I am wondering what the dd incantation is for Apple OS X.  And should I be 
>writing to the raw device. [...] 
> 
>I did attempt to search the list archives for this.  My apologies if I 
>overlooked this. 

No worries about missing it; the archive search leaves a bit to be desired, 
I have had problems finding threads I *know* are there. 

Here's the response from Fred Wright, from the last time this came up (the 
subject was "Format CF on OS X" if you want to search for the whole thread): 

> >> Can I format the CF card using a card reader under OS X? 
> >> Is there something else I can do? 
> >> 
> > It works fine, but you have to jump through a few hoops 
> > to get round OS X's automatic mounting of cards. 
> > 
> > What you do is: 
> > 
> > Plug the card in via the card reader. Use the Disk 
> > utility to see where it's been mounted - different brands 
> > of card seem to come up as different disks, but usually 
> > it's something like /dev/disk2 or 
> >/dev/disk3. 
> > 
> > Unmount the card, if Os X has mounted it - you can use 
> > Disk Utility to do this. 
> > 
> > Since Disk Utility can read .iso images you should be 
> > able to use that, but I haven't got that to work, so I 
> > have to use terminal. 
> 
> For the CF-based platforms it's not an ISO image, it's a 
> BSD-partitioned disk image. 
> 
> > Run a terminal, su to root, so you can write to the card 
> > and do the same as the Unix instructions say: 
> 
> su to root?  You haven't set up sudo? 
> 
> > # pkunzip <mono iso file> | dd of=/dev/disk2 bs=16K 
> 
> I don't use a pipe.  I gunzip it to a file, so I can not 
> only write the file to the card, but also read it back and 
> compare it.  When reading back, you need to specify the 
> length with "count=XXX" (typically the same number of 
> records it claimed to have written). 
> 
> I also found that my reader/writer didn't work properly 
> with the "bs=16k", but did with the default 512-byte 
> blocksize.  I don't recall whether I was using /dev/diskX 
> or /dev/rdiskX, though. 
> 
> > (Assuming the card appeared as /dev/disk2). 
> 
> And be sure to get the device representing the whole card, 
> rather than a partition.  Things like "/dev/disk2s3" are 
> partitions. 
> 
>                                       Fred Wright 

HTH. 

Michael 
-- 

_____________________________________________________________ 
Michael A. Alderete           <mailto:lists dash 2003 at alderete dot com> 
                                     <http://www.alderete.com> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch 
For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch