Re: [Hampshire] stat(1)

Inizio della pagina
Autore: Hugo Mills
Data:  
To: Hampshire LUG Discussion List
Oggetto: Re: [Hampshire] stat(1)

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57a81100.hantslug.org.uk.7169': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: verify signatures failed: Unknown system error
On Tue, Apr 29, 2008 at 02:58:09PM +0000, Andy Smith wrote:
> Hi Hugo,
>
> On Tue, Apr 29, 2008 at 03:36:08PM +0100, Hugo Mills wrote:
> >    I'm trying to determine the size of a block device in a shell
> > script, and I'm having some trouble.

>
> [...]
>
> >    Anyone got any ideas?

>
> Is "blockdev --getsize64 <device>" or similar of any use?


blockdev looks like exactly the right tool. Thank you.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- But somewhere along the line, it seems / That pimp became ---    
                       cool,  and punk mainstream.