Re: UUID in fstab.

2013-08-26 Thread John Baldwin
On Monday, August 26, 2013 12:06:21 am varanasi sainath wrote:
 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 ..

The other way would be to examine the kern.geom.confxml output directly as I
think you can probably use that to map between them.

 Is there a way to have both the /dev/XXXpYY and /dev/gptid/uuid present
 in /dev/

Not currently.  freebsd-geom@ is probably the best place to ask that question.

-- 
John Baldwin
___
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-26 Thread Dan Nelson
In the last episode (Aug 26), John Baldwin said:
 On Monday, August 26, 2013 12:06:21 am varanasi sainath wrote:
  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 ..

gpart list will show detailed info for each provider, including the uuid
for each GPT partition.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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/uuid present
in /dev/


Thanks again for your support.


On Sat, Aug 24, 2013 at 12:14 AM, John Baldwin j...@freebsd.org 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/uid 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-23 Thread John Baldwin
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/uid 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
___
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 Warner Losh
/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
 typefreebsd-swap/type
 rawuuidb55ff220-dcdd-11e2-a324-00155d55b20c/rawuuid
 
 typefreebsd-ufs/type
 rawuuidb55762fc-dcdd-11e2-a324-00155d55b20c/rawuuid
 
 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/uuid 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

___
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-21 Thread varanasi sainath
Hello,

How to find UUID's for Disk volumes.

I have used sysctl -a | grep uuid and was able to find
 typefreebsd-swap/type
 rawuuidb55ff220-dcdd-11e2-a324-00155d55b20c/rawuuid

typefreebsd-ufs/type
rawuuidb55762fc-dcdd-11e2-a324-00155d55b20c/rawuuid

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/uuid 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


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 i...@bsdimp.com 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
  typefreebsd-swap/type
  rawuuidb55ff220-dcdd-11e2-a324-00155d55b20c/rawuuid
 
  typefreebsd-ufs/type
  rawuuidb55762fc-dcdd-11e2-a324-00155d55b20c/rawuuid
 
  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/uuid 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