Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing on a CF card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Sun Feb 14, 2010 5:25 pm    Post subject: Installing on a CF card Reply with quote

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 :wink:
_________________
nasci pelado, careca e sem dente, o que vier é lucro
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Feb 14, 2010 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
esperto
Apprentice
Apprentice


Joined: 27 Dec 2004
Posts: 158
Location: Brazil

PostPosted: Sun Feb 14, 2010 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Sun Feb 14, 2010 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Mon Feb 15, 2010 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum