If I run the following command on Ubuntu 14.10:
sudo dd if=/dev/zero of=/dev/sdb bs=1M count=100
It effectively erases my SD card.
If I run the exact same command on Ubuntu 16.10 (or 16.04), nothing happens. I've tried it on two different Ubuntu 16 machines. Literally nothing happens. I see the same dd output, but when I unplug and plug the SD card back in all the folders are still there, the partition is still there, everything.
Does anyone have insights as to how this could happen?
Edit:
As per request:
user@cobalt:~/Desktop$ sudo parted /dev/sdb print
Model: Generic- SD Card (scsi)
Disk /dev/sdb: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 7948MB 7947MB primary ext4
/dev/sdb
really corresponds to your SD card in the second case? Otherwise you might have accidentally overwritten your secondary hard disk or something like that. – Byte Commander Aug 09 '17 at 23:03lsblk
or something similar to ensure your SD Card is mounted at the location you expect. – WinEunuuchs2Unix Aug 10 '17 at 01:10/dev/sdb
really corresponds to my SD card. Here, I'll prove it: http://imgur.com/a/95YP1 – Gillespie Aug 10 '17 at 15:13sudo parted /dev/sdb print
say? – Byte Commander Aug 10 '17 at 15:18dd
output from the 16.04 machine as well. Also, can you rundmesg
about 30 seconds after plugging the card in? Amongst its last lines of output, there should be some regarding the SD card. Please add those to your question too. Btw. is it always the same SD card and the same computer on which you try this operation? Does the SD card have a write protection switch? – Byte Commander Aug 10 '17 at 15:46