List block devices FreeBSD



  • List hard drives USB optical media

    camcontrol devlist
    

    For more detail:

    gpart list
    

    Here is the mess I get on this machine currently from the latter:

    Geom name: ada0
    modified: false
    state: OK
    fwheads: 16
    fwsectors: 63
    last: 976773167
    first: 63
    entries: 4
    scheme: MBR
    Providers:
    1. Name: ada0s1
       Mediasize: 500107825152 (466G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 32768
       Mode: r3w3e5
       attrib: active
       rawtype: 165
       length: 500107825152
       offset: 32768
       type: freebsd
       index: 1
       end: 976773159
       start: 64
    Consumers:
    1. Name: ada0
       Mediasize: 500107862016 (466G)
       Sectorsize: 512
       Mode: r3w3e8
    
    Geom name: ada0s1
    modified: false
    state: OK
    fwheads: 16
    fwsectors: 63
    last: 976773095
    first: 0
    entries: 8
    scheme: BSD
    Providers:
    1. Name: ada0s1a
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 32768
       Mode: r1w1e1
       rawtype: 27
       length: 2147483648
       offset: 0
       type: freebsd-zfs
       index: 1
       end: 4194303
       start: 0
    2. Name: ada0s1b
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 2147516416
       Mode: r1w1e0
       rawtype: 1
       length: 2147483648
       offset: 2147483648
       type: freebsd-swap
       index: 2
       end: 8388607
       start: 4194304
    3. Name: ada0s1d
       Mediasize: 495812853760 (462G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 32768
       Mode: r1w1e1
       rawtype: 27
       length: 495812853760
       offset: 4294967296
       type: freebsd-zfs
       index: 4
       end: 976773087
       start: 8388608
    Consumers:
    1. Name: ada0s1
       Mediasize: 500107825152 (466G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 32768
       Mode: r3w3e5
    
    Geom name: ada1
    modified: false
    state: OK
    fwheads: 16
    fwsectors: 63
    last: 976773167
    first: 63
    entries: 4
    scheme: MBR
    Providers:
    1. Name: ada1s1
       Mediasize: 500107825152 (466G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r3w3e5
       attrib: active
       rawtype: 165
       length: 500107825152
       offset: 32768
       type: freebsd
       index: 1
       end: 976773159
       start: 64
    Consumers:
    1. Name: ada1
       Mediasize: 500107862016 (466G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r3w3e8
    
    Geom name: ada1s1
    modified: false
    state: OK
    fwheads: 16
    fwsectors: 63
    last: 976773095
    first: 0
    entries: 8
    scheme: BSD
    Providers:
    1. Name: ada1s1a
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r1w1e1
       rawtype: 27
       length: 2147483648
       offset: 0
       type: freebsd-zfs
       index: 1
       end: 4194303
       start: 0
    2. Name: ada1s1b
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r1w1e0
       rawtype: 1
       length: 2147483648
       offset: 2147483648
       type: freebsd-swap
       index: 2
       end: 8388607
       start: 4194304
    3. Name: ada1s1d
       Mediasize: 495812853760 (462G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r1w1e1
       rawtype: 27
       length: 495812853760
       offset: 4294967296
       type: freebsd-zfs
       index: 4
       end: 976773087
       start: 8388608
    Consumers:
    1. Name: ada1s1
       Mediasize: 500107825152 (466G)
       Sectorsize: 512
       Stripesize: 4096
       Stripeoffset: 0
       Mode: r3w3e5
    
    Geom name: da0
    modified: false
    state: CORRUPT
    fwheads: 255
    fwsectors: 63
    last: 30310359
    first: 40
    entries: 152
    scheme: GPT
    Providers:
    1. Name: da0p1
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 65536
       Mode: r0w0e0
       rawuuid: 107c86ad-1192-11e8-a477-001966e9f863
       rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
       label: (null)
       length: 2147483648
       offset: 65536
       type: freebsd-swap
       index: 1
       end: 4194431
       start: 128
    2. Name: da0p2
       Mediasize: 13371351040 (12G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 2147549184
       Mode: r0w0e0
       rawuuid: 1092e574-1192-11e8-a477-001966e9f863
       rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
       label: (null)
       length: 13371351040
       offset: 2147549184
       type: freebsd-zfs
       index: 2
       end: 30310351
       start: 4194432
    Consumers:
    1. Name: da0
       Mediasize: 15518924800 (14G)
       Sectorsize: 512
       Mode: r0w0e0
    
    Geom name: iso9660/ESXI-6.5.0-20170104001-STANDARD
    modified: false
    state: CORRUPT
    fwheads: 255
    fwsectors: 63
    last: 30310359
    first: 40
    entries: 152
    scheme: GPT
    Providers:
    1. Name: iso9660/ESXI-6.5.0-20170104001-STANDARDp1
       Mediasize: 2147483648 (2.0G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 65536
       Mode: r0w0e0
       rawuuid: 107c86ad-1192-11e8-a477-001966e9f863
       rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
       label: (null)
       length: 2147483648
       offset: 65536
       type: freebsd-swap
       index: 1
       end: 4194431
       start: 128
    2. Name: iso9660/ESXI-6.5.0-20170104001-STANDARDp2
       Mediasize: 13371351040 (12G)
       Sectorsize: 512
       Stripesize: 0
       Stripeoffset: 2147549184
       Mode: r0w0e0
       rawuuid: 1092e574-1192-11e8-a477-001966e9f863
       rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
       label: (null)
       length: 13371351040
       offset: 2147549184
       type: freebsd-zfs
       index: 2
       end: 30310351
       start: 4194432
    Consumers:
    1. Name: iso9660/ESXI-6.5.0-20170104001-STANDARD
       Mediasize: 15518924800 (14G)
       Sectorsize: 512
       Mode: r0w0e0
    




Tmux Commands

screen and tmux

A comparison of the features (or more-so just a table of notes for accessing some of those features) for GNU screen and BSD-licensed tmux.

The formatting here is simple enough to understand (I would hope). ^ means ctrl+, so ^x is ctrl+x. M- means meta (generally left-alt or escape)+, so M-x is left-alt+x

It should be noted that this is no where near a full feature-set of either group. This - being a cheat-sheet - is just to point out the most very basic features to get you on the road.

Trust the developers and manpage writers more than me. This document is originally from 2009 when tmux was still new - since then both of these programs have had many updates and features added (not all of which have been dutifully noted here).

Action tmux screen
start a new session tmux OR
tmux new OR
tmux new-session
screen
re-attach a detached session tmux attach OR
tmux attach-session
screen-r
re-attach an attached session (detaching it from elsewhere) tmux attach -d OR
tmux attach-session -d
screen -dr
re-attach an attached session (keeping it attached elsewhere) tmux attach OR
tmux attach-session
screen -x
detach from currently attached session ^b d OR
^b :detach
^a ^d OR
^a :detach
rename-window to newname ^b , <newname> OR
^b :rename-window <newn>
^a A <newname>
list windows ^b w ^a w
list windows in chooseable menu ^a "
go to window # ^b # ^a #
go to last-active window ^b l ^a ^a
go to next window ^b n ^a n
go to previous window ^b p ^a p
see keybindings ^b ? ^a ?
list sessions ^b s OR
tmux ls OR
tmux list-sessions
screen -ls
toggle visual bell ^a ^g
create another window ^b c ^a c
exit current shell/window ^d ^d
split window/pane horizontally ^b " ^a S
split window/pane vertically ^b % ^a |
switch to other pane ^b o ^a <tab>
kill the current pane ^b x OR (logout/^D)
collapse the current pane/split (but leave processes running) ^a X
cycle location of panes ^b ^o
swap current pane with previous ^b {
swap current pane with next ^b }
show time ^b t
show numeric values of panes ^b q
toggle zoom-state of current pane (maximize/return current pane) ^b z
break the current pane out of its window (to form new window) ^b !
re-arrange current panels within same window (different layouts) ^b [space]
Kill the current window (and all panes within) ^b killw [target-window]
  • ?

    Hi there guys! I am wishing to extract some B2B leads for our B2B subdivision of our online vape company. Has anybody previously used the <a href=https://wowitloveithaveit.com/products/yoggys-money-vault-email-extractor-and-search-engine-scraper-software-harvester-yoggy>Yoggys Money Vault Email Scraper</a> for harvesting B2B Leads? Would you recommend it?

    read more
  • ?

    Hello there! I have stumbled upon quite a few comments and queries relating to our https://wowitloveithaveit.com/ - Mailing List and the missing specific niche markets. We have US Marketing Lead List for the majority of markets, featuring Pizza Restaurants & Shops, but it is tough to deal with every foreseeable business market for practical reasons. I am initiating a wishlist of all the sought after specialized niches. Drop me your industry niche market below and I will try to scrape the B2B leads for you and make them readily available on the online site. Thanks

    read more
});