Re: how to get the size of a disk partition from user space?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 19, 2008 at 03:38:54AM -0400, Robert P. J. Day wrote:
> sadly, on this system, there is no /sys filesystem.  but i got what i
> needed by just opening the device, reading the boot sector and parsing
> the partition table.  it seemed like the simplest thing to do.

Another trick: blockdev --getsize64 /dev/whateverblockdevice


Erik

-- 
Erik Mouw -- mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux