System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

fdisk and unallocated sectors

Md. Minhaz Khan
Super Advisor

fdisk and unallocated sectors


fdisk /dev/hda
v
21292 unallocated sectors
n
No free sectors available

Why these unallocated sectors aren't available for creating a partition? Did I miss something?

Thanks
Minhaz
8 REPLIES
kemo
Trusted Contributor

Re: fdisk and unallocated sectors

please send
"fdisk -l /dev/hda" command output

Md. Minhaz Khan
Super Advisor

Re: fdisk and unallocated sectors

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 83 Linux
/dev/sda2 1913 15286 107426655 83 Linux
/dev/sda3 28021 29295 10241437+ 83 Linux
/dev/sda4 29296 36404 57103042+ 5 Extended
/dev/sda5 29296 29932 5116671 83 Linux
/dev/sda6 29933 30569 5116671 83 Linux
/dev/sda7 30570 31206 5116671 83 Linux
/dev/sda8 31207 31843 5116671 83 Linux
/dev/sda9 31844 32251 3277228+ 82 Linux swap / Solaris
/dev/sda10 32252 32570 2562336 83 Linux
/dev/sda11 32571 32761 1534176 83 Linux
/dev/sda12 32762 32888 1020096 83 Linux
/dev/sda13 32889 33015 1020096 83 Linux
/dev/sda14 33016 36404 27222111 83 Linux
kemo
Trusted Contributor

Re: fdisk and unallocated sectors

which one is having the issue

/dev/sda or /dev/hda. as your question was about /dev/hda and you had sent the output of /dev/sda.

Md. Minhaz Khan
Super Advisor

Re: fdisk and unallocated sectors

Actually that was my typing mistake it is "/dev/sda". The fact is, One of our system admin create a partition "/dev/sda2" with 225GB during OS installation. But after installation as per application requirement, we have deleted this partition to create two partition each with 100GB. We are successful to create the 1st partition with 100 GB which is "/dev/sda2". But when we want to create the 2nd partition with 100GB, its says "Value out of range".

#fdisk /dev/sda

Command: v
204585396 unallocated sectors

Command: p

/dev/sda1 * 1 1912 15358108+ 83 Linux
/dev/sda2 1913 14071 97667167+ 83 Linux
/dev/sda3 28021 29295 10241437+ 83 Linux
/dev/sda4 29296 36404 57103042+ 5 Extended
/dev/sda5 29296 29932 5116671 83 Linux
/dev/sda6 29933 30569 5116671 83 Linux
/dev/sda7 30570 31206 5116671 83 Linux
/dev/sda8 31207 31843 5116671 83 Linux
/dev/sda9 31844 32251 3277228+ 82 Linux swap / Solaris
/dev/sda10 32252 32570 2562336 83 Linux
/dev/sda11 32571 32761 1534176 83 Linux
/dev/sda12 32762 32888 1020096 83 Linux
/dev/sda13 32889 33015 1020096 83 Linux

Thanks
Minhaz
Md. Minhaz Khan
Super Advisor

Re: fdisk and unallocated sectors

# fdisk -l /dev/sda

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 83 Linux
/dev/sda2 1913 14071 97667167+ 83 Linux
/dev/sda3 28021 29295 10241437+ 83 Linux
/dev/sda4 29296 36404 57103042+ 5 Extended
/dev/sda5 29296 29932 5116671 83 Linux
/dev/sda6 29933 30569 5116671 83 Linux
/dev/sda7 30570 31206 5116671 83 Linux
/dev/sda8 31207 31843 5116671 83 Linux
/dev/sda9 31844 32251 3277228+ 82 Linux swap / Solaris
/dev/sda10 32252 32570 2562336 83 Linux
/dev/sda11 32571 32761 1534176 83 Linux
/dev/sda12 32762 32888 1020096 83 Linux
/dev/sda13 32889 33015 1020096 83 Linux

Thanks
Minhaz
Md. Minhaz Khan
Super Advisor

Re: fdisk and unallocated sectors

Dear all,

I have got the funda:

See as i firstly delete "/dev/sda2" which was 200 GB.Now when we are creating 100G /dev/sda2 , the rest 100GB will be in the primary partition area.But the rest 100Gb i cant use as my existing OS fillup partitions upto "/dev/sda3". After "/dev/sda3" it starts logical extended partition upto "/dev/sda13".When i want to create a partition with 100GB it takes /dev/sda14 & not able to pick space from primary partition area.It will only take 25GB space from "logical extended " area.

*Solution: we have to install the OS again to use 100GB space.

Thanks
Minhaz
kemo
Trusted Contributor

Re: fdisk and unallocated sectors

hello

i believe sda2 was like this

/dev/sda2 1913 28020 97667167+ 83 Linux

starts at 1913 and ends with 28020 to create a partition with size 225GB.

then you deleted sda2 and created another sda2 with 100GB to have the below
/dev/sda2 1913 14071 97667167+ 83 Linux

start cyl 1913, end 14071.

=====================================
i believe you need to start the new partition from cylinder 14072 and create your 100GB. it should work.
Md. Minhaz Khan
Super Advisor

Re: fdisk and unallocated sectors

BR,
Minhaz