Re: How to determine /dev/ad* from mount label

2010-04-30 Thread ill...@gmail.com
On 27 April 2010 18:29, Mark G.
 wrote:
> On 04/27/2010 00:04, Carl Johnson wrote:
>>
>> "Mark G."  writes:
>
> [...]
>>>
>>> I just wanted to know if there was a utility to tell me
>>> which actual device was mounted.  I also tried camcontrol devlist
>>> and atacontrol list.  The latter allowed me to determine that
>>> /dev/label/rootfs0 is ad2s1a based on the actual disk size
>>> and a process of elimination.
>>>
>>> Does anyone know a magic incantation to output this label->device
>>> mapping?
>>
>> Try looking at glabel(8).  I don't know what option will list which is
>> mounted, but 'glabel status' shows the names and what partitions they
>> are associated with.
>
>
> That's the ticket, I knew I was missing something.  Thanks!
>

& if the verbosity isn't high enough
geom label list
or
glabel list
will certainly cover that.

-- 
--
___
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: How to determine /dev/ad* from mount label

2010-04-27 Thread Mark G.

On 04/27/2010 00:04, Carl Johnson wrote:

"Mark G."  writes:

[...]

I just wanted to know if there was a utility to tell me
which actual device was mounted.  I also tried camcontrol devlist
and atacontrol list.  The latter allowed me to determine that
/dev/label/rootfs0 is ad2s1a based on the actual disk size
and a process of elimination.

Does anyone know a magic incantation to output this label->device
mapping?


Try looking at glabel(8).  I don't know what option will list which is
mounted, but 'glabel status' shows the names and what partitions they
are associated with.



That's the ticket, I knew I was missing something.  Thanks!

Mark
___
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: How to determine /dev/ad* from mount label

2010-04-26 Thread Carl Johnson
"Mark G."  writes:

> Hi,
>
> I've tried the mount, tunefs and df manuals, and don't know
> where to look next.
>
> I am trying to find out what device, in terms of /dev/ad0s1a
> and so on, is actually 'connected' to a label mounted file
> system.  Here is my fstab (from PC-BSD, by the way):
>
> # more /etc/fstab
> # Device  Mountpoint   FStype  Options Dump Pass
> /dev/label/rootfs0  /  ufs rw,noatime  1   1
> /dev/label/swap0none   swapsw  0   0
> /dev/label/var0 /var   ufs rw,noatime  1   1
> /dev/label/usr0 /usr   ufs rw,noatime  1   1
> procfs  /proc  procfs  rw  0   0
> linprocfs   /compat/linux/proc linprocfs rw0   0
> tmpfs   /tmp   tmpfs   rw,mode=17770   0
>
> I just wanted to know if there was a utility to tell me
> which actual device was mounted.  I also tried camcontrol devlist
> and atacontrol list.  The latter allowed me to determine that
> /dev/label/rootfs0 is ad2s1a based on the actual disk size
> and a process of elimination.
>
> Does anyone know a magic incantation to output this label->device
> mapping?

Try looking at glabel(8).  I don't know what option will list which is
mounted, but 'glabel status' shows the names and what partitions they
are associated with.
-- 
Carl Johnsonca...@peak.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"


How to determine /dev/ad* from mount label

2010-04-26 Thread Mark G.

Hi,

I've tried the mount, tunefs and df manuals, and don't know
where to look next.

I am trying to find out what device, in terms of /dev/ad0s1a
and so on, is actually 'connected' to a label mounted file
system.  Here is my fstab (from PC-BSD, by the way):

# more /etc/fstab
# Device  Mountpoint   FStype  Options Dump Pass
/dev/label/rootfs0  /  ufs rw,noatime  1   1
/dev/label/swap0none   swapsw  0   0
/dev/label/var0 /var   ufs rw,noatime  1   1
/dev/label/usr0 /usr   ufs rw,noatime  1   1
procfs  /proc  procfs  rw  0   0
linprocfs   /compat/linux/proc linprocfs rw0   0
tmpfs   /tmp   tmpfs   rw,mode=17770   0

I just wanted to know if there was a utility to tell me
which actual device was mounted.  I also tried camcontrol devlist
and atacontrol list.  The latter allowed me to determine that
/dev/label/rootfs0 is ad2s1a based on the actual disk size
and a process of elimination.

Does anyone know a magic incantation to output this label->device
mapping?

Thanks
Mark

P.S. The latest FreeBSD 8 under PC-BSD is really quite good.
My thanks to everyone involved.  Picked up a copy at the
freebsdmall with the guide.  Excellent.
___
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"