Pacific-Design.com

    
Home Index

1. Linux

2. Hard Drive

Linux / Hard Drive /

List Volumes


$ fdisk -l
$ lsblk
$ blkid

Formatting Volumes


$ fdisk /dev/sdb
    p   primary partition (1-4)

$ mkfs.ext4 -b 4096 /dev/sdb1
$ mkdir /data2
$ mount /dev/sdb1 /data2
$ umount /data2
$ lshw -C disk

Hard Disk Performance


$ yum install -y hdparm
$ hdparm -tT /dev/xvda1

/dev/xvda1:
 Timing cached reads:   21496 MB in  2.00 seconds = 10763.81 MB/sec
  Timing buffered disk reads: 104 MB in  3.01 seconds =  34.60 MB/sec


Reference: https://help.ubuntu.com/community/InstallingANewHardDrive