Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a hackintosh based on an Acer box which is working fine.
In order to run Docker I need to boot with Yosemite. I have a Yosemite image, and these instructions to use:
"- Plug 8GB USB PENDRIVE and mount all partition of it (not eject)
- Use dd to transfer image to pendrive like this:
sudo dd if=~/Downloads/yosemite.img of=/dev/diskXX bs=1m
*** WHERE diskXX is your 8GB PENDRIVE, THIS PROCEDMENT ERASE ALL DATA OF YOUR PENDRIVE, IT IS IRREVERSIBLE!!!
- This take a few minutes, take a coffee
- Once dd finish write your PENDRIVE, you can reboot and boot with this pendrive"
(Author is Spanish)
I have had some success with an 8GB pendrive but it ran out of space. I am now using a 16GB but unmounting and doing the file transfer corrupts the usb partition.
Is it possible to do the dd with the partition mounted? If so how?
In order to run Docker I need to boot with Yosemite. I have a Yosemite image, and these instructions to use:
"- Plug 8GB USB PENDRIVE and mount all partition of it (not eject)
- Use dd to transfer image to pendrive like this:
sudo dd if=~/Downloads/yosemite.img of=/dev/diskXX bs=1m
*** WHERE diskXX is your 8GB PENDRIVE, THIS PROCEDMENT ERASE ALL DATA OF YOUR PENDRIVE, IT IS IRREVERSIBLE!!!
- This take a few minutes, take a coffee
- Once dd finish write your PENDRIVE, you can reboot and boot with this pendrive"
That should almost certainly be, "unmount". It's bad enough to copy from a partition with dd while it is mounted (the image will have some mild, but correctable, filesystem corruption), but overwriting a partition with dd while it is mounted is sheer lunacy. Neither the filesystem that the kernel has mounted nor the image that you copied to the device will be intact.
Not sure what you have exactly to begin with.
Not sure about the block size. (goes with above)
Not sure you have a disk image.
I've never wanted to use dd to a mounted drive. On accident a few times. Seems to go correctly but if some file is locking the drive or some program has a lock on it then you could have issues.
that dd will erase everything on the pendrive, so there is no any reason to keep that filesystem mounted (it will be lost/overwritten/destroyed completely). Furthermore if anything was mounted during dd that may corrupt the copied image on the pendrive too (and you will not able to recognize that easily).
(if you have anything important on the pendrive, save it)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.