LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-31-2010, 10:55 PM   #1
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 399

Rep: Reputation: 33
Overlapping Partitions


Here is what I get if I run cfdisk:

Code:
FATAL ERROR: Bad primary partition 3: Partition ends in the final partial cylind
                          Press any key to exit cfdisk
Here is the output of fdisk -l:

Code:
root@slackware-laptop:/usr/local/src/udf-0.9.8# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x03d0eecd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  82  Linux swap
/dev/sda2   *         263       13317   104864287+  83  Linux
/dev/sda3           13318       26372   104864287+  83  Linux
/dev/sda4           26373       60802   276552704    5  Extended
/dev/sda5   *       26373       32747    51200000   83  Linux
/dev/sda6           32747       39121    51200000   83  Linux
As you can see it looks as if /dev/sda4 and /dev/sda5 both have the same number for Start, it appears they are overlapping, is this causing the error with cfdisk?
 
Old 08-31-2010, 11:09 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Code:
root@slackware-laptop:/usr/local/src/udf-0.9.8# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x03d0eecd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  82  Linux swap
/dev/sda2   *         263       13317   104864287+  83  Linux
/dev/sda3           13318       26372   104864287+  83  Linux
/dev/sda4           26373       60802   276552704    5  Extended
/dev/sda5   *       26373       32747    51200000   83  Linux
/dev/sda6           32747       39121    51200000   83  Linux
Nope, I'd say the bits I highlighted are the problem.
If it were me I'd delete the extended and reallocate it - allow it to default to end of disk. gparted from a livecd might also work.
 
Old 08-31-2010, 11:11 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
No sda4 is an extended partition so its perfectly normal for sda5 which is a partition inside the extended partition to show on the same cylinder boundary.
 
Old 09-01-2010, 08:43 AM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 399

Original Poster
Rep: Reputation: 33
/sda5 and /sda6 are the root and home partitions of another Linux install, is there any way to fix this without breaking that install? If not I will just backup what I need and fix them.
 
Old 09-01-2010, 09:31 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Deleting the extended won't affect the logicals contained within. You have unallocated space in the (current) extended, so you should be safe to adjust the end by that small amount.
So long as you recreate it with the same start location you'll be o.k.

Backups are never a bad idea - see my sigline; your data, your choice.
 
Old 09-01-2010, 11:15 AM   #6
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 399

Original Poster
Rep: Reputation: 33
That did the trick. I was able to delete the extended, which deleted the logical partitions. Then I was able to re-create them with the correct constraints, and everything works perfectly. Thanks for your help.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Overlapping loop mounts? RaptorX Slackware 9 09-09-2009 04:45 AM
Overlapping Text in compiz TomalakBORG Linux - Desktop 1 04-27-2008 06:32 AM
partition overlapping w-mar Linux - Enterprise 3 02-13-2007 11:55 AM
Partition overlapping! noob in need. The Nothing Linux - General 5 11-13-2006 08:34 AM
Microsoft to blame for overlapping my HD partitions! kevingpo Linux - Software 1 02-09-2005 12:40 PM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
Advertisement
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 Google+: linuxquestions
Open Source Consulting | Domain Registration