Operating System - Linux
1754355 Members
4787 Online
108813 Solutions
New Discussion юеВ

How to check for unallocated disk space on Red Hat 3.0?

 
SOLVED
Go to solution
Debbie Fleith
Regular Advisor

How to check for unallocated disk space on Red Hat 3.0?

I need to create a new filesystem with unallocated disk space that I know we reserved. However, I'm not finding any GUI tools to show me the disk space available on this server.

fdisk -l shows me the following, but I don't see "unallocated" anywhere...
Disk /dev/sda: 146.5 GB, 146548981760 bytes
255 heads, 63 sectors/track, 17816 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38 305203+ 83 Linux
/dev/sda2 39 1568 12289725 83 Linux
/dev/sda3 1569 3098 12289725 83 Linux
/dev/sda4 3099 17816 118222335 f Win95 Ext'd (LBA)
/dev/sda5 3099 4628 12289693+ 83 Linux
/dev/sda6 4629 5266 5124703+ 83 Linux
/dev/sda7 5267 5649 3076416 83 Linux
/dev/sda8 5650 5904 2048256 83 Linux
/dev/sda9 5905 6159 2048256 82 Linux swap
/dev/sda10 6160 6287 1028128+ 83 Linux
/dev/sda11 6288 6389 819283+ 83 Linux

What commands to I need to run to see unallocated disk space under this Red Hat platform?
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: How to check for unallocated disk space on Red Hat 3.0?

Use a combination of fdisk -l, df -h, swap -l, to identify of one of the partitions are not in use. Match the output of df -h with fdisk -l.

There is no magic "unallocated" output.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Debbie Fleith
Regular Advisor

Re: How to check for unallocated disk space on Red Hat 3.0?

Its still not clear how much unallocated space there is. On my df -h, is the Filesystem labeled "none" the unallocated?
[root@dentahiti gbg]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda11 788M 284M 464M 38% /
/dev/sda1 289M 19M 255M 7% /boot
/dev/sda5 12G 7.6G 3.5G 69% /database
/dev/sda3 12G 8.5G 2.6G 77% /db3
/dev/sda2 12G 9.6G 1.5G 88% /db2
/dev/sda8 2.0G 1.3G 574M 70% /home
none 501M 0 501M 0% /dev/shm
/dev/sda10 989M 31M 908M 4% /tmp
/dev/sda6 4.9G 3.4G 1.2G 74% /usr
/dev/sda7 2.9G 498M 2.3G 18% /var
172.16.40.40:/u 20G 1.4G 17G 8% /mnt/u
172.16.40.40:/home 29G 3.8G 24G 14% /mnt/home
172.16.40.40:/u2 4.9G 220M 4.4G 5% /mnt/u2
172.16.40.40:/dtx 9.7G 237M 9.0G 3% /mnt/dtx
172.16.40.40:/v 20G 173M 19G 1% /mnt/v
Debbie Fleith
Regular Advisor

Re: How to check for unallocated disk space on Red Hat 3.0?

I don't have /dev/sda4 listed on the df -h output.

/dev/sda4 3099 17816 118222335 f Win95 Ext'd (LBA)

Is this unallocated? What command do I use to create a new filesystem with some of this space?
Ivan Ferreira
Honored Contributor
Solution

Re: How to check for unallocated disk space on Red Hat 3.0?

The /dev/sda4 is the extended partition, and then you have logical partitions on it startin with sda5 to sda11.

Considering that the extended partition has 118222335 in size, and the sum of all logical partition is 26434735, then yes, you have 91787600 free in the extended partition to create new logical partitions.

You can use the fdisk /dev/sda command, with the "n" fdisk command to create new logical partitions. Then create a file system with the mkfs -t ext3 /dev/sdaX command, and mount it.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?