install.cfg disklabel customization question

2005-01-04 Thread Curtis Almond
I would like to be able to do the following

1. Create a / partition of x size
2. Create a swap partition of x size
3. Create a /usr partition of x size
4. Create a ufs partition of the rest of the disk but it is not mounted at boot.

What I have thus far is:
# label disk 1
# IDE
ad0s2-1=ufs 3969000 /
ad0s2-2=swap 3969000 none
ad0s2-3=ufs 3969000 /usr
ad0s2-4=ufs 0 /usr100

Anyone know how to make /usr100 not mounted at boot time?

Or even better
How can I create the ad0s2-4 (ad0s2f after boot) label but have
sysinstall not newfs it during netboot?

Any ideas would be great..

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


Re: install.cfg disklabel customization question

2005-01-05 Thread Matthew Seaman
Curtis Almond wrote:
Anyone know how to make /usr100 not mounted at boot time?
Edit /etc/fstab and add the 'noauto' flag to the appropriate line. 
Something like this:

/dev/ad0s2f   /usr100  ufs  rw,noauto  2   2
Or even better
How can I create the ad0s2-4 (ad0s2f after boot) label but have
sysinstall not newfs it during netboot?
You shouldn't need to recreate the disk or partition labels every time 
you reboot, unless you are wiping and re-installing most of the disk 
each time.

If you're using sysinstall(8) to do an automatic install as part of your 
netboot process, then as far as I can tell, there's no way using the 
scripted interface to tell it to create a UFS partition but not newfs or 
mount it -- although that's easy enough using sysinstall interactively.

I'd be thinking more along the lines of ditching sysinstall(8) entirely 
for that purpose and using fdisk(8), bsdlabel(8) and newfs(8) directly.

Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.   8 Dane Court Manor
  School Rd
PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone
Tel: +44 1304 617253  Kent, CT14 0JL UK


signature.asc
Description: OpenPGP digital signature


Re: install.cfg disklabel customization question

2005-01-05 Thread Joshua Lokken
On Tue, 4 Jan 2005 17:23:05 -0600, Curtis Almond <[EMAIL PROTECTED]> wrote:
> I would like to be able to do the following
> 
> 1. Create a / partition of x size
> 2. Create a swap partition of x size
> 3. Create a /usr partition of x size
> 4. Create a ufs partition of the rest of the disk but it is not mounted at 
> boot.
> 
> What I have thus far is:
> # label disk 1
> # IDE
> ad0s2-1=ufs 3969000 /
> ad0s2-2=swap 3969000 none
> ad0s2-3=ufs 3969000 /usr
> ad0s2-4=ufs 0 /usr100
> 
> Anyone know how to make /usr100 not mounted at boot time?

Don't put it in /etc/fstab.  Then you can use mount(8) to mount it
when you need to.


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


Re: install.cfg disklabel customization question

2005-01-05 Thread Curtis Almond
Good suggestion on using bsdlabel.  Unfortunately I am required to use
FreeBSD 4.6.2 which does not contain this utility and disklabel
requires one to invoke an editor to define the new label.

What I resorted to doing was having netboot create /usr100 and then
later overwrite the /etc/fstab via an installation package that sets
noauto for the label.

Curtis


On Wed, 05 Jan 2005 10:38:19 +, Matthew Seaman
<[EMAIL PROTECTED]> wrote:
> Curtis Almond wrote:
> 
> > Anyone know how to make /usr100 not mounted at boot time?
> 
> Edit /etc/fstab and add the 'noauto' flag to the appropriate line.
> Something like this:
> 
> /dev/ad0s2f   /usr100  ufs  rw,noauto  2   2
> 
> > Or even better
> > How can I create the ad0s2-4 (ad0s2f after boot) label but have
> > sysinstall not newfs it during netboot?
> 
> You shouldn't need to recreate the disk or partition labels every time
> you reboot, unless you are wiping and re-installing most of the disk
> each time.
> 
> If you're using sysinstall(8) to do an automatic install as part of your
> netboot process, then as far as I can tell, there's no way using the
> scripted interface to tell it to create a UFS partition but not newfs or
> mount it -- although that's easy enough using sysinstall interactively.
> 
> I'd be thinking more along the lines of ditching sysinstall(8) entirely
> for that purpose and using fdisk(8), bsdlabel(8) and newfs(8) directly.
> 
>Cheers,
> 
>Matthew
> 
> --
> Dr Matthew J Seaman MA, D.Phil.   8 Dane Court Manor
>   School Rd
> PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone
> Tel: +44 1304 617253  Kent, CT14 0JL UK
> 
> 
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"