how to see unallocated hard disk space on linux

Answer Posted / uma

[root@station4 ~]# parted
GNU Parted 1.8.1
Using /dev/hdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print


Model: ST380215A (ide)
Disk /dev/hdb: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 8225kB 26.2GB 26.2GB primary boot
2 26.2GB 26.4GB 206MB primary ext3
3 26.4GB 28.5GB 2097MB primary linux-swap
4 28.5GB 80.0GB 51.5GB extended
5 28.5GB 44.3GB 15.7GB logical ext3

(parted)q

The parted command displays the total size of the disk & the
space allocated to partitions. The remaining space (size)
not allocated to partitions is the unallocated space

OR

# fdisk -l ==> to view the size of the disk
# df -h ==> to view the size of the partitions

The remaining (balance) size is the unallocated size

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cpu core in linux?

718


How do you insert comments in the command line prompt?

932


What is ulimit in linux?

765


What is the command can be run to remove all the rules in an iptable table?

788


What is parallel ssh?

744


The head command writes the how many lines of a file to screen?

773


What is a make target?

743


Explain difference between nfs soft and hard mouniting points?

711


What can you tell about the tar command?

761


What does grep command do?

764


What is the bash in linux?

726


What are the basic command in linux?

773


What command would you use to create an empty file without opening it to edit it?

759


What is ls command and what it does?

753


Enlist some linux networking and troubleshooting commands?

748