Re: write all files in /mnt to usb using dd

2016-08-04 Thread Ax0n
I mis-understood your first post, Teng. The .iso image confused me and I thought you were trying to write to optical media. It sounds like you needed to simply mount the USB removable mass storage to /mnt. Oddly enough, I can't find a directly relevant entry for this in the OpenBSD FAQ to link

Re: write all files in /mnt to usb using dd

2016-08-04 Thread Raf Czlonka
Hi, What are you trying to do? If you're after files which are on the ISO image, then cp(1) will do just fine - simply mount the USB disk and copy the files. Unless of course, you're trying to create a bootable USB stick out of a bootable ISO image - neither cp(1) nor tar(1) will do the job in

Re: write all files in /mnt to usb using dd

2016-08-03 Thread Ted Unangst
Teng Zhang wrote: > hi, i want to write all files in /mnt to usb,so i issued the command: > > doas dd if=/mnt of=/dev/rsd1c bs=5M > > but it failed. I'm not pretty understand the way to operate dd, so > could you please tell me how can i operate it to write the files to > usb? The tool you