View previous topic :: View next topic |
Author |
Message |
esperto Apprentice
Joined: 27 Dec 2004 Posts: 158 Location: Brazil
|
Posted: Sun Feb 14, 2010 5:25 pm Post subject: Installing on a CF card |
|
|
I want to build a HTPC type computer and use a CF card (using a CF to IDE adapter) to hold the OS, hard drives will be only to store data, probably on a raid 5 array. There is any guide on how to install gentoo on the CF card but using a RAM drive (like the live CDs but saving the changes at the CF card on logout) so the CF life time is not reduced too much?
I'd like to use gentoo for this, as I like portage a lot, but If it is too complicated and you guys know about another distro which already do this out of the box and has KDE and XBMC, it's fine by me.
ps: I'll use this box to download torrent 24/7 also _________________ nasci pelado, careca e sem dente, o que vier é lucro |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Feb 14, 2010 5:45 pm Post subject: |
|
|
esperto,
In a word, don't install on a CF card. Install on a normal drive then copy the bits you need to CF.
Keep logs in RAM and throw them away at power down, or put them on your raid 5.
That way, the CF is almost never written.
When update time comes, update the image on the hard drive and copy it over again. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
esperto Apprentice
Joined: 27 Dec 2004 Posts: 158 Location: Brazil
|
Posted: Sun Feb 14, 2010 10:30 pm Post subject: |
|
|
Thanks for the reply neddy, but how can I keep the logs only in RAM? mount the /var partition as a RAM drive? _________________ nasci pelado, careca e sem dente, o que vier é lucro |
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Sun Feb 14, 2010 10:59 pm Post subject: |
|
|
esperto wrote: | Thanks for the reply neddy, but how can I keep the logs only in RAM? mount the /var partition as a RAM drive? |
add something like this in your fstab
Code: | none /var tmpfs size=2000M,mode=0777 0 0 |
_________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Mon Feb 15, 2010 7:58 pm Post subject: |
|
|
esperto,
Mount /var/log as a tmpfs ... almost like whiteghost said.
Code: | /dev/shm /var/log tmpfs noatime,nodev,nosuid |
You probably don't need the paranoid options. That allocates half your RAM to /dev/shm but it will be moved to swap if RAM is needed.
You can set a size if you wish. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|