Score:0

df shows negative bytes used.... only during dd

bd flag
J B

I have begun a dd to copy a partition on one usb drive, to a 2nd usb drive. While I have freshly reformatted the destination partition (/dev/sdc1), and it checks out with fsck normally and shows it is empty with no issues in df, like this:

Filesystem      1K-blocks       Used  Available Use% Mounted on
/dev/sdc1      1536927656      77852 1458708416   1% /media/test/WD4

as soon as I start the dd, it shows negative values in df:

/dev/sdc1      1510427560  -26422244 1460033420    - /media/test/WD4

Is this a correct behaviour during dd? It's approximately 1 Tb to transfer over USB and will run for over 12 hours, but if something is wrong I don't want to have to wait all that time to find out.

Michael Hampton avatar
cz flag
Looks like corruption. Maybe you've got a bad drive?
br flag
suspiciously cheap 1 TB USB drive?
J B avatar
bd flag
J B
Yes, it was suspiciously cheap... but it's western digital, and I just assumed all usb drives were insanely cheap these days! alright I can dig into the drive a bit further and try to tease out some problem with it.
J B avatar
bd flag
J B
Well, turned out to be a simple oversight. I hadn't unmounted the target partition.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.