Date: Sun, 24 Jan 2010 16:36:11 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Ivan Borodin <noamscai.ml@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Determine usb-storage capacity Message-ID: <20100124223611.GH50360@dan.emsphone.com> In-Reply-To: <4c44ea791001241359g46f76a03l148c9c81a975195b@mail.gmail.com> References: <4c44ea791001241359g46f76a03l148c9c81a975195b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 25), Ivan Borodin said: > Greetings! > > A short question: is there a way to determine usb-storage and md-device > capacity( for further fdisk and bsdlabel applying ) from within a sh script, > in which device's /dev file-name is present? Something similar to atacontrol > cap | grep lba... Works for all disk devices: diskinfo /dev/da0 Works for devices attached via CAM: camcontrol readcap da0 See the respective manpages for more info. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100124223611.GH50360>