Skip to content

Instantly share code, notes, and snippets.

@ssvss
Created January 10, 2013 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssvss/4504203 to your computer and use it in GitHub Desktop.
Save ssvss/4504203 to your computer and use it in GitHub Desktop.
on Ubuntu Desktop:
vino@vino-ubuntu-vbox:~$ sudo fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000bc4c9
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 19922943 9960448 83 Linux
/dev/sda2 19924990 20969471 522241 5 Extended
/dev/sda5 19924992 20969471 522240 82 Linux swap / Solaris
vino@vino-ubuntu-vbox:~$ sudo blockdev --getsize64 /dev/sda5
534773760
vino@vino-ubuntu-vbox:~$
=====================================================================================
On ubuntu server:
vinoth@server:~$ sudo fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b28e6
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 16775167 8136705 5 Extended
/dev/sda5 501760 16775167 8136704 8e Linux LVM
Disk /dev/mapper/server-root: 7226 MB, 7226785792 bytes
255 heads, 63 sectors/track, 878 cylinders, total 14114816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/server-root doesn't contain a valid partition table
Disk /dev/mapper/server-swap_1: 1069 MB, 1069547520 bytes
255 heads, 63 sectors/track, 130 cylinders, total 2088960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/server-swap_1 doesn't contain a valid partition table
vinoth@server:~$ sudo blockdev --getsize64 /dev/sda5
8331984896
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment