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: UUID in fstab.

2013-08-25 Thread varanasi sainath
Thanks John, I have tried as you suggested using a Live CD and yes the
partitions uuid's are present in gptid  ..
I found the UUID's in /dev/gptid - how do I determine which uid corresponds
to which partition (ufs or swap or boot) (I used glabel status and after
some trial and error I found them) edited the fstab accordingly and
everything is working now ..
Is there a way to have both the /dev/XXXpYY and /dev/gptid/ present
in /dev/


Thanks again for your support.


On Sat, Aug 24, 2013 at 12:14 AM, John Baldwin  wrote:

> On Wednesday, August 21, 2013 4:38:00 pm varanasi sainath wrote:
> > Thanks for the support.
> >
> > I want to use the uuid's found using sysctl -a in fstab.
> > /dev/gptid/ has only uuid for boot partition.
>
> You probably have the other GPT paritions already mounted via
> another name which removes the names in /dev/gptid.  Try
> booting an install CD or USB stick such that you use an
> alternate root fs and don't mount any of the partitions on
> your drive.  Then you should be able to see the entries in
> /dev/gptid and update your fstab appropriately.  If you
> console access you could also try to update your fstab to
> use /dev/gptid/ directly instead of /dev/XXXpYY and
> reboot.  If it works I believe the /dev/XXXpYY names will
> now be gone from /dev and the /dev/gptid names present
> instead.
>
> --
> John Baldwin
>



-- 
Sainath Varanasi
Hyderabad
09000855250
*My Website : http://s21embedded.webs.com
**Linked In Profile : http://in.linkedin.com/pub/sainathvaranasi

..
..
*
___
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: UUID in fstab.

2013-08-21 Thread varanasi sainath
Thanks for the support.

I want to use the uuid's found using sysctl -a in fstab.
/dev/gptid/ has only uuid for boot partition.

Cheers
Sainath


On Wed, Aug 21, 2013 at 11:48 AM, Warner Losh  wrote:

> /dev/gptid/$UID
>
> maybe what you are looking for?
>
> Warner
>
> On Aug 21, 2013, at 12:16 AM, varanasi sainath wrote:
>
> > Hello,
> >
> > How to find UUID's for Disk volumes.
> >
> > I have used sysctl -a | grep uuid and was able to find
> > freebsd-swap
> > b55ff220-dcdd-11e2-a324-00155d55b20c
> >
> > freebsd-ufs
> > b55762fc-dcdd-11e2-a324-00155d55b20c
> >
> > are these the corresponding UUID's for swap and ufs.
> >
> > I din't find /dev/ufsid folder to get the UUID's
> >
> > I have used glabel and was able to create labels, system boots well,
> > everything works fine but I don't want to use labels (operating
> constraint:
> > to create labels I have to boot into single user mode, is there a way to
> > create labels on mounted partitions (I hope not)).
> >
> > I found gptid folder which has boot UUID can this be used?
> >
> > How to use UUID's in fstab?
> >
> > I have tried using
> > # DeviceMountpointFStype  Options Dump
> > Pass#
> > uuid=b55762fc-dcdd-11e2-a324-00155d55b20c  /  ufs  rw 1 1
> >
> > that din't work.
> >
> > I found (from a post) /dev/ufsid/ should be used in fstab but I
> don't
> > see ufsid in /dev. Do we need to create this or does the system does it?
> >
> > Note:
> > Using FreeBSD 9.1. created partitions using the guided partition tool.
> >
> > Reason: using a SCSI storage driver which changes the drive name
> > accordingly but freebsd installer (boot) is unable to find the drives
> which
> > results in boot failure.
> >
> > Thanks,
> > Sainath.*
> > *
> > *
> > *
> > *"Learning is the key to excellence".*
> > ___
> > freebsd-driv...@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers
> > To unsubscribe, send any mail to "
> freebsd-drivers-unsubscr...@freebsd.org"
>
>


-- 
Sainath Varanasi
Hyderabad
09000855250
*My Website : http://s21embedded.webs.com
**Linked In Profile : http://in.linkedin.com/pub/sainathvaranasi

..
..
*
___
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"


UUID in fstab.

2013-08-20 Thread varanasi sainath
Hello,

How to find UUID's for Disk volumes.

I have used sysctl -a | grep uuid and was able to find
 freebsd-swap
 b55ff220-dcdd-11e2-a324-00155d55b20c

freebsd-ufs
b55762fc-dcdd-11e2-a324-00155d55b20c

are these the corresponding UUID's for swap and ufs.

I din't find /dev/ufsid folder to get the UUID's

I have used glabel and was able to create labels, system boots well,
everything works fine but I don't want to use labels (operating constraint:
to create labels I have to boot into single user mode, is there a way to
create labels on mounted partitions (I hope not)).

I found gptid folder which has boot UUID can this be used?

How to use UUID's in fstab?

I have tried using
# DeviceMountpointFStype  Options Dump
 Pass#
uuid=b55762fc-dcdd-11e2-a324-00155d55b20c  /  ufs  rw 1 1

that din't work.

I found (from a post) /dev/ufsid/ should be used in fstab but I don't
see ufsid in /dev. Do we need to create this or does the system does it?

Note:
Using FreeBSD 9.1. created partitions using the guided partition tool.

Reason: using a SCSI storage driver which changes the drive name
accordingly but freebsd installer (boot) is unable to find the drives which
results in boot failure.

Thanks,
Sainath.*
*
*
*
*"Learning is the key to excellence".*
___
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"


Kernel Panic - Unix socket communication in kernel module

2013-07-29 Thread varanasi sainath
Hello,

I am writing a kernel module in which I am trying to connect to a UNIX
socket
(UNIX domain sockets use the file system as their address name space).
Kernel module (loadable) acts as a client and User mode program acts as
server,
I have loaded the module using kldload and communication between
user and kernel module works fine,
when I try to load the kernel module from loader.conf -
auto load the kernel module at boot up leads to kernel panic
as the file system is not ready and kern_connect fails.

How to notify kernel module that File system is ready?
(any specific event flags)

Is there any specific location for Unix domain socket files?
(currently created it under /root/soc/socket )

Using "MODULE_DEPEND" Can I make the module dependent of file system?


Thanks.


*
*
___
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"