In my ubuntu system, I want to have a look about my system disk info. When I use
fdisk -l without
sudo, I get nothing. But with
sudo fdisk -l, I only get a device /dev/sda1, but when I use
df -h, I get so many devices, like
/dev/sda4 and so on. What is the difference between such disk operations?
# fdisk -l WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use Disk /dev/sda: 6000.1 GB, 60000069312512 bytes 255 heads, 63 sectors/track, 729466 cylinders, tatal 11718885376 sectars 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 Device Boot Start End Blocks Id System /dev/sda1 1 4294967295 2147483647+ ee GPT # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 457G 2.0G 432G 1% / udev 16G 4.0K 16G 1% /dev tmpfs 6.3G 236K 6.3G 1% /run none 5.0M 0 5.0M 0% /run/lock none 16G 0 16G 0% /run/shm /dev/sda4 5.0T 604G 4.2T 13% /var