LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-13-2009, 04:27 PM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
fdisk Oooppps! Can you fix it?


First look at the output of the fdisk -l and fdisk /dev/sda and you will see what I am trying to fix:

Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00023628

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        1301    10240000   83  Linux
/dev/sda3            1301        1431     1048576   83  Linux
/dev/sda4            1431        1437       49295    5  Extended
[root@localhost ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 2610.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): d
Partition number (1-5): 5
Warning: partition 5 has empty type

Command (m for help): t
Partition number (1-5): 5
Partition 5 does not exist yet!

Command (m for help): q

You have new mail in /var/spool/mail/root
[root@localhost ~]#
So, why we have 1 extra partition number here: Partition number (1-5): and it doesn't exist at all?

How to correct it?

The problem occurred when new partitions were created and in doing that some mistake took place. So, I decided to delete those new partitions but 1 extra number was there and is still there.
 
Old 10-13-2009, 04:53 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Peppermint
Posts: 2,706

Rep: Reputation: 317Reputation: 317Reputation: 317Reputation: 317
That's about an 80MB extended partition. Are you saying you can't delete it with fdisk? Delete it and resize sda3 to take up that space. Did you re-boot after making the changes?
 
  


Reply

Tags
fdisk, paritions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Linux's fdisk to erase or fix a MBR? Comatose51 Linux - Software 19 01-19-2009 11:24 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
FIX---Fedora install hangs---To fix this---- jmckinzie Fedora - Installation 0 12-20-2005 12:08 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
fdisk reports my HD is half of it actual size, how can I fix it? ricardo_ok Slackware - Installation 4 01-25-2004 06:00 PM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration