vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| *** post for FREE via your newsreader at post.newsfeed.com *** Sami Kujala schrieb: > [...] > >> > >> option APERTURE > > > > I didn't know of this kernel option. > > Well, now you know > is required if you want to run X11 on OpenBSD. I vaguely unfortunately X doesn't start on my successfully booted Live-CD it comes up with error messages like can't connect to server and so on, but this has still to be investigated, because on the system from which the CD is a copy of, X works fine. [...] > > Ok, you'll find /etc/fstab and /etc/rc from > > URL:http://alpha.cc.tut.fi/~kujalas/etc.fstab > URL:http://alpha.cc.tut.fi/~kujalas/etc.rc > and the kernel config from > > URL:http//alpha.cc.tut.fi/~kujalas/LIVECD > > The most significant lines in my /etc/rc are > > if [ -f /cdboot/mfs.tgz ]; then > echo 'untarring /cdboot/mfs.tgz' > tar zxpf /cdboot/mfs.tgz -C / > fi > > which populates the memory disk mounted directories /dev, > /etc, /home and /var upon boot time as explained in [2]. thanx. so it seems you did it like marshal midden i tried this approach for month now (100 CD-RWs?), but it always came up with 'init: /dev/console not found' or it even did sometimes nothing, it just hung. But i didn't try it really again, whith my "new knowledge" because there is a big disadvantage of the approach of m. midden: the whole filesystem has to fit into memory. my CD holds 400 Mb of files and programs, which never could fit into the memory. this is the advantage of the union file system (the other approach), which i tried, which puts a layer on the 400 Mb and simulates it writable, but if you type in 'mount' you see only the size of the memory, although the whole filesystem of the CD is accessable. [...] > * I compiled ports into packages (make package) > * copied the packages (from /usr/ports/packages/$arch/All/) to a > directory on the LiveCD-to-be HD, mounted on /mnt => > into directory /mnt/home/packages > * then I installed the packages by saying > cd /mnt/home/packages > sudo chroot /music pkg_add /home/packages/package-X.YZ.tgz > (remember that I have a working OBSD installation > residing on /mnt) Did i get this right? You just made your own packages to copy programs from one computer to the other? Or are these packages for installation on the CD afterwards? This brings me to a question: I need a bootable CD which doesn't need any HD to live and for the programs to run (but the HD should be able to be manually mounted for installing things manually) It seems to me, that you build in addition a CD where you can install OpenBSD on a HD. Is this right? > 2. > I compiled the cdrom33.fs (which does the booting from > the cdrom) as briefly described in [1] and copied it > into /mnt. The kernel config file is a result of a few > iterations and is basically a hybrid of GENERIC and > RAMDISK_CD. > 3. > I transferred the whole filesystem into another computer > in which I have a cd writer (FreeBSD 5.1 if you need to > know) with tar and ssh: > Did i get this right? You have a HD where you have the complete file system on it (in a directory) for the boot-CD? But the files of this filesystem are for additional installations? Because for the CD to live the only filesystem is packed into mfs.tgz, right? > (From the FreeBSD machine): > mkdir OpenBSD_livecd > cd OpenBSD_livecd > ssh hostname.of.obsd "(cd /mnt; tar cfz - *)" | tar zvpfz - > and made the iso image of the system with instructions from > [2] and burnt it into a cd. Now it's time to test if your > OBSD-w/-root-on-CD works the way you want. > So you just untared the files which where compressed on the other computer, but in this file structure there is still /cdrom/mfs.tgz, right? > Disclaimer: > I tried to write up the steps I took as accurately as > possible but probably I skipped some vital step(s). You are > welcome to use your own head when/if following my > instructions. There are most likely easier ways to > accomplish the same task, but this worked for me. > I did't find easier ways ... thanks and regards, Ewald > > References: > [1] URL:http://www.blackant.net/other/docs/h...om-openbsd.php > [2] URL:http://www.daemonnews.org/200106/bootable_CD.html -----= Posted via Newsfeed.Com, Uncensored Usenet News =----- http://www.newsfeed.com - The #1 Newsgroup Service in the World! -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =----- |
| ||||
| First, some questions: What, if I may ask, are you planning to use the LiveCD computer for? Do you really need X11 running on it? Could tell me a bit more of the computer you plan to run OBSD on (architecture and such)? And last, what have you done so far meaning, where does the boot process/startx stop? > But i didn't try it really again, whith my "new knowledge" > because there is a big disadvantage of the approach of m. > midden: the whole filesystem has to fit into memory. my CD > holds 400 Mb of files and programs, which never could fit into > the memory. Nope. The point is that you union mount your /dev with with cdrom and use memory file system for the directories that should be mounted read-write, i.e. /etc /var /tmp /home. You _must_ union mount /dev in order to have writable /dev/console and other devices for the boot to proceed. (Well actually it will proceed even if /dev was read-only but after booting you can't do much) With my approach at boot time I still have read-only mounted /etc, /dev, /home, /tmp and /var but when /etc/rc reads /etc/fstab and mounts all the mfs filesystems, my /etc, /var, /tmp, and /home become empty as new file system is mounted on _those_mountpoints_. This is corrected by untarring the /cdboot/mfs.tgz. Did this clarify the idea any better? Your packages and other programs live in /usr (right?) which is mounted read-only from the cd. > I need a bootable CD which doesn't need any HD to live and for > the programs to run (but the HD should be able to be manually > mounted for installing things manually) OK, let's clarify what I said. I have two hard drives (A and B) in my computer. They both have OBSD installed, only the other one (A) is the one I normally run OBSD from. In (B) is a barebones OBSD installation with some extra packages. This (B) is the one I created the CD from. The HD in the computer in which I run the LiveCD has WinXP installed and thus I don't use its HD at all. Everything is run from the CD. > It seems to me, that you build in addition a CD where you can > install OpenBSD on a HD. Is this right? No, see previous answer. > Did i get this right? You have a HD where you have the > complete file system on it (in a directory) for the boot-CD? Correct. > Because for the CD to live the only filesystem is packed into > mfs.tgz, right? In mfs.tgz is only the data which possibly can change during runtime. > So you just untared the files which where compressed on the > other computer, but in this file structure there is still > /cdrom/mfs.tgz, right? Hmm, I am not sure if I understood your question, but I guess yes, I just moved the whole file structure from drive (B) into a computer with cd burner (but alas, no OpenBSD). Had it had OpenBSD I would have done everything in it. Hope this helps, sami |
| Thread Tools | |
| Display Modes | |
|
|