Saturday, August 2, 2014

"Correct" way of UDF formatting a USB drive


I managed to UDF format my USB drive following the instructions in Using UDF on a USB flash drive. Later, I came by this post and I began to doubt...


Could anyone explain which would be the "best" way of UDF formatting a USB drive taking into account both the question and the link provided? (I'm assuming that the link is trustworthy, but could be mistaken.)


Additionally: the linked question talks about zeroing the first sectors of the USB drive, I usually just go:


cp /dev/zero > /dev/sdX

and Ctrl+C my way out of it... does anyone know exactly how many bytes should be zeroed? (a snippet would be nice too :) )


Answer



You should zero at least 2048 bytes because UDF needs the first 2K area.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...