$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 1.1G 6.9G 14% /
tmpfs 298M 0 298M 0% /dev/shm
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ sudo su -
[root@ip-xxx-xxx-xxx-xxx ~]# fdisk -l
Disk /dev/xvda1: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdf: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76167e64
Device Boot Start End Blocks Id System
/dev/xvdf1 1 130 1044193+ 8e Linux LVM
[root@ip-xxx-xxx-xxx-xxx ~]# mkfs.ext3 /dev/sdf
mke2fs 1.42.3 (14-May-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ sudo mount /dev/sdf /mnt/my-data
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 967M 6.9G 13% /
tmpfs 298M 0 298M 0% /dev/shm
/dev/xvdf 1008M 34M 924M 4% /mnt/my-data
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 1.1G 6.9G 14% /
tmpfs 298M 0 298M 0% /dev/shm
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ sudo su -
[root@ip-xxx-xxx-xxx-xxx ~]# fdisk -l
Disk /dev/xvda1: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/xvdf: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76167e64
Device Boot Start End Blocks Id System
/dev/xvdf1 1 130 1044193+ 8e Linux LVM
[root@ip-xxx-xxx-xxx-xxx ~]# mkfs.ext3 /dev/sdf
mke2fs 1.42.3 (14-May-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 262144 blocks
13107 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ sudo mount /dev/sdf /mnt/my-data
[ec2-user@ip-xxx-xxx-xxx-xxx my-data]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 967M 6.9G 13% /
tmpfs 298M 0 298M 0% /dev/shm
/dev/xvdf 1008M 34M 924M 4% /mnt/my-data
Comments
Happy Learning !