sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
or
lsblk -f
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 447.1G
├─sda1 linux_raid_member 19.5G
│ └─md1 ext4 19.5G / /
├─sda2 linux_raid_member 427.1G
│ └─md2 ext4 427.1G /home /home
└─sda3 swap 511M [SWAP] swap-sda3
sdb 447.1G
├─sdb1 linux_raid_member 19.5G
│ └─md1 ext4 19.5G / /
├─sdb2 linux_raid_member 427.1G
│ └─md2 ext4 427.1G /home /home
└─sdb3 swap 511M [SWAP] swap-sdb3
and
List drives system can see
and
List drives system can see
fdisk -l
Disk /dev/sda: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xc73d95be
Device Boot Start End Blocks Id System
/dev/sda1 * 4096 40962047 20478976 fd Linux RAID autodetect
/dev/sda2 40962048 936648703 447843328 fd Linux RAID autodetect
/dev/sda3 936648704 937695231 523264 82 Linux swap / Solaris
Disk /dev/sdb: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xce6e28eb
Device Boot Start End Blocks Id System
/dev/sdb1 * 4096 40962047 20478976 fd Linux RAID autodetect
/dev/sdb2 40962048 936648703 447843328 fd Linux RAID autodetect
/dev/sdb3 936648704 937695231 523264 82 Linux swap / Solaris
Disk /dev/md2: 458.6 GB, 458591502336 bytes
2 heads, 4 sectors/track, 111960816 cylinders, total 895686528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 21.0 GB, 20970405888 bytes
2 heads, 4 sectors/track, 5119728 cylinders, total 40957824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Linux command to view Disk Usage
use du (disk usage) or df (disk free)
enter specific folder
-h display humain readable format
-a display disk usage size of all all files and folders
-c display total size at the bottom of the list
-time to display modification date
http://incoreporation.com https://ca.incoreporation.com http://wwebservices.ca
Linux command to view Disk Usage
use du (disk usage) or df (disk free)
enter specific folder
-h display humain readable format
-a display disk usage size of all all files and folders
-c display total size at the bottom of the list
-time to display modification date
http://incoreporation.com https://ca.incoreporation.com http://wwebservices.ca
No comments:
Post a Comment