Results 1 to 8 of 8

Thread: Does dd shorten life of usb flash drives ?

  1. #1
    Join Date
    Jan 2010
    Location
    India
    Beans
    Hidden!

    Does dd shorten life of usb flash drives ?

    Hi,
    At the moment I have only one usb flash drive. Sometimes I use dd to write distro ISOs to it to install from usb.

    When finished installing I run zero fill drive for some seconds to erase the boot sector and finally use Gparted

    to create a partition table. I have done this quite a number of times. Now when I copy some video files to the

    flash drive and connect it to my XBMC rapberry pi its hanging and I have to hard reset it.

    So does dd shorten life of drives ?
    MX Linux 19
    Intel(R) Core(TM) i3-6100 CPU
    Ram 4GB
    Intel HD Graphics 530 (Skylake GT2)

  2. #2
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: Does dd shorten life of usb flash drives ?

    As far as I know, dd has no impact on the lifetime of a USB stick. I use it all the time on a few pretty old sticks. They physically fall apart first.

    If XMBC expects to see a file system on that USB stick, be sure there is one, and not just an empty partition. (dd just moves bits from here to there, no filesystems involved. If a stick has a filesystem on it and you use dd to burn an iso image on it, the filesystem is gone.)

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,046
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Does dd shorten life of usb flash drives ?

    I would get some newer, faster USB sticks to use for video streaming. There should be some log entries in /var/log/syslog on the RaspberryPi to determine what is failing. The USB chipset on the RP is not great and perhaps not up to the bandwidth required to stream high-definition videos. Disconnect your ethernet from the RP and see if performance improves.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Dec 2010
    Beans
    Hidden!

    Re: Does dd shorten life of usb flash drives ?

    Well it will add some reads and writes to the whole device but they can take plenty of those before they die.

  5. #5
    Join Date
    Jan 2010
    Location
    India
    Beans
    Hidden!

    Re: Does dd shorten life of usb flash drives ?

    I used the check option of gparted to repair the partition. Now its working okay but I agree that this flash drive is a bit slow.

  6. #6
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Does dd shorten life of usb flash drives ?

    Quote Originally Posted by not found View Post
    Well it will add some reads and writes to the whole device but they can take plenty of those before they die.
    +1

    But sometimes you can re-vitalize a pendrive by writing zeros to it, wiping it. mkusb uses dd under the hood, it 'wraps security around dd'. If a pendrive is partially locked, it might be released by overwriting the system with zeros (at the level below file systems and partitions).

    Wipe the whole device with mkusb, and after that use gparted to create a new partition table and after that a partition with a file system.

    See this link https://help.ubuntu.com/community/mk...e_whole_device

    'gridlock' - If a pendrive starts running slower, it might soon get 'gridlocked', and wiping might relieve the situation by releasing good memory cells.

    - When old pendrives get slower (typically reduce the writing speed to half), wiping the whole device can recover the original (or near original) write speed. See this link about pendrive lifetime.

  7. #7
    Join Date
    Jan 2010
    Location
    India
    Beans
    Hidden!

    Re: Does dd shorten life of usb flash drives ?

    @sudodus
    Thanks for the links.

  8. #8
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    9,765

    Re: Does dd shorten life of usb flash drives ?

    Howdy,

    Modern USB thingies have built-in controllers that shuffle blocks around automatically for wear leveling, so you need not worry about it.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •