Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2007 17:41:34 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Vivek Khera <vivek@khera.org>
Cc:        FreeBSD Stable List <freebsd-stable@freebsd.org>
Subject:   Re: Unable to install FreeBSD from external USB cdrom
Message-ID:  <200710091741.42126.doconnor@gsoft.com.au>
In-Reply-To: <200706011452.17035.doconnor@gsoft.com.au>
References:  <3aaaa3a0705170830g46487cc7occc8a51b82a9118b@mail.gmail.com> <35B2A5CB-FDDE-47E4-A73E-8D93D6D157C4@khera.org> <200706011452.17035.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2424325.nTARnoWaVY
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Fri, 1 Jun 2007, Daniel O'Connor wrote:
> The other approach would be to just splat an install CD onto a flash
> disk, eg..
>
> fdisk -BI /dev/da0
> bsdlabel -w -B /dev/da0s1
> newfs -b 4096 -f 512 -i 8192 -O1 -U /dev/da0s1
> mount /dev/da0s1a /mnt
> cd /mnt
> tar zxf /dev/acd0
> umount /mnt
>
> ... actually that won't work because sysinstall doesn't know how to
> mount UFS partitions to read dist files :(
>
> I did look at adding that when I did the patch for FAT partitions but
> it's more complex (I wasn't sure of the canonical way to find them..
> Easiest would be to look in /dev I guess)

As part of this I wrote a patch that teaches sysinstall how to load=20
install.cfg from a CDROM or DOS partition (eg USB stick).

I just submitted a PR but haven't got a number yet, here is the patch..
http://www.gsoft.com.au/~doconnor/sysinstall-cfg-menu.diff

Currently I still use DVD for the actual install..

I have booted a sysinstall (I extracted it from mfsroot.gz into /sbin=20
and did 'set init_path=3D/sbin/sysinstall in the loader), however I=20
haven't fully tested it as I ran out of time.

The problem is that unless you boot sysinstall as init it goes=20
into "maintenance" mode and will not install stuff properly - by=20
design.

If anyone is interested in hacking on this sort of stuff feel free to=20
get it touch with me :)

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart2424325.nTARnoWaVY
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

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

iD8DBQBHCze95ZPcIHs/zowRAvWGAJ0f7LWQ04tPlvF6xawhoLqgayDn0wCffJdu
KjEiiqKvdUG/rcRK8h4GSzQ=
=P/v2
-----END PGP SIGNATURE-----

--nextPart2424325.nTARnoWaVY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710091741.42126.doconnor>