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
[Newbies FAQ] [Kernel List] [Site Home] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI] [DDR & Rambus] [UNIX Filesystems] [Linux Resources]
![]() |
![]() |