    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: Partition outside disk?</title>
        <link>http://www.linux.com/archive/forums/topic/4033</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/3994">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/4023">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/4033?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/4033">Partition outside disk?</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="6" selected="selected">
Please select forum            </option>
            <option value="6">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/6">
        Miscellaneous Discussion   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/416850">thegreat</a>
                   </div>
                   <div class="xar-sub">
Joined: Jan 13, 2009<br/>Posts: 1                        <br />
                        <a href="http://www.linux.com/archive/forums?by=416850&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted Jan 13, 2009 at 11:39:25 PM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: Partition outside disk?                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        Hi,
I have a problem when I try booting GParted from a live cd or running it in Ubuntu I get this error:
[code=xml]
======================
libparted : 1.8.9
======================
Can't have a partition outside the disk!
[/code]

GParted then opens but declares my hd as 300gb of unallocated space. I believe this is because I have corrupted the partition table.

fdisk from within ubuntu
[code=xml]
sudo fdisk -l 
[/code]
returns this:
[code=xml]
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009b837

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2432    19535008   83  Linux
/dev/sda2            2433       10718    66557292   83  Linux
/dev/sda3   *       10719       13315    20860396+   7  HPFS/NTFS
/dev/sda4           13316       38914   205623967+   f  W95 Ext'd (LBA)
/dev/sda5           13316       15865    20480000    7  HPFS/NTFS
/dev/sda6           15866       28613   102398278+   7  HPFS/NTFS
/dev/sda7           28614       38403    78638143+   7  HPFS/NTFS
[/code]

Briefly:
sda1 is an Ubuntu installation 
sda2 is my /home 
sda3 is a windows xp installation
sda5 is a Windows 7 beta installation (I was curious - I think it was the built-in partition editor that caused this problem =S)
sda6 and sda7 contain media and work documents
*sda8 was a 4gb logical swap  partition but I deleted it as it was ending outside the 38913 cylinders. (I thought I might be able to resize sda4 after removing it then recreate the swap partition).

All the OS installations boot (with GRUB) and run fine. The only thing that is concerning is that GParted wont read my hard disk. After a few hours of Googling i am pretty sure the problem is to do with my disk having 38913 cylinders and the extended partition (sda4) ending on 38914. Is there a way I can correct the boundaries of sda4 without losing any data from the logical partitions within it? Or is this even a serious issue? It would be nice to get a swap partition again in any case =P

I found this post in ubuntu forums: (excuse the google cache, the forums have been down all day).

[url]http://74.125.77.132/search?q=cache:MIg8KoFrVckJ:ubuntuforums.org/archive/index.php/t-352723.html+gparted+Can%27t+have+a+partition+outside+the+disk!&amp;hl=en&amp;ct=clnk&amp;cd=1[/url]

The above post seems to be about a similar problem. User houseam suggests deleting the extended partition with fdisk then creating a new one within the cylinder boundaries. I am unsure whether it is safe to do this however as I am not too keen on unnecessarily losing the logical partitions.

If anyone can offer me some advice it would be greatly appreciated.
Thanks,
Tom</div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/4033#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/416850">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=416850">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/386456">
                                Rubberman                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jul 30, 2007<br/>Posts: 944<br />
Location:40 miles west of Chicago<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=386456&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jan 14, 2009 8:24:07 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1206623" href="http://www.linux.com/archive/forums/topic/4033#1206623">
                                    Re:  Partition outside disk?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Possibly this is a gparted problem? You are using a VERY out-of-date version I think. They are currently at 4.1-2. Download the current version from their web site: www.gparted.org

[Modified by: Rubberman on January 14, 2009 02:24 PM]
<p class="hiddensignature">
Sometimes real fast is almost as good as real time.
Remember, Google is your friend!</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/4033#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/386456">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=386456">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
                                <a href="aim:goim?screenname=vikrant48&amp;message=Hello+Are+you+there?">
                                    <img src="modules/xarbb/xarimages/new/icon_aim.gif" alt="AOL Instant Messenger" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/386456">
                                Rubberman                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jul 30, 2007<br/>Posts: 944<br />
Location:40 miles west of Chicago<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=386456&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jan 14, 2009 8:27:43 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1206624" href="http://www.linux.com/archive/forums/topic/4033#1206624">
                                    Partition outside disk?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Doh! I see the version is from libparted, not the executable. You might still want to check to see if you need to update, if you haven't lately.<p class="hiddensignature">
Sometimes real fast is almost as good as real time.
Remember, Google is your friend!</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/4033#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/386456">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=386456">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
                                <a href="aim:goim?screenname=vikrant48&amp;message=Hello+Are+you+there?">
                                    <img src="modules/xarbb/xarimages/new/icon_aim.gif" alt="AOL Instant Messenger" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/416527">
                                blinky                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jan 08, 2009<br/>Posts: 51<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=416527&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jan 14, 2009 10:08:04 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1206632" href="http://www.linux.com/archive/forums/topic/4033#1206632">
                                    Re:  Partition outside disk?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Have fixed this once myself.  Managed to wipe out first sector of my hard disk a couple of years ago. The remembered that the partition table was still proc filesystem:)

Yes you need to use fdisk (command line).
Delete partitions 7, 6, 5 then 4 
Recreate 4 with the same starting cylinder and [b]correct end cylinder[/b] (38913) and remembet to set the partition type.
Recreate the partitions 5,6 &amp; 7 (eg starting and ending one the cylinders as now)
Then you can create partition 8 starting at 38404 and ending at 38913.

Check the partitions look like following when you list them, [b]before[/b] writing it back to the disk!

/dev/sda4           13316       38913   205623967+   f  W95 Ext'd (LBA) 
/dev/sda5           13316       15865    20480000    7  HPFS/NTFS 
/dev/sda6           15866       28613   102398278+   7  HPFS/NTFS 
/dev/sda7           28614       38403    78638143+   7  HPFS/NTFS 
/dev/sda8           28404       38913    ?   82 Linux swap / Solaris

It worked fine for me, but you might want to backup any important data 
<p class="hiddensignature">
In a world without walls and fences, who needs Windows and Gates</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/4033#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/416527">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=416527">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/416527">
                                blinky                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jan 08, 2009<br/>Posts: 51<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=416527&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jan 14, 2009 10:11:03 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1206633" href="http://www.linux.com/archive/forums/topic/4033#1206633">
                                    Re:  Partition outside disk?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Forgot to add, make sure you set the partition types (NTFS etc) and unless it looks like the example (in the starting and ending cylinders), just ctrl+C and start again until you get it right.
<p class="hiddensignature">
In a world without walls and fences, who needs Windows and Gates</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/4033#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/416527">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=416527">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/6">
        Miscellaneous Discussion   </a>
</span>

</div>



            </channel>
</rss>
