Re: decreasing the size of the distribution
great thanks, now my distribution is 4MB :) \sendul On Tue, Oct 27, 2009 at 4:02 AM, James Records james.reco...@gmail.com wrote: Take a look at www.mindrot.org/projects/flashboot It builds a minimal ramdisk based bsd.gz of around ~6MB You can customize the install script and get whatever binaries you need in there, just read the README file. It will take some tinkering but you should be able to get what you want with this build system J On Sun, Oct 25, 2009 at 4:10 PM, Abdullah Sendul coffeesm...@gmail.com wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul
Re: decreasing the size of the distribution
On Oct 26 00:10:20, Abdullah Sendul wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution You can easily move it to a flash disk without minimizing anything. find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul
Re: decreasing the size of the distribution
Agreed on the whole - I run a router happily on a 512mb flash drive. And I didn't have to minimise a thing. On Mon, Oct 26, 2009 at 6:18 PM, Jan Stary h...@stare.cz wrote: On Oct 26 00:10:20, Abdullah Sendul wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution You can easily move it to a flash disk without minimizing anything. find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul -- Aaron Mason - Programmer, open source addict - Oh, why does everything I whip leave me?
Re: decreasing the size of the distribution
From: Jan Stary h...@stare.cz On Oct 26 00:10:20, Abdullah Sendul wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution You can easily move it to a flash disk without minimizing anything. I would tend to agree. OpenBSD is a small operating system and any reasonably sized flash storage will easily contain it. Why on earth make life more difficult for yourself - as soon as you cut the OS down it becomes harder to support! I have a NetBSD system using an IDE-Compact Flash converter and simply use it as normal (at the time, OpenBSD didn't support the hardware fully). I do use flashdist on an OpenBSD firewall, with an extremely cut down subset of OpenBSD. The reason for this is not distribution size, but that the OS remains unchanged every time it boots up (flashdist uses the storage device read only) and the possibility of corruption is removed. Flashdist works well, but from experience I can say it's a bit of a pain in the arse to get working as it's always missing something. The first time I booted it up, I found it didn't include the firmware for my (wired) ethernet card by default, for instance. Save yourself the hassle and just install as normal. PK
Re: decreasing the size of the distribution
Agreed on the whole - I run a router happily on a 512mb flash drive. And I didn't have to minimise a thing. +1 I install 4.5 over the network to my router. GENERIC bsd, base45, etc45. No scripting required. http://www.openbsd.org/faq/faq4.html#FilesNeeded It fits on a 256MB compact flash with room enough to spare. If this machine wasn't on a LAN with other connected boxes I'm sure man45 and misc45 would fit as well ... I have other documentation access but would not exclude man from a stand alone box. http://marc.info/?l=openbsd-miscm=96280712907980w=2 Advantage? Whenever I have an issue I have some (some) confidence it is not anything stoopid I have done. :] # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/wd0a 240M163M 64.8M72%/ mfs:2794 7.7M1.0K7.3M 0%/tmp Unless 4.6 has grown more than it looks I expect it will also fit nicely. Best wishes.
Re: decreasing the size of the distribution
Unless 4.6 has grown more than it looks I expect it will also fit nicely. # uname -rs OpenBSD 4.6 # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/wd0a 240M160M 68.5M70%/ mfs:28054 7.7M1.0K7.3M 0%/tmp Bags of room. Best wishes.
Re: decreasing the size of the distribution
Take a look at www.mindrot.org/projects/flashboot It builds a minimal ramdisk based bsd.gz of around ~6MB You can customize the install script and get whatever binaries you need in there, just read the README file. It will take some tinkering but you should be able to get what you want with this build system J On Sun, Oct 25, 2009 at 4:10 PM, Abdullah Sendul coffeesm...@gmail.comwrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul
decreasing the size of the distribution
Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul
Re: decreasing the size of the distribution
On Mon, 26 Oct 2009 00:10:20 +0100 Abdullah Sendul coffeesm...@gmail.com wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul I'd suggest spending the additional ~$2 for the 1GB flash and not to mess with anything! Yes, i didn't touch your question how to find those files. Yes, i don't know why you would have to slim down, because you didn't write why you would have to do that. - Robert
Re: decreasing the size of the distribution
On Mon, Oct 26, 2009 at 12:10:20AM +0100, Abdullah Sendul wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? If you have to ask, you shouldn't be doing it. Why would you possibly need to get smaller than the baseXX, etcXX and manXX sets? These easily fit on a few hundered MB. What modern flash disk won't fit this? Seriously, stop overthinking it. If you primary goal is to use flash (not necessarily to remove files), look at something like flashrd. -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/
Re: decreasing the size of the distribution
On Sunday 25 October 2009 19:10:20 Abdullah Sendul wrote: Hi, we are having a couple of openbsd servers, of which, the content is static. I would like to identify all the files needed for this system to run, and then move it to a flash disk to minimise the size of the distribution find -mtime -atime is giving me some ideas, but is this the right approach to remove the rest of the files not used on the system. what do you suggest? thanks \sendul You could remove the games I suppose (/usr/games) and save probably less than 2M--2 Meg--of space. Man pages are popular to remove, as are entries in /sys for other arches than your own. But I've been pestered at least four times now, by people trying to save space that shot themselves by this and broke things--and didn't know how to fix it. All of OpenBSD fits into a very small partition. Are you saying that you really don't have a flash drive (or whatever) of a gig in size? Of course I don't know what you want to do with the system once its runing, but the more complex it is, the smaller OpenBSD is going to be in comparison to that. Lastly if you do build a little shrip frankensystem, asking for help here isn't going to get a lot of sympathy. You'll be on your own. --STeve Andre'