Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

using "dd" to write bootable image to thumbdrive

Posted on 2007-12-02
2
Medium Priority
?
10,823 Views
Last Modified: 2013-11-14
I'm trying to follow the directions here:

http://wiki.awkwardtv.org/wiki/Booting_from_a_USB_Thumbdrive

to write a USB thumb drive image to the thumb drive. I'm on OS X Leopard and its a 1 GB thumb drive.

the described "umount" command doesn't work, it says "Resource Busy".  So I unmount it via the guid finder by selecting "Eject" for it, which does work.

After that if I try to do the "dd" command, it says "Operation not supported":

Here is the output in the terminal of what I'm doing:







bash$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
/dev/disk1s1 on /Volumes/Untitled (hfs, local, nodev, nosuid, journaled, noowners)
bash$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *149.1 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Macintosh HD            148.7 Gi   disk0s2
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *1017.0 Mi  disk1
   1:                  Apple_HFS Untitled                1016.9 Mi  disk1s1
bash$ sudo umount /Volumes/Untitled
umount: unmount(/Volumes/Untitled): Resource busy
bash$ sudo dd if=patchstick.img of=/dev/disk1 bs=1m
dd: /dev/disk1: Resource busy
 
 
...at this point I eject the drive via the finder GUI...
 
 
bash$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local)
fdesc on /dev (fdesc, union)
map -hosts on /net (autofs, automounted)
map auto_home on /home (autofs, automounted)
bash$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *149.1 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Macintosh HD            148.7 Gi   disk0s2
bash$ sudo umount /Volumes/Untitled
umount: /Volumes/Untitled: not currently mounted
bash$ sudo dd if=patchstick.img of=/dev/disk1 bs=1m
dd: /dev/disk1: Operation not supported

Open in new window

0
Comment
Question by:galori
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
darron_chapman earned 2000 total points
ID: 20398107
By unmounting (ejecting) the usb drive from the GUI, you effectively dismounted /dev/disk1 and all partitions on the device and therefore the dd operation failed because it can no longer see /dev/disk1 ... the umount command will unmount the partition /dev/disk1s1, but leave /dev/disk1 mounted which will allow dd to work correctly.  When you insert the flash drive, ensure that there is no finder window open with the flash drive visible.  Then try to run umount again through terminal.
0
 

Expert Comment

by:drbob001
ID: 21871088
Actually, the correct solution to this problem is to open the Disk Utility, select the drive and select Unmount.  That will allow you to dd the USB device...
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question