At first, I had this USB flash drive with a Ubuntu 14.04 LTS bootable in it. But now, I want to remove/wipe it and create a new bootable of another OS.
First, I tried directly:
sudo cat file.iso > /dev/sdb; sync
As suggested in this thread. It didn't worked, returned
bash: /dev/sdb: Permission denied
So, I thought that this was happening because of it already containing a bootable and decide to wipe it. So I just shred
ed it
sudo shred -v /dev/sdb
After it, It wasn't appearing on the nautilus vertical nav as I sticked it into PC. So I made a file system for it sudo mkfs.ext3 /dev/sdb
(I don't know if it's the right type of fs to make it but I was just testing anyway, if it isn't, please warn me about this)
Now, I access it through nautilus and I see that it is indeed empty. I'm trying to make that command I was doing in the beginning sudo cat file.iso > /dev/sdb; sync
but still having the same "permission denied" again.
So, two questions on that, did this mkfs
was applied correctly or I shouldn't do that? And, how do I solve my problem of making my bootable iso finally? (I don't want to use unetbootin, couldn't install it and I read that it could be done using cat/sync) Thanks in advance.
cat
doesn't copy file permissions! So, it won't be bootable! – blade19899 Apr 01 '16 at 06:56cat
is for reading text files, not for writing data to disks – Sergiy Kolodyazhnyy Apr 01 '16 at 06:58