Maybe old news for some but a good read IMO...
How Long Does a Flash Drive Last?
http://www.bress.net/blog/archives/114- ... -Last.html
So how long have you guys had your NSA-220+ running Debian (or FFP) up running on the same USB Flash drive?
/KC
Good read about USB Flash
Re: Good read about USB Flash
My FFP run from a 4GB stick for about half a year. That stick is still alive, and works as new.
My Debian run from 2 8GB sticks in raid0, with all normal logs on, and a swap partition on one of the sticks. That lasted about a year, I think. The sticks are still working, but the write speed has degraded badly. Then I copied the installation to some USB powered harddisk.
My Debian run from 2 8GB sticks in raid0, with all normal logs on, and a swap partition on one of the sticks. That lasted about a year, I think. The sticks are still working, but the write speed has degraded badly. Then I copied the installation to some USB powered harddisk.
Re: Good read about USB Flash
I guess the brand of the USB stick also make a difference. A bit strange the test result in the article is that big, 90+ million writes is alot...
/KC
/KC
Re: Good read about USB Flash
Some tips to minimize the wear when running Linux from a USB stick...
http://www.cyrius.com/debian/nslu2/linux-on-flash.html
/KC
http://www.cyrius.com/debian/nslu2/linux-on-flash.html
/KC
Re: Good read about USB Flash
After a bit more reading I tried to put /tmp and /var/log in RAM by editing "/etc/default/rcS" with..
RAMRUN=yes
RAMLOCK=yes
but after reboot they still appear on the USB stick, any ideas what I'm missing?
Also are there any simple way to disable the journaling completele on /rootfs or must that be done when partitioning it?
/KC
RAMRUN=yes
RAMLOCK=yes
but after reboot they still appear on the USB stick, any ideas what I'm missing?
Also are there any simple way to disable the journaling completele on /rootfs or must that be done when partitioning it?
/KC
Re: Good read about USB Flash
It has nothing to do with partitioning, but with creating the filesystem. You have (I think) an ext3 rootfs, you could convert it to ext2:KeyCat wrote:Also are there any simple way to disable the journaling completele on /rootfs or must that be done when partitioning it?
Code: Select all
tune2fs -O ^has_journal /dev/sdx2
Are you sure? These environment vars should force Debian to mount a tmpfs (ramdisk) on /var/run and /var/lock, but on a running system you won't mention it, if you don't look at the output of 'cat /proc/mounts'.KeyCat wrote:After a bit more reading I tried to put /tmp and /var/log in RAM by editing "/etc/default/rcS" with..
RAMRUN=yes
RAMLOCK=yes
but after reboot they still appear on the USB stick, any ideas what I'm missing?
Re: Good read about USB Flash
Thats probably the best option, will do that!Mijzelf wrote: You could also change your initramfs to explicitely mount the rootfs as ext2.
Your right it did have an effect, just checked and it shows "/var/run" and "/var/lock" on tmpfs......if you don't look at the output of 'cat /proc/mounts'.
...
varrun /var/run tmpfs rw,nosuid 0 0
varlock /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
...
Thanks,
/KC