I have a flash usb drive and up till now it has worked well. Recently I recorded iso to it using dd. Now I want to delete it.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
.......
sdb 8:16 1 14.6G 0 disk
└─sdb1 8:17 1 14.5G 0 part /media/alex/ARCH_201404
sr0 11:0 1 1024M 0 rom
$ mount
/dev/sdb1 on /media/alex/ARCH_201404 type iso9660 (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2)
When I did this
$ sudo dd ibs=4096 count=1 if=/dev/zero of=/dev/sdb1
1+0 records in
8+0 records out
4096 bytes (4.1 kB) copied, 0.00053675 s, 7.6 MB/s
it seemed to succeed but when I explored the usb flash all the files were still there. When did this:
sudo rm -r /media/alex/ARCH_201404/*
and I got the error:
..................
rm: cannot remove ‘/media/alex/ARCH_201404/loader/entries/uefi-shell-v1-x86_64.conf’: Read-only file system
rm: cannot remove ‘/media/alex/ARCH_201404/loader/entries/uefi-shell-v2-x86_64.conf’: Read-only file system
rm: cannot remove ‘/media/alex/ARCH_201404/loader/loader.conf’: Read-only file system
.....................
What can I do about it?
dd
anything to it! Now you need to reformat it (after you've unmounted it if you can). – Mat Apr 27 '14 at 7:20