Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created October 29, 2014 15:50
Show Gist options
  • Select an option

  • Save HostOnNet/c45eb1842f4b30a6f1da to your computer and use it in GitHub Desktop.

Select an option

Save HostOnNet/c45eb1842f4b30a6f1da to your computer and use it in GitHub Desktop.
===============================================
fdisk -l shows on HDD
===============================================
root@server1 [~]# fdisk -l
Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd9cee720
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 28166 225726464 83 Linux
/dev/sda3 28166 29186 8190976 82 Linux swap / Solaris
root@server1 [~]#
===============================================
parted -l shows 1 HDD
===============================================
root@server1 [~]# parted -l
Model: ATA Crucial_CT240M50 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ext4 boot
2 525MB 232GB 231GB primary ext4
3 232GB 240GB 8388MB primary linux-swap(v1)
root@server1 [~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment