LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 10-13-2009, 05:27 PM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: RHEL
Posts: 84
Thanked: 2
fdisk Oooppps! Can you fix it?


[Log in to get rid of this advertisement]
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.
linuxfedora Hi_This_is_Dev is offline  
Tag This Post ,
Reply With Quote
Old 10-13-2009, 05:53 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Posts: 1,043
Thanked: 91
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?
linux yancek is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


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 12:24 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
FIX---Fedora install hangs---To fix this---- jmckinzie Fedora - Installation 0 12-20-2005 01:08 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10: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 07:00 PM


All times are GMT -5. The time now is 05:18 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration