Announcement

Collapse
No announcement yet.

Please help! USB pen drive is fscked... any advice for recovery?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feathers McGraw
    replied
    I will, however, be trying out Roundcube! I like the look of the interface. I feel spoilt for CPU and RAM now!

    Leave a comment:


  • Feathers McGraw
    replied
    Yeah but that's too easy

    Leave a comment:


  • SteveRiley
    replied
    In Ubuntu, the following:
    Code:
    sudo apt-get install mail-stack-delivery amavisd-new-postfix
    gets you a reasonably complete mail server with safe and sane defaults. Add Lighttpd, PHP5, and Roundcube -- done!

    Leave a comment:


  • Feathers McGraw
    replied
    Thank you both! Two very useful posts.

    I think I had misunderstood about the write cycles, I read it as one cycle=one file written, and assumed that was the problem.

    Good point, Steve, I do rely on them even though I thought i wouldn't when i started out... funny how much changes in such a short space of time, i was only messing around to begin with!

    I'll wait it out for the server and stick the lot on there. It'll be nice to have a website that is more responsive, before "the incident" the site was getting 1100 visits/day, with almost 10x that many files transferred, which has got to be close to then limit for a Pi!

    The decision now is this: do I use Debian stable or Ubuntu server? I'm leaning towards Ubuntu because there are some features in newer releases of Postfix that I'd like to try, for example the restrictions lists have been split into smtp_recipient_restrictions and smtp_relay_restrictions, which is neater.

    Leave a comment:


  • SteveRiley
    replied
    Going for an expandable high-quality server is a good idea. For all practical purposes, your email and your blog are production services -- you rely on email daily, and you are building a following with your blog. While the Pi is certainly a cool little gadget, it does not qualify as a production server.

    I'd advise against USB thumb drives for primary storage for the same reason. While they may be rated for "100,000 cycles," I wouldn't trust them for constant 24/7/365 use. I chatted with a couple storage experts at work and they said the same thing. All-day, every-day access -- whether reads or writes -- is not what these devices are intended for. Furthermore, you will often see speed variations on a single device. The first few KB or MB are built from more expensive faster NAND cells, to make them appear "fast" in quick tests, while the remainder is built from cheaper slower cells. This could explain the awful slowness you mentioned earlier.

    Do yourself a favor: use production gear for production servers. Relegate the Pis and thumb drives to experimental status.

    Leave a comment:


  • oshunluvr
    replied
    There's no reason at all anymore to use ext3 - too slow. Like I said - you can tweak ext4 to make it slightly faster than ext2, but it's a bit of effort and not enough gain that you'll notice the difference over ext2 in real world use. My systems still use ext2 for /boot when it's required. I used to really play around with formats: ext2 for boot, reiserfs on top of RAID0 for root, xfs for large file storage, etc. Now with hard drive/SSD/SATA speeds it's not worth the effort. I just plop everything into btrfs and be done with it.

    100,000 "cycles" is supposedly about 5-10 years in normal use. I actually did some remembering and the thumb drive I'm using at work was new in 2006. It only gets 40mb or so of data on/off once a day. If you figure 270 work days at 40MB on a 4GB device thats something like 90 GB of data transfer (if my math is close ) so thats like only a few hundred cycles. I must have dropped a 1024 somewhere.
    Last edited by oshunluvr; Mar 18, 2014, 03:19 PM.

    Leave a comment:


  • Feathers McGraw
    replied
    Originally posted by oshunluvr View Post
    FYI: "normal" life for these devices is like 100,000 cycles.
    Hmm yeah but if each log file entry is a write that racks up pretty quickly on a server!

    Edit: sorry, autocorrect

    Leave a comment:


  • Feathers McGraw
    replied
    OK OK, I've learned my lesson

    That's interesting, I've never really considered EXT2, only 3 and 4. I guess because I was researching about HDDs. The right tool for the right job, I guess!

    Leave a comment:


  • oshunluvr
    replied
    FYI: "normal" life for these devices is like 100,000 cycles.

    Leave a comment:


  • oshunluvr
    replied
    I would not use ext4 with any small/slow device. Far faster to use ext2 and DO YOUR BACKUPS You can use ext4, but then you need to turn off journaling and a few other features. Simpler and virtually same results to use ext2. Journaling and atime stamps really slow down ext4.

    Leave a comment:


  • Feathers McGraw
    replied
    EXT4 for both, the one that broke and the one that slowed down too. To be fair, I doubt in your use case the drive has seen quite so many write cycles!

    Leave a comment:


  • oshunluvr
    replied
    AFAIK, no. Generally, SD cards and USB drives are damaged physically or thrown away before they wear out. You encountered a manufacturing defect IMO. I've got a 5 year old Sandisk 4GB drive that's been through the laundry three times among other careless treatments at my hand and it's still in daily use.

    If I had to bet, I'd bet that other drive will last longer than you will want it to.

    Curiosity: What file formats are you using on these drives that you use daily?

    Leave a comment:


  • Feathers McGraw
    replied
    Hmm...

    I had two RasPi servers, one running the website and mail server, the other running OwnCloud.

    I just removed the OwnCloud USB drive, reformatted it and isntalled Raspbian again, thinking I would use this USB to store the mail server's root FS. It's really slow, taking absolutely ages to just upgrade a package.

    I think it's because this USB drive (the same make, bought at about the same time) is nearing its end of life.

    Is there a way I can see the level of wear on a USB flash drive or SD card?

    Leave a comment:


  • Feathers McGraw
    replied
    Will do. This is the one I've ordered:

    http://www.intel.com/content/www/us/...54250wykh.html

    Leave a comment:


  • oshunluvr
    replied
    Start a new thread when you get your new NUC. I'm interested in hearing what your experiences are, specs, etc.

    I currently have a low-power server for media delivery (mostly) but I'm thinking at next rebuild I might switch to a high power server and low power work stations. Some of the newer NUC's coming out might be just the ticket.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X