Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Readonly root filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Mon Oct 13, 2014 4:37 pm    Post subject: Readonly root filesystem Reply with quote

Hi,
I want to build a gentoo box which has a readonly file system. The box is to be deployed in an environment which has a lot of electricity failures (UPS is not an option). Is there anybody who has modified the regular install to do this?

Thanks
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Oct 13, 2014 6:21 pm    Post subject: Reply with quote

sounds like a live-cd box or something like that.

there used to be guides for terminal only installations so when the box is restarted everything is back to the intial setup.

I think you are good when you clone such a live-cd setup and suit it to your needs.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Mon Oct 13, 2014 7:20 pm    Post subject: Reply with quote

Exacly, live CD is the way to go. Easy to setup, as it's well supported by default, readonly by design, and compressed image allows you save some disk space without sacrificing much CPU.
Of course the name does not mean you have to boot it from CD :) . It will work just as well (or actually even better) when you boot it from disk. Just run regular install on some throw-away box, then optionaly remove stuff you don't need anymore and compress the rest into squashfs image. You will also need kernel and initramfs to boot it. Genkernel is the easiest (but not the only) way to get both of those.
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 551
Location: London,UK

PostPosted: Mon Oct 20, 2014 1:17 am    Post subject: Reply with quote

Thanks for the tip. This http://wiki.gentoo.org/wiki/Custom_livecd_/_liveUSB could have been of help, but it seems to be outdated.
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 810

PostPosted: Mon Oct 20, 2014 1:21 am    Post subject: Reply with quote

you can dd the newest live dvd right to the usb thumbdrive and it will work
_________________
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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