Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: USB crucial file recovery
Date: Thu, 01 Sep 2016 21:49:02
Message-Id: 20160901234840.6f7b0f6e@jupiter.sol.kaishome.de
In Reply to: Re: [gentoo-user] USB crucial file recovery by Grant
1 Am Mon, 29 Aug 2016 17:51:19 -0700
2 schrieb Grant <emailgrant@×××××.com>:
3
4 > > # mount -o loop,ro -t ntfs usb.img /mnt/usbstick
5 > > NTFS signature is missing.
6 > > Failed to mount '/dev/loop0': Invalid argument
7 > > The device '/dev/loop0' doesn't seem to have a valid NTFS.
8 > > Maybe the wrong device is used? Or the whole disk instead of a
9 > > partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
10 > >
11 > > How else can I get my file from the ddrescue image of the USB stick?
12 > >
13 > > - Grant
14 >
15 >
16 > Ah, I got it, I just needed to specify the offset when mounting.
17 > Thank you so much everyone. Many hours of work went into the file I
18 > just recovered.
19 >
20 > So I'm done with NTFS forever. Will ext2 somehow allow me to use the
21 > USB stick across Gentoo systems without permission/ownership problems?
22
23 Long story short: Do not put important files on USB thumb drives. They
24 are known to break unexpected and horribly. They even offer silent data
25 corruption as a hidden feature if stored away for a few weeks or 1-2
26 years without ever connecting them.
27
28 By the way: Many thumb drives are internally optimized to FAT and NTFS
29 usage - putting anything else on them puts more stress on the internal
30 flash transition layer, which is most of the time very simple (some
31 drives only do wear leveling where the FAT tables usually are).
32
33 So using NTFS was probably not your worst decision. Ext2 (or even worse
34 ext3 due to its journal) may very well destroy your thumb drive faster.
35
36 I was once able to destroy a cheap thumb drive within two weeks by
37 putting something else on it than FAT32, and wrote some multiple 10 GBs
38 to it constantly in small blocks. Now it has unusable blocks spread all
39 over its storage space. I cannot format anything else to it than FAT32
40 now. I don't use it any longer. It no longer reliable stores files.
41
42 Most thumb drives also need to refresh their cells internally, this is
43 part of a maintenance process which runs while they are connected. So,
44 you even cannot use them for archive storage. Thumb drives are for
45 temporary storage only, to transport files. But never use them as a
46 single copy of important data.
47
48 --
49 Regards,
50 Kai
51
52 Replies to list-only preferred.