Unclear where you got this command from:
cp xxxx /dev/sdb1
But one of two issues I can deduce from your use of that command.
- First, the
cp
command alone would not ever work for a situation like this. It would just copy the files to the destination but not in a way that would make it bootable.
- Are you 100% sure you know the USB device is mounted as
/dev/sdb1
?
- You need to run a command like that to write to a device as root or via
sudo
. But like I said, cp
would not work for a task like this.
The command you should be using to handle a task like this is dd
. And the command would be something like this:
sudo dd if=/path/of/the/CD/ISO of=/path/of/the/destination/USB bs=1024
The if
is the “input file” and the of
“output file” so the whole command is just copying the raw data from the CD disk to the USB flash drive. The bs
is just the read/write byte size of how much data would be written at a time. And note you should be doing this kind of operation using root privileges via sudo
if you are not actually logged in a root.
But the real key here is now trying to figure out the actual USB device ID for the USB device. If you are 100% sure that /dev/sdb1
is the correct device path, then go for it. But in the end you might want to double-check which device is the USB device by using lsblk
(list block devices) just like this:
lsblk
And deduce the USB flash drive device path from that. Or even just use fdisk
like this to show a list of all connected and mounted devices:
sudo fdisk -l
Once you are 100% positive of what the actual device path is, use that.