Re: zeroing out part of an SDcard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08/21/2014 09:50 AM, Chris Adams wrote:
Once upon a time, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> said:
# dd if=/dev/zero of=/dev/sdb bs=1M seek=1007620
<snip>
Well, man says about seek:

        seek=N skip N obs-sized blocks at start of output

and obs defaults to 512 bytes, and I *THOUGHT* fdisk was reporting #
512 blocks, not bytes.
fdisk reports sectors (that's the default in recent years, it can be
configured to report in different units).  However, look again at the dd
command; the block size was set to 1M (=1048576 bytes), and then the
seek was set to 1007620 blocks, which is almost 1TB.  If you are going
to raise the block size, you have to recalculate everything else that is
expressed in blocks.
Ah...

I had cobbled this together from instructions on how to zero out a whole drive. That is were the bs= comes from. So this overrides the 512bytes with a much bigger number, making the seek= wrong. Got it. Will try again.


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux