public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jesús Guerrero" <i92guboj@terra.es>
To: <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] flash drive FAT partition disappears
Date: Thu, 19 Nov 2009 04:30:46 +0100	[thread overview]
Message-ID: <9f445cb1caffe80e6e6b9b9b6c34d313@localhost> (raw)
In-Reply-To: <7bef1f890911181846x3a4ba55cxc473229eef3c5b65@mail.gmail.com>

Hello, first, the disclaimer: take everything I'll say here as a starting
point, not as an universal truth. I am by no means specialist in this kind
of toys. 

On Thu, 19 Nov 2009 02:46:36 +0000, "Alan E. Davis" <lngndvs@gmail.com>
wrote:
> I can't think of a specific place to look for this, so will try the
> eclectics at gentoo-user.
> 
> A student handed me a USB flash drive with a video file on it he wanted
to
> offer to me to watch.  It mounted automatically, I copied the file, then
I
> took the disk out of the drive and gave it to him.  I cannot say with
100%
> certainty that I unmounted it.  The file was completely copied.  I am
> pretty
> careful, so I think I unmounted it.

Even if you didn't, in my understanding, all that could cause (normally)
is a broken file system. The effects will usually depends on whatever was
happening at the moment, and at the fs you are using. Some mount options
can influence this as well. To palliate the effects of a catastrophic plug
off without having umounted before you can use the -osync mount option,
which will enable synchronous writes (making your device seems slower,
because writes will no longer be deferred/cached for a later oportunity).

But, that's not a substitute for a true umount, or a sync. It's just a way
to shorten the scope of any possible problem if you accidentelly unplug the
drive without having used umount first.

As a note, FAT is not precisely known for being too solid.

> Today he came back to me, asking what happened to his disk.  He said
> nothing
> it there anymore.  I checked.  Gparted says this drive (4 GB I think)
has 2
> Terabytes of unallocated space.  None of the Windoze gurus (so to speak)
> around here know what to do.
> 
> Any ideas?   I'm afraid the little bit of progress I've made over the
past
> 13 years in advocating GNU/Linux and Free Softwrae, will be lost if this
> problem isn't solved.

Your problem with the size of the drive is a bit more alarming. It could
be a problem in your partition table. In that case, the chance is high that
testdisk can guess a valid partition table and restore the drive to a
working state. However, it could also be a fortuitous electric accident
that fried the unit, that happens sometimes, and it has nothing to do with
you or linux. In any case, and to max the chance to recover anything, the
first thing you should be doing is an image of the device, using dd, just
in case.

All this, assuming that the student didn't already mess up the drive.
Anyway, if s/he truly saved the only copy of anything important in a
pendrive and then sent it around the world, s/he almost deserves any pain
that could derive from that action.

-- 
Jesús Guerrero



  reply	other threads:[~2009-11-19  3:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-19  2:46 [gentoo-user] flash drive FAT partition disappears Alan E. Davis
2009-11-19  3:30 ` Jesús Guerrero [this message]
2009-11-19  8:22   ` Neil Bothwick
2009-11-19 20:11     ` Marcus Wanner
2009-11-19 22:44       ` Paul Hartman
2009-11-19  9:00   ` Stroller
2009-11-19  3:41 ` Philip Webb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f445cb1caffe80e6e6b9b9b6c34d313@localhost \
    --to=i92guboj@terra.es \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox