Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udev and usb stick/hdd
Date: Mon, 23 Jul 2007 18:59:53
Message-Id: 200707232058.53523.alan@linuxholdings.co.za
In Reply to: Re: [gentoo-user] udev and usb stick/hdd by maxim wexler
1 On Monday 23 July 2007, maxim wexler wrote:
2 > > Which will destroy your flash device in as little as
3 > > a couple of months
4 > > (voice of experience here), and it probably the
5 > > reason the option was
6 > > removed.
7 >
8 > Ulp! Here's my line from fstab:
9 >
10 > /dev/sdb1 /usb auto
11 > noauto,user,rw,exec,sync 0 0
12 >
13 > Copied from a forum somewhere. For use of my mp3
14 > player and digi-camera, both formatted vfat. Does
15 > 'noauto' cancel 'sync'? This way un/mounting must be
16 > done manually. Does that spare me?
17
18 No. read 'man mount'
19
20 In a nutshell, noauto means the device will not be automativcally
21 mounted at boot time when the init script runs.
22 sync is a different beast - it means that "All I/O to the file system
23 should be done synchronously." That means that when the kernel say to
24 write to the device, it does get written, and not cached somewhere.
25 Caching it and returning the correct result to indicate that the write
26 was completed would be of course 'async'
27
28 > I haven't noticed any problems yet. Are you saying
29 > that the damage is incremental, that it accumulates
30 > until a certain point is reached and the device is
31 > kaput?
32
33 It's only a matter of time and relates to how flash devices work. After
34 many many writes to the same storage cell, it degrades. The good ones
35 are rated to about 100,000 writes per cell. The cheap and nasty ones
36 can be as low as 10,000 writes. You would be amazed how quickly 50,000
37 writes can happen to the same cell when used as swap for example
38
39 This is a known issue with flash devices. The correct solution is to
40 ONLY write to the device once you are ready to unmount it. Treat it
41 much like a CD and you'll be OK
42
43 alan
44
45 --
46 Optimists say the glass is half full,
47 Pessimists say the glass is half empty,
48 Developers say wtf is the glass twice as big as it needs to be?
49
50 Alan McKinnon
51 alan at linuxholdings dot co dot za
52 +27 82, double three seven, one nine three five
53 --
54 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] udev and usb stick/hdd Neil Bothwick <neil@××××××××××.uk>