gptid's in fstab while installing FreeBSD using ISO

2013-10-04 Thread varanasi sainath
Hi All,

How do I get gptid's as default in fstab while installing using FreeBSD iso
file (Virtual,machine installation) ?
Is this possible currently?
if not how do I achieve this?
I use guided partitioning while installing - If I were to tweak in to the
source code which files or drivers I should be focusing on?
which drivers write the contents of fstab?

PS: any reason why we use device names in the place of gptid's as default
in fstab.

Thanks,
Sainath.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gptid's in fstab while installing FreeBSD using ISO

2013-10-04 Thread Polytropon
On Fri, 4 Oct 2013 20:04:09 +0530, varanasi sainath wrote:
 Hi All,
 
 How do I get gptid's as default in fstab while installing using FreeBSD iso
 file (Virtual,machine installation) ?
 Is this possible currently?

As far as I know, the installer bsdinstall currently does
not have this option included, but it already offers labeling
the partitions as desired, so you could change the content of
/etc/fstab manually to use labels instead of those device names.
You could do this as a post-installation task while leaving
the installer for the command shell and using an editor to
do this.



 if not how do I achieve this?
 I use guided partitioning while installing - If I were to tweak in to the
 source code which files or drivers I should be focusing on?

I haven't looked into the source yet, but I assume you should
concentrate on the component doing the partitioning tasks as
explained here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html

 which drivers write the contents of fstab?

The corresponding installer's component itself which
creates the file according to the partitioning layout
at installation time. I assume the required data will
actually be written when the installer performs the
_real_ installation steps (committing to the installation).



 PS: any reason why we use device names in the place of gptid's as default
 in fstab.

Because it's not always wanted or intended. Next to GPT
partitioning with GPT labels, UFS partitioning is possible
(both MBR and dedicated style), which _may_ have cases
where it needs to be applied. Maybe this can happen when
you have a very strange combination of striping, mirroring,
encryption and other things that require metadata here
and there... The different methods have different capabilities
regarding labels (UFS labels, UFSIDs to be mentioned).
You can find out more about them here:

http://www.freebsd.org/doc/handbook/geom-glabel.html

And read about the different methods of partitioning
itself:

http://www.wonkity.com/~wblock/docs/html/disksetup.html

Even hardcoded device names could also be required,
though I can't imagine such a situation at the moment. :-)
It highly depends on the toolset you're using (the bsdinstall
program, gpart, fdisk  disklabel, newfs only).



PS. I've trimmed the CC list to the freebsd-questions@
list for my reply, hope that's okay.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org