General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Nov 22, 2017 7:38 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Oct 08, 2011 3:55 pm 
Offline

Joined: Tue Apr 05, 2011 8:07 am
Posts: 70
Maybe old news for some but a good read IMO...

How Long Does a Flash Drive Last?

http://www.bress.net/blog/archives/114-How-Long-Does-a-Flash-Drive-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


Top
 Profile  
 
PostPosted: Wed Oct 12, 2011 11:17 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6073
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.


Top
 Profile  
 
PostPosted: Mon Oct 24, 2011 12:31 pm 
Offline

Joined: Tue Apr 05, 2011 8:07 am
Posts: 70
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


Top
 Profile  
 
PostPosted: Thu Oct 27, 2011 11:38 am 
Offline

Joined: Tue Apr 05, 2011 8:07 am
Posts: 70
Some tips to minimize the wear when running Linux from a USB stick...

http://www.cyrius.com/debian/nslu2/linux-on-flash.html

/KC


Top
 Profile  
 
PostPosted: Sun Oct 30, 2011 2:12 pm 
Offline

Joined: Tue Apr 05, 2011 8:07 am
Posts: 70
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


Top
 Profile  
 
PostPosted: Tue Nov 01, 2011 9:28 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6073
KeyCat wrote:
Also are there any simple way to disable the journaling completele on /rootfs or must that be done when partitioning it?

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:
Code:
tune2fs -O ^has_journal /dev/sdx2
The partition should not be mounted, so you can't do it from the rootfs itself. You could also change your initramfs to explicitely mount the rootfs as ext2. BTW, it is also possible to put the journal on a different stick, though I never tried that.
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?

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'.


Top
 Profile  
 
PostPosted: Tue Nov 01, 2011 3:42 pm 
Offline

Joined: Tue Apr 05, 2011 8:07 am
Posts: 70
Mijzelf wrote:
You could also change your initramfs to explicitely mount the rootfs as ext2.


Thats probably the best option, will do that!

Quote:
...if you don't look at the output of 'cat /proc/mounts'.


Your right it did have an effect, just checked and it shows "/var/run" and "/var/lock" on tmpfs...

...
varrun /var/run tmpfs rw,nosuid 0 0
varlock /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
...

Thanks,

/KC


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group