Jarry <mr.jarry <at> gmail.com> writes:

> >> 1. What is better to use as OS-storage: USB-stick or SD-card?

> > Both are $8 for 16GB of storage, so wear / failure is only a concern if
the server is to be inaccessible.

> But not every flash-memory is the same. Are you sure SD and
> USB are about the same? I thought USB-sticks were a little
> higher (comparable with CF, which is surely more reliable
> than SD)...

I've got some minimalized Gentoo servers, 586 vintage, still running
on the original SD cards. I used "quality" cards, vintage 2006. The 
trick I found was to run the -Os small kernel and keep everything in ram,
if that is possible. Also use ext2 file system, as it is better on
minimal hardware. NFS mount busy stuff to other drives across the net.

ROCK Solid..... as minimalized gentoo servers on SD for a 8 years now.
If you build on Rpi, it's at least a minimal system, or it can be set
up as a pure embedded system:

# uname -r
2.6.25-hardened-r7

cat /proc/meminfo             
MemTotal:       254224 kB
MemFree:        222112 kB
Buffers:          2080 kB
Cached:          19808 kB
SwapCached:          0 kB
Active:          14872 kB
Inactive:        10616 kB
<snip>

/dev/hda1 /boot ext2 noatime 1 2
/dev/hda2 none  swap sw 0 0
/dev/hda3 / ext2 noatime 0 1


 hdparm -i /dev/hda
   /dev/hda:

 Model=SanDisk SDCFB-4096, FwRev=HDX 4.03, SerialNo=003416B2397F2159
 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic }
 RawCHS=7964/16/63, TrkSize=0, SectSize=576, ECCbytes=4
 BuffType=DualPort, BuffSize=1kB, MaxMultSect=4, MultSect=4
 CurCHS=7964/16/63, CurSects=8027712, LBA=yes, LBAsects=8027712
 IORDY=no, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 AdvancedPM=no
 Drive conforms to: Unspecified:  ATA/ATAPI-4

If you got the time to LEARN, gentoo as an embedded system if far
superior than a gentoo minimalized server, such as the above dinosaur.

You need to be *reasonable* with what you ask your Rpi to do; imho.

ps, be nice to Neil, Alan and the other old farts on this list, as we
all have very old toys we rarely talk about...... I.E. nothing new
in *nix, it's all just colorful and recycled, imho.

hth,
James





Reply via email to