Re: Nanobsd on a CD-ROM

2008-06-13 Thread Bjoern Koenig
J. Porter Clark wrote:

> I don't have a way to make such an image without using mkisofs.
> Figuring out how to pack the nanobsd image in such a way that
> mkisofs can make an "El Torito" bootable CD from it sounds
> difficult, offhand.  Anybody know how to do this sort of thing?
> Is it even possible?

Yes, of course this is possible. Think of the the FreeBSD installation
images that boot from CD too. I did this already with a custom
distribution, but I don't remember the steps right now. /boot/cdboot is
the boot code that should do this. Take a look at
/usr/src/release/i386/mkisoimages.sh.

Björn


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-13 Thread Vince Hoffman
Wojciech Puchar wrote:
>> Then make an ISO of the mounted nanobsd image
>>
>> mkisofs -J -R -no-emul-boot -b /boot/cdboot \
>> -iso-level 3 -o nanobsd.iso /mnt/image
> 
> i don't know if -J is needed (rather not), and -iso-level 3 too, but it
> is OK.
True, I just grabbed a command line I've used in the past., like I said,
needs polishing.
I'm building a nanobsd image at the moment to have a play (slow
afternoon at work ;)


Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-13 Thread Wojciech Puchar

Then make an ISO of the mounted nanobsd image

mkisofs -J -R -no-emul-boot -b /boot/cdboot \
-iso-level 3 -o nanobsd.iso /mnt/image


i don't know if -J is needed (rather not), and -iso-level 3 too, but it is 
OK.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-13 Thread Vince Hoffman
to make a freebsd CDROM bootable you need to use the /boot/cdboot as the
loader and make an ISO image. the nanobsd procedure creates a ufs disk
image from what I understand.
Try mounting the disk image
mdconfig -a -t vnode -u 11 -f /path/to/image/_.disk.full
mkdir /mnt/image
mount /dev/md11 /mnt/image
(might be /dev/md11s1a or similar, see whats created and find what works.)

Then make an ISO of the mounted nanobsd image

mkisofs -J -R -no-emul-boot -b /boot/cdboot \
-iso-level 3 -o nanobsd.iso /mnt/image

Then either burn it to CD or install qemu to see if it boots before
making another coaster.

I havent tried this exactly but this should work, may need polishing though.


Vince



J. Porter Clark wrote:
> On Thu, Jun 12, 2008 at 06:54:45PM +0200, Pietro Cerutti wrote:
>>
>> J. Porter Clark wrote:
>> | On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote:
>> |> J. Porter Clark wrote:
>> |> | Is it possible to build a CD-ROM with a bootable NanoBSD on it?
>> |> | If so, how?
>> |>
>> |> Yes, Section 2.2 of
>> |>
>> |> http://www.freebsd.org/doc/en/articles/nanobsd/index.html
>> |
>> | Well, no, because I can't do this:
>> |
>> |   # dd if=_.disk.full of=/dev/acd0 bs=64k
>> |
>> | If I do this:
>> |
>> |   % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full
>>
>> Try with burncd
>>
>> | burncd -f /dev/acd0 data _.disk.full fixate
> 
> No joy.  Produces the same disk that cdrecord does, and boots
> from hard disk instead.
> 
> I think that this is the problem: The BIOS knows how to boot
> from a CD if and only if that CD is an "El Torito" bootable
> image.  That is, the first sector of the CD is NOT a Master Boot
> Record.  That's just a hypothesis based on the observation that
> all of the successfully bootable CDs I have appear to be in "El
> Torito" format.
> 
> I don't have a way to make such an image without using mkisofs.
> Figuring out how to pack the nanobsd image in such a way that
> mkisofs can make an "El Torito" bootable CD from it sounds
> difficult, offhand.  Anybody know how to do this sort of thing?
> Is it even possible?
> 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-13 Thread J. Porter Clark
On Thu, Jun 12, 2008 at 06:54:45PM +0200, Pietro Cerutti wrote:
> 
> 
> J. Porter Clark wrote:
> | On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote:
> |> J. Porter Clark wrote:
> |> | Is it possible to build a CD-ROM with a bootable NanoBSD on it?
> |> | If so, how?
> |>
> |> Yes, Section 2.2 of
> |>
> |> http://www.freebsd.org/doc/en/articles/nanobsd/index.html
> |
> | Well, no, because I can't do this:
> |
> |   # dd if=_.disk.full of=/dev/acd0 bs=64k
> |
> | If I do this:
> |
> |   % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full
> 
> Try with burncd
> 
> | burncd -f /dev/acd0 data _.disk.full fixate

No joy.  Produces the same disk that cdrecord does, and boots
from hard disk instead.

I think that this is the problem: The BIOS knows how to boot
from a CD if and only if that CD is an "El Torito" bootable
image.  That is, the first sector of the CD is NOT a Master Boot
Record.  That's just a hypothesis based on the observation that
all of the successfully bootable CDs I have appear to be in "El
Torito" format.

I don't have a way to make such an image without using mkisofs.
Figuring out how to pack the nanobsd image in such a way that
mkisofs can make an "El Torito" bootable CD from it sounds
difficult, offhand.  Anybody know how to do this sort of thing?
Is it even possible?

-- 
J. Porter Clark  <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-12 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

J. Porter Clark wrote:
| On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote:
|> J. Porter Clark wrote:
|> | Is it possible to build a CD-ROM with a bootable NanoBSD on it?
|> | If so, how?
|>
|> Yes, Section 2.2 of
|>
|> http://www.freebsd.org/doc/en/articles/nanobsd/index.html
|
| Well, no, because I can't do this:
|
|   # dd if=_.disk.full of=/dev/acd0 bs=64k
|
| If I do this:
|
|   % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full

Try with burncd

| burncd -f /dev/acd0 data _.disk.full fixate

|
| then try to boot the machine from the CD-R, I get a "-" cursor
| for a second or two, then it switches over to the hard disks to
| boot from.
|
| Okay, it's possible I messed up the compilation options or
| something.  Is the cdrecord command above the correct procedure
| to use to build a bootable nanobsd CD-R?
|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhRVNQACgkQwMJqmJVx945fSwCg0AmvDiM+ygiTun1hbqAY4n2d
DtAAn0avabwFvirbzBwMF2lfn1/CTnng
=RZKx
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-12 Thread J. Porter Clark
On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote:
> 
> J. Porter Clark wrote:
> | Is it possible to build a CD-ROM with a bootable NanoBSD on it?
> | If so, how?
> 
> Yes, Section 2.2 of
> 
> http://www.freebsd.org/doc/en/articles/nanobsd/index.html

Well, no, because I can't do this:

  # dd if=_.disk.full of=/dev/acd0 bs=64k

If I do this:

  % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full

then try to boot the machine from the CD-R, I get a "-" cursor
for a second or two, then it switches over to the hard disks to
boot from.

Okay, it's possible I messed up the compilation options or
something.  Is the cdrecord command above the correct procedure
to use to build a bootable nanobsd CD-R?

-- 
J. Porter Clark  <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nanobsd on a CD-ROM

2008-06-12 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

J. Porter Clark wrote:
| Is it possible to build a CD-ROM with a bootable NanoBSD on it?
| If so, how?
|

Yes, Section 2.2 of

http://www.freebsd.org/doc/en/articles/nanobsd/index.html

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhRNVgACgkQwMJqmJVx9464GACffZgUQfMvugbKkIqSwifTcZRY
wssAn21f0/DRX+ooPdHRvDNWHcA+AXVb
=JElR
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Nanobsd on a CD-ROM

2008-06-11 Thread J. Porter Clark
Is it possible to build a CD-ROM with a bootable NanoBSD on it?
If so, how?

-- 
J. Porter Clark  <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"