On Tue, Jul 20, 2010 at 11:01 PM, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com">kb@2bits.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On the new server that I had, there are 12GB that are unassigned for some reason.<br>Perhaps this is due to even number boundaries, or something.<br><br>The current state is like this (from parted)<br><br>Disk /dev/sda: 1000GB<br>

Sector size (logical/physical): 512B/512B<br>Partition Table: msdos<br><br>Number  Start   End     Size    Type      File system  Flags<br> 1      32.3kB  988GB   988GB   primary   ext3         boot <br> 2      988GB   1000GB  12.1GB  extended                    <br>

 5      988GB   1000GB  12.1GB  logical   linux-swap <br clear="all"><br>In fdisk, it is like so:<br><br>Disk /dev/sda: 1000.2 GB, 1000204886016 bytes<br>255 heads, 63 sectors/track, 121601 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br>

Disk identifier: 0xsomething<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/sda1   *           1      120134   964976323+  83  Linux<br>/dev/sda2          120135      121601    11783677+   5  Extended<br>

/dev/sda5          120135      121601    11783646   82  Linux swap / Solaris<br><br>I don't want to repartition the disk and spend several hours backing up and <br>restoring the file system (which is only 100GB, but still ...)<br>

<br>So the question is: is there a way to somehow append the 12GB that are<br>assigned to /dev/sda1, and end up with only 2 partitions (1 and 5)?<br><br>If this can be done at the partition level, would ext3 need to know about that<br>

extra space, or will it use it without issues?<br><br>Thanks in advance<br></blockquote></div><br clear="all">Ignore that message!<br><br>I just got confused. The extended partition contains the swap and no space is<br>being lost.<br>
<br>My bad. Should do the math before I post. Or not post too late like that ...<br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>