Gary G. Hendershot wrote:
> 
> I kind of know how to use "cat" but have been successfully pushing my images
> to media using the "dd" command.  Then again, I still use rotary dial
> phones.  Has there been a discussion of the pros/cons?  "dd" seems to work
> for me, is there a compelling argument to switch to "cat"?
> 
> The "dd" command I use is "dd if=disk.img of=/dev/<name of device>" ...

No need to use 'cat' if 'dd' works for you fine.

> To get the "name of device" I will normally run the "fdisk -l" command to
> see what device are available.  I use a USB reader/writer for my CF cards so
> it normally returns the device as "/dev/sda1".  But I have also used an IDE
> to CF adapter on the slave IDE channel which returns the device name
> "/dev/hdb1".

As Darrick already mentioned, write to the disk (i.e. /dev/sda), but not
to an individual partion (i.e /dev/sda1).

> I have also found that when running "makeimage.sh" it seems to work more
> reliably if any pre-existing partitions are first removed from the CF card
> using "fdisk".  To do this, I run "fdisk /dev/<name of device>".  Then
> select "d" to delete a partition.  Normally, there is only a single
> partition so fdisk removes partition "1" by default.  I then select "w" to
> write the changes.

I haven't had an issue so far where I would have to remove first the
existing partition(s). What happens in your case when you don't remove
the existing partitions first? I am asking because you said 'it seems to
work more reliably".

> I have a peculiarity on my CentOS machine where it doesn't always
> "autodetect" the CF card when I insert it into the USB reader.  Often I have
> to reboot a couple times, pull the card and re-insert it, run "fdisk -l" a
> couple times and sprinkle holy water on it.  Eventually it seems to find the
> CF card and let me burn the image.  When it doesn't, I move the CF card to
> the slave IDE channel and burn it that way.  This always works but requires
> re-booting at each step of the burn.

I don't know CentOS very well. I am using the Suse distro. Of course I
have noticed there quite a few probs with USB hotplugging as well. Often
it's good enough to pull the card, pull the USB card reader, insert the
card reader, insert the CF card. But I guess everyone of us can report
different/similar stories here...

regards,

Ingmar

> I am sure this is an oddity that is unique to my workstation so I have not
> bothered the list with this one.  But if this is common and someone has an
> "idiot proof" technique for getting the workstation to always see the CF
> card on insertion, I would sure like to hear it.
> 
> I hope these observations might prove helpful.
> 
> Thanks
> 
> G.Hendershot
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ingmar Schraub
> Sent: Tuesday, August 29, 2006 1:43 PM
> To: Discussion of AstLinux - Asterisk on Compact Flash
> Subject: Re: [Astlinux-users] Quick rundown on the usageof mkimage.sh
> anyone?
> 
> Hello Michael,
> 
>> FYI, I've combined and added this great info to the wiki at:
>>
>> http://www.voip-info.org/wiki/view/AstLinux+Development+Environment
> 
> Great stuff! It's really great that someone picked up the topic
> "documentation" :)
> 
> BTW, I just added two lines. One to provide a simple example how to do this
> "cat" stuff. Secondly you should always run make menuconfig and specfiy the
> correct target, select packages, etc.
> 
> cheers Ingmar
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to
> [EMAIL PROTECTED]
> 
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> http://lists.kriscompanies.com/mailman/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
> PROTECTED]
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to