I'm trying to put Ventoy on a 128 GB flash drive, but when I tried to use the dd command, I got this error:
wolfy@penguin:~$ sudo dd if=ventoyiso.iso of=/dev/sda bs=4M status=progress
dd: error writing '/dev/sda': No space left on device
1+0 records in
0+0 records out
503808 bytes (504 kB, 492 KiB) copied, 0.0258977 s, 19.5 MB/s
I'm really new to this so I don't know why this is happening.
The output of ls -ls /dev/sda is
492 -rw-r--r-- 1 root root 503808 Oct 30 13:09 /dev/sda
What happened? How can I fix it and make the dd command work?
dd, by the way. That just complicates things and increases the possibility of error for no good reason. Simplycat your.iso > /dev/your_deviceshould be enough. See dd vs cat -- is dd still relevant these days?pv your.iso > /dev/your_deviceif all you want is a progress bar (which apparently is a very common reason why people prefer dd to cat).lsscsiorlsusbor runsudo dmesg | grep /dev/sdto try and identify where your USB disk really is.>/dev/your_devicemay be somewhat problematic because you needsudofor writing. Either use an elevated shell (sudo -i) or the trick withsudo tee(here, without-ain your case). An example command withsudo teeis<your.iso sudo tee /dev/your_device >/dev/nullor (if you need a progress bar)pv your.iso | sudo tee /dev/your_device >/dev/null.