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
You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?
What daemon is used for scheduling of the commands?
What is tty in linux command?
What is history command in linux?
What does kill in linux?
What is the difference between diff and cmp command in unix?
What is the difference between clang and llvm?
How do I check dns entry?
How do I check disk space in bash?
What is tail command in linux?
Explain the ‘ls’ command in linux
You wish to print a file ‘draft’ with 60 lines to a page. What command would you use?
How do you open a command prompt when issuing a command?
List the three main parts of an operating system command?
What is the pwd command?