[cochiselinux]

  • From: Charles Breaux <chazbreaux@xxxxxxxxx>
  • To: cochiselinux@xxxxxxxxxxxxx
  • Date: Fri, 3 Feb 2023 14:12:44 -0700

Please help. Fot some reason my mac won’t recognize any of the DVD-r that I
use trying to burn a DVD with Toast. I want to convert an iso file to dmg
so I can burn a bootable ubuntu install usb.

And as usual all of the sources that show how to do convert with hdiutil
either give different ways, and or, tell you what to do but now how to do
it. I realize that any linux nerd would know what they are talking about,
but I am confused and do not understand the basic command principles to
write commands, file paths etc. Below there are some of the suggestions.


So on my Mac, the ubuntu iso is on my desktop. And that is where I would
like the dmg to be placed.

Thank you. P.S. Deva, the battery on the macbook seems to have healed
itself...

Would someone please just type out the exact commands I need to put in the
terminal to convert the iso to dmg. I can create the bootable usb with the
etcher app….and then get the apple laptop running on ubuntu, yeah


*hdiutil convert **/folder/folder/file.iso** -format UDRW -o *
*/folder/folder/file.dmg*

Make sure to replace */folder/folder/file.iso* with the full filepath of
the .iso file. To ensure correct filepath, simply drag the iso file into
the terminal window at the point where you'd normally type the filepath.

*Step*

Open a Terminal window from the Utilities folder.

*Step*

Navigate to the folder containing the ISO image. For example, type *cd
Desktop* and then press *Return*.

*Step*

Type *hdiutil convert source.iso -format UDRW -o destination.img* and then
press *Return*. Replace "source" and "destination" with their actual values.

   -


   -


   -

   Download the desired file
   -

   Open the Terminal (in /Applications/Utilities/ or query Terminal in
   Spotlight)
   -

   Convert the .iso file to .img using the convert option of hdiutil (e.g.,
   hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)


Note: OS X tends to put the .dmg ending on the output file automatically.

   -

   Run diskutil list to get the current list of devices
   -

   Insert your flash media
   -

   Run diskutil list again and determine the device node assigned to your
   flash media (e.g., /dev/disk2)
   -

   Run diskutil unmountDisk /dev/diskN (replace N with the disk number from
   the last command; in the previous example, N would be 2)
   -

   Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace
   /path/to/downloaded.img with the path where the image file is located;
   for example, ./ubuntu.img or ./ubuntu.dmg).
   -

   Using /dev/rdisk instead of /dev/disk may be faster.
   -

   If you see the error dd: Invalid number '1m', you are using GNU dd. Use
   the same command but replace bs=1m with bs=1M.
   -

   If you see the error dd: /dev/diskN: Resource busy, make sure the disk
   is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the
   drive.
   -

   Run diskutil eject /dev/diskN and remove your flash media when the
   command completes
   -

   Restart your Mac and press Alt while the Mac is restarting to choose the
   USB-Stick

Other related posts: