I have a 500GB USB HD.
I have been messing around with the
dd cmd - erasing MBR data, copying my windows internal HD, eleting partitions, etc.
fdisk -l returns
Disk /dev/sdc: 10MiB, 10485760 bytes, 20480 sectors Units: sectors of 1 * 512 bytes = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk Identifier: 8xb77d52b7 Device Boot Start End Blocks Id System ... /dev/sdc1 * 2048 718847 358400 7 HPFS/NTFS/exFAT /dev/sdc2 718848 81922047 40601600 7 HPFS/NTFS/exFAT
NAME MAJ:MIN RM SIZE RO TYPE sda 0:0 0 465.9G 0 disk >^sda1 0:1 0 350M 0 part >^sda2 0:2 0 38.7G 0 part sdc 8:32 0 465.8G 0 disk loop0 7:0 0 275.1M 0 loop /livemnt/squashfs
lsblk shows 465.8G whilst
fdisk -l shows 10MiB
As the HD is, I can not do much with it...
even cmds such as
dd if=/dev/sda of=/dev/sdc bs=4096 will allow only up to 10MB of data from the
if= source to the
cat /dev/sda > /dev/sdc returns
cat: write error: no space left on device
I have been going at this for 4 hours with tools like parted, fdisk /dev/sdc, gdisk, is this really that difficult?
There must be a way to just return the HD to its 500GB state...
To confirm that /dev/sdc is the external HD, I dissconnected/reconnected the USB HD and ran the following
dmesg | tail returns
[sdc] Attached SCSI disk